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 SummaryFields 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 SummaryConstructors Modifier Constructor Description privateArrowHeadType(java.lang.String name)Private constructor.privateArrowHeadType(java.lang.String name, boolean hidden)The constructor is private.
- 
Method SummaryModifier 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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
- 
Field Details- 
nameToArrowHeadType
- 
values
- 
visible
- 
UNDIRECTED
- 
DIRECTED
- 
CONVERSION
- 
INHIBITION
- 
CATALYSIS
- 
STIMULATION
- 
BINDING
- 
TRANSLOCATION
- 
TRANSCRIPTION_TRANSLATION
- 
nameprivate java.lang.String name
 
- 
- 
Constructor Details- 
ArrowHeadTypeprivate 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.
 
- 
ArrowHeadTypeprivate ArrowHeadType(java.lang.String name)Private constructor.- Parameters:
- name- the string key of this ArrowHeadType.
 
 
- 
- 
Method Details- 
registerReturns 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.
 
- 
fromNameReturns the ArrowHeadType from given string name.- Parameters:
- name- the string.
- Returns:
- the ArrowHeadType with given string name.
 
- 
getNamepublic java.lang.String getName()Returns the name key for this ArrowHeadType.- Returns:
- name the key for this ArrowHeadType.
 
- 
getNamespublic 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.
 
- 
getValuesReturns the arrow head type values of all ArrowHeadTypes as a list.- Returns:
- arrowHead the list of all registered ArrowHeadTypes.
 
- 
getVisibleNamespublic static java.lang.String[] getVisibleNames()Returns an array of visible arrowheads name.- Returns:
- the array of visible arrowhead names.
 
- 
getVisibleValuesReturns an array of visible arrowheads values.- Returns:
- the array of visible arrowhead values.
 
- 
toStringpublic 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 class- java.lang.Object
- Returns:
- name the identifier of this ArrowHeadType.
 
 
-