Package com.luciad.gui.swing
Enum Class TLcdOverlayLayout.ResolveClash
- All Implemented Interfaces:
Serializable
,Comparable<TLcdOverlayLayout.ResolveClash>
,Constable
- Enclosing class:
TLcdOverlayLayout
This enumeration can be used to indicate how the LayoutManager should handle multiple
components added to the same location. There are two available options.
- HORIZONTAL: components will be added to the left or right of previously added components, depending on the location.
- VERTICAL: components will be added to below or on top of previously added components, depending on the location.
TLcdOverlayLayout.putConstraint(Component, Location, ResolveClash)
method to specify the precise ResolveClash
constraint for a given component.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionConstant representing that the component will be added to the left or right of its nearest neighbour.Constant representing that the component will be added on top of or below its nearest neighbour. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static TLcdOverlayLayout.ResolveClash[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
HORIZONTAL
Constant representing that the component will be added to the left or right of its nearest neighbour. The nearest neighbour can be a previously added component or an edge of the container. Whether it is left or right depends on theTLcdOverlayLayout.Location
of the component. As a rule of thumb, it is always placed away from the edge it is placed against. -
VERTICAL
Constant representing that the component will be added on top of or below its nearest neighbour. The nearest neighbour can be a previously added component or an edge of the container. Whether it is on top or below depends on theTLcdOverlayLayout.Location
of the component. As a rule of thumb, it is always placed away from the edge it is placed against.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-