Package org.pathvisio.libgpml.model.type
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 Summary
Fields Modifier and Type Field Description static ArrowHeadTypeBINDINGstatic ArrowHeadTypeCATALYSISstatic ArrowHeadTypeCONVERSIONstatic ArrowHeadTypeDIRECTEDstatic ArrowHeadTypeINHIBITIONprivate java.lang.Stringnameprivate static java.util.Map<java.lang.String,ArrowHeadType>nameToArrowHeadTypestatic ArrowHeadTypeSTIMULATIONstatic ArrowHeadTypeTRANSCRIPTION_TRANSLATIONstatic ArrowHeadTypeTRANSLOCATIONstatic ArrowHeadTypeUNDIRECTEDprivate static java.util.List<ArrowHeadType>valuesprivate static java.util.List<ArrowHeadType>visible -
Constructor Summary
Constructors Modifier Constructor Description privateArrowHeadType(java.lang.String name)Private constructor.privateArrowHeadType(java.lang.String name, boolean hidden)The constructor is private. -
Method Summary
Modifier and Type Method Description static ArrowHeadTypefromName(java.lang.String name)Returns the ArrowHeadType from given string name.java.lang.StringgetName()Returns the name key for this ArrowHeadType.static java.lang.String[]getNames()Returns the names of all registered ArrowHeadTypes as a list.static ArrowHeadType[]getValues()Returns the arrow head type values of all ArrowHeadTypes as a list.static java.lang.String[]getVisibleNames()Returns an array of visible arrowheads name.static ArrowHeadType[]getVisibleValues()Returns an array of visible arrowheads values.static ArrowHeadTyperegister(java.lang.String name)Returns a ArrowHeadType from a given string identifier name.java.lang.StringtoString()Returns a string representation of this ArrowHeadType.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
nameToArrowHeadType
-
values
-
visible
-
UNDIRECTED
-
DIRECTED
-
CONVERSION
-
INHIBITION
-
CATALYSIS
-
STIMULATION
-
BINDING
-
TRANSLOCATION
-
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
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
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
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
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:
toStringin classjava.lang.Object- Returns:
- name the identifier of this ArrowHeadType.
-