Enum Class TLcdOverlayLayout.ResolveClash

java.lang.Object
java.lang.Enum<TLcdOverlayLayout.ResolveClash>
com.luciad.gui.swing.TLcdOverlayLayout.ResolveClash
All Implemented Interfaces:
Serializable, Comparable<TLcdOverlayLayout.ResolveClash>, Constable
Enclosing class:
TLcdOverlayLayout

public static enum TLcdOverlayLayout.ResolveClash extends Enum<TLcdOverlayLayout.ResolveClash>
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.
By default the ResolveClash constraint is HORIZONTAL. Use the TLcdOverlayLayout.putConstraint(Component, Location, ResolveClash) method to specify the precise ResolveClash constraint for a given component.
  • Enum Constant Details

    • HORIZONTAL

      public static final TLcdOverlayLayout.ResolveClash 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 the TLcdOverlayLayout.Location of the component. As a rule of thumb, it is always placed away from the edge it is placed against.
    • VERTICAL

      public static final TLcdOverlayLayout.ResolveClash 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 the TLcdOverlayLayout.Location of the component. As a rule of thumb, it is always placed away from the edge it is placed against.
  • Method Details

    • values

      public static TLcdOverlayLayout.ResolveClash[] 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

      public static TLcdOverlayLayout.ResolveClash valueOf(String name)
      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 name
      NullPointerException - if the argument is null