Enum Location
- java.lang.Object
-
- java.lang.Enum<Location>
-
- net.sf.gridarta.gui.utils.borderpanel.Location
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract @NotNull javax.swing.AbstractButtoncreateButton(@NotNull java.lang.String title)Creates anAbstractButtonfor this location.abstract intgetAxis()Returns theBoxLayoutaxis of this location.abstract @NotNull java.lang.StringgetBorderLocation()Returns theBorderLayoutconstraint of this location.abstract @NotNull java.lang.StringgetBorderLocationAlternativeLocation()Returns theBorderLayoutconstraint of this location for buttons in the alternative location.abstract @NotNull java.lang.StringgetBorderLocationStandardLocation()Returns theBorderLayoutconstraint of this location for buttons in the standard location.abstract @NotNull java.lang.StringgetName()Returns a name for building resource keys.abstract intgetSplitPaneOppositeOrientation()Returns the opposite orientation for aJSplitPane.abstract intgetSplitPaneOrientation()Returns the orientation for aJSplitPane.abstract doublegetSplitPaneResizeWeight()Returns the resize weight for aJSplitPane.abstract booleanisTopOrBottom()abstract booleanisTopOrLeft()static LocationvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Location[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TOP
public static final Location TOP
The location on the top side.
-
BOTTOM
public static final Location BOTTOM
The location on the bottom side.
-
LEFT
public static final Location LEFT
The location on the left side.
-
RIGHT
public static final Location RIGHT
The location on the right side.
-
-
Method Detail
-
values
public static Location[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Location c : Location.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Location valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
createButton
@NotNull public abstract @NotNull javax.swing.AbstractButton createButton(@NotNull @NotNull java.lang.String title)Creates anAbstractButtonfor this location.- Parameters:
title- the button's title- Returns:
- the button
-
getBorderLocation
@NotNull public abstract @NotNull java.lang.String getBorderLocation()
Returns theBorderLayoutconstraint of this location.- Returns:
- the constraint
-
getBorderLocationStandardLocation
@NotNull public abstract @NotNull java.lang.String getBorderLocationStandardLocation()
Returns theBorderLayoutconstraint of this location for buttons in the standard location.- Returns:
- the constraint
-
getBorderLocationAlternativeLocation
@NotNull public abstract @NotNull java.lang.String getBorderLocationAlternativeLocation()
Returns theBorderLayoutconstraint of this location for buttons in the alternative location.- Returns:
- the constraint
-
getAxis
public abstract int getAxis()
Returns theBoxLayoutaxis of this location.- Returns:
- the axis
-
getSplitPaneOrientation
public abstract int getSplitPaneOrientation()
Returns the orientation for aJSplitPane.- Returns:
- the orientation
-
getSplitPaneOppositeOrientation
public abstract int getSplitPaneOppositeOrientation()
Returns the opposite orientation for aJSplitPane.- Returns:
- the opposite orientation
-
getSplitPaneResizeWeight
public abstract double getSplitPaneResizeWeight()
Returns the resize weight for aJSplitPane.- Returns:
- the resize weight
-
isTopOrLeft
public abstract boolean isTopOrLeft()
- Returns:
- whether this location is top or left
-
isTopOrBottom
public abstract boolean isTopOrBottom()
- Returns:
- whether this location is top or bottom
-
getName
@NotNull public abstract @NotNull java.lang.String getName()
Returns a name for building resource keys.- Returns:
- the name
-
-