Enum HAlignType

java.lang.Object
java.lang.Enum<HAlignType>
org.pathvisio.libgpml.model.type.HAlignType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<HAlignType>, java.lang.constant.Constable

public enum HAlignType
extends java.lang.Enum<HAlignType>
This enum class contains possible values for horizontal text alignment property.
Author:
unknown, finterly
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant Description
    CENTER  
    LEFT  
    RIGHT  
  • Field Summary

    Fields
    Modifier and Type Field Description
    private java.lang.String name  
    private static java.util.Map<java.lang.String,​HAlignType> nameToHAlignType  
  • Constructor Summary

    Constructors
    Modifier Constructor Description
    private HAlignType​(java.lang.String name)
    Constructor to initialize the state of enum types.
  • Method Summary

    Modifier and Type Method Description
    static HAlignType fromName​(java.lang.String value)
    Returns HAlignType enum constant from given string name.
    java.lang.String getName()
    Returns String.
    static java.lang.String[] getNames()
    Returns String values as an array.
    java.lang.String toString()
    Returns a string representation of this HAlignType.
    static HAlignType valueOf​(java.lang.String name)
    Returns the enum constant of this type with the specified name.
    static HAlignType[] values()
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

    clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

  • Field Details

    • name

      private final java.lang.String name
    • nameToHAlignType

      private static java.util.Map<java.lang.String,​HAlignType> nameToHAlignType
  • Constructor Details

    • HAlignType

      private HAlignType​(java.lang.String name)
      Constructor to initialize the state of enum types.
      Parameters:
      name - the string.
  • Method Details

    • values

      public static HAlignType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static HAlignType 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 name
      java.lang.NullPointerException - if the argument is null
    • getName

      public java.lang.String getName()
      Returns String.
      Returns:
      name the string value.
    • fromName

      public static HAlignType fromName​(java.lang.String value)
      Returns HAlignType enum constant from given string name.
      Parameters:
      value - the string value.
      Returns:
      HAlignType enum constant.
    • getNames

      public static java.lang.String[] getNames()
      Returns String values as an array.
      Returns:
      result the string array.
    • toString

      public java.lang.String toString()
      Returns a string representation of this HAlignType.
      Overrides:
      toString in class java.lang.Enum<HAlignType>
      Returns:
      name the identifier of this HAlignType.