Class ArrowHeadType

java.lang.Object
org.pathvisio.libgpml.model.type.ArrowHeadType

public class ArrowHeadType
extends java.lang.Object
This class contains extensible enum pattern for different arrow head types. A Line in PathVisio has two endings LineElement.LinePoint that each can have a different arrow head. NB: previously named LineType.
Author:
unknown, finterly
  • Field Details

    • nameToArrowHeadType

      private static java.util.Map<java.lang.String,​ArrowHeadType> nameToArrowHeadType
    • values

      private static java.util.List<ArrowHeadType> values
    • visible

      private static java.util.List<ArrowHeadType> visible
    • UNDIRECTED

      public static final ArrowHeadType UNDIRECTED
    • DIRECTED

      public static final ArrowHeadType DIRECTED
    • CONVERSION

      public static final ArrowHeadType CONVERSION
    • INHIBITION

      public static final ArrowHeadType INHIBITION
    • CATALYSIS

      public static final ArrowHeadType CATALYSIS
    • STIMULATION

      public static final ArrowHeadType STIMULATION
    • BINDING

      public static final ArrowHeadType BINDING
    • TRANSLOCATION

      public static final ArrowHeadType TRANSLOCATION
    • TRANSCRIPTION_TRANSLATION

      public static final ArrowHeadType TRANSCRIPTION_TRANSLATION
    • name

      private java.lang.String name
  • Constructor Details

    • ArrowHeadType

      private ArrowHeadType​(java.lang.String name, boolean hidden)
      The constructor is private. ArrowHeadType cannot be directly instantiated. Use create() method to instantiate ArrowHeadType.
      Parameters:
      name - the string key of this ArrowHeadType.
      hidden - the boolean
      Throws:
      java.lang.NullPointerException - if name is null.
    • ArrowHeadType

      private ArrowHeadType​(java.lang.String name)
      Private constructor.
      Parameters:
      name - the string key of this ArrowHeadType.
  • Method Details

    • register

      public static ArrowHeadType register​(java.lang.String name)
      Returns a ArrowHeadType from a given string identifier name. If the ArrowHeadType doesn't exist yet, it is created to extend the enum. The method makes sure that the same object is not added twice.
      Parameters:
      name - the string key.
      Returns:
      the ArrowHeadType for given name. If name does not exist, creates and returns a new ArrowHeadType.
    • fromName

      public static ArrowHeadType fromName​(java.lang.String name)
      Returns the ArrowHeadType from given string name.
      Parameters:
      name - the string.
      Returns:
      the ArrowHeadType with given string name.
    • getName

      public java.lang.String getName()
      Returns the name key for this ArrowHeadType.
      Returns:
      name the key for this ArrowHeadType.
    • getNames

      public static java.lang.String[] getNames()
      Returns the names of all registered ArrowHeadTypes as a list.
      Returns:
      names the names of all registered ArrowHeadTypes in order of insertion.
    • getValues

      public static ArrowHeadType[] getValues()
      Returns the arrow head type values of all ArrowHeadTypes as a list.
      Returns:
      arrowHead the list of all registered ArrowHeadTypes.
    • getVisibleNames

      public static java.lang.String[] getVisibleNames()
      Returns an array of visible arrowheads name.
      Returns:
      the array of visible arrowhead names.
    • getVisibleValues

      public static ArrowHeadType[] getVisibleValues()
      Returns an array of visible arrowheads values.
      Returns:
      the array of visible arrowhead values.
    • toString

      public java.lang.String toString()
      Returns a string representation of this ArrowHeadType. Adds space between lower and upper case letters to make more human readable.
      Overrides:
      toString in class java.lang.Object
      Returns:
      name the identifier of this ArrowHeadType.