public static enum CollapsibleTabbedPane.Side extends java.lang.Enum<CollapsibleTabbedPane.Side>
Enum Constant and Description |
---|
East
At the eastern side.
|
North
At the northern side.
|
South
At the southern side.
|
West
At the western side.
|
Modifier and Type | Field and Description |
---|---|
(package private) java.lang.String |
i18nHideActionTag |
(package private) java.lang.String |
naturalBorder |
(package private) int |
tabPlacement |
Modifier and Type | Method and Description |
---|---|
int |
getCoordinateOfInterest(int x,
int y)
Get the coordinate which is expandable.
|
java.awt.Dimension |
getDimension(java.awt.Dimension basicDimension,
int expandedSize)
Get the expandable dimension.
|
CollapsibleTabbedPane.ExpandableDirection |
getExpandableDirection()
Get the direction in which a collapsible tabbed pane for this side
is expanded.
|
java.lang.String |
getI18nHideActionTag()
Get the i18n action tag for the hide action.
|
java.lang.String |
getNaturalBorder()
Get the natural border for
BorderLayout where a collapsible
tabbed pane for this size should be placed. |
java.awt.Cursor |
getResizeCursor()
Get the resize cursor associated with this size.
|
java.awt.Dimension |
getSize(javax.swing.JComponent comp,
java.awt.Point pos,
int dividerSize)
Get the new size during resizing.
|
int |
getTabPlacement()
Get the tab placement constant which is associated with this side.
|
boolean |
isOverDivider(javax.swing.JComponent comp,
java.awt.Point pos,
int dividerSize)
Is the cursor over the divider set by
setDivider(JComponent, int, Color) ? |
void |
setDivider(javax.swing.JComponent comp,
int dividerSize,
java.awt.Color color)
Create a divider by setting a border to the component.
|
static CollapsibleTabbedPane.Side |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CollapsibleTabbedPane.Side[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CollapsibleTabbedPane.Side North
public static final CollapsibleTabbedPane.Side East
public static final CollapsibleTabbedPane.Side South
public static final CollapsibleTabbedPane.Side West
final int tabPlacement
@NotNull final java.lang.String naturalBorder
@NotNull final java.lang.String i18nHideActionTag
public static CollapsibleTabbedPane.Side[] values()
for (CollapsibleTabbedPane.Side c : CollapsibleTabbedPane.Side.values()) System.out.println(c);
public static CollapsibleTabbedPane.Side valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getTabPlacement()
@NotNull public java.lang.String getNaturalBorder()
BorderLayout
where a collapsible
tabbed pane for this size should be placed.@NotNull public java.lang.String getI18nHideActionTag()
@NotNull public CollapsibleTabbedPane.ExpandableDirection getExpandableDirection()
@NotNull public java.awt.Cursor getResizeCursor()
@NotNull public java.awt.Dimension getDimension(@NotNull java.awt.Dimension basicDimension, int expandedSize)
basicDimension
- basic dimension of the componentexpandedSize
- size of the expandable directionpublic int getCoordinateOfInterest(int x, int y)
x
- x coordinatey
- y coordinatepublic void setDivider(@NotNull javax.swing.JComponent comp, int dividerSize, @Nullable java.awt.Color color)
comp
- component to instrument with a dividerdividerSize
- size of dividercolor
- color of divider, null
for emptypublic boolean isOverDivider(@NotNull javax.swing.JComponent comp, @NotNull java.awt.Point pos, int dividerSize)
setDivider(JComponent, int, Color)
?comp
- component with dividerpos
- mouse positiondividerSize
- size of dividertrue
if the mouse is over the divider,false
if not@NotNull public java.awt.Dimension getSize(@NotNull javax.swing.JComponent comp, @NotNull java.awt.Point pos, int dividerSize)
comp
- component with dividerpos
- mouse positiondividerSize
- dimension indicated by mouse position