java.lang.Object
java.lang.Enum<HAlign>
net.sourceforge.jeuclid.elements.support.attributes.HAlign
All Implemented Interfaces:
Serializable, Comparable<HAlign>, Constable

public enum HAlign extends Enum<HAlign>
Version:
$Revision: 8afef6dd0d58 $
  • Enum Constant Details

    • LEFT

      public static final HAlign LEFT
      Left align.
    • CENTER

      public static final HAlign CENTER
      Center align.
  • Field Details

  • Method Details

    • values

      public static HAlign[] 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 HAlign 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
    • parseString

      public static HAlign parseString(String alignString, HAlign defaultt)
      Parse an Alignment String.
      Parameters:
      alignString - String to parse.
      defaultt - default value.
      Returns:
      a HAlign value.
    • getHAlignOffset

      public float getHAlignOffset(LayoutStage stage, LayoutInfo info, float width)
      Retrieve H-Align offset.
      Parameters:
      stage - current Layout Stage
      info - Info object to examine
      width - Total width
      Returns:
      Alignment offset to add to left.