Package org.pathvisio.libgpml.prop
Enum StaticProperty
java.lang.Object
java.lang.Enum<StaticProperty>
org.pathvisio.libgpml.prop.StaticProperty
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<StaticProperty>,java.lang.constant.Constable,Property
public enum StaticProperty extends java.lang.Enum<StaticProperty> implements Property
Static properties for ObjectTypes, linked in
PathwayObject.- 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
-
Field Summary
Fields Modifier and Type Field Description private booleanhiddenprivate booleanisAdvancedprivate booleanisCoordinateprivate java.lang.Stringnameprivate intorderprivate java.lang.Stringtagprivate static java.util.Map<java.lang.String,StaticProperty>tagMappingprivate StaticPropertyTypetype -
Constructor Summary
Constructors Modifier Constructor Description privateStaticProperty(java.lang.String aTag, java.lang.String aDesc, StaticPropertyType aType, int anOrder)privateStaticProperty(java.lang.String aTag, java.lang.String aName, StaticPropertyType aType, int anOrder, boolean aIsCoordinate, boolean aIsAdvanced, boolean isHidden) -
Method Summary
Modifier and Type Method Description static StaticPropertygetByTag(java.lang.String value)java.lang.StringgetDescription()inheritDoc Used to be desc()java.lang.StringgetId()Returns the Id for this property.java.lang.StringgetName()inheritDocintgetOrder()PropertyTypegetType()Used to be type() which returned StaticPropertyTypeprivate static java.util.Map<java.lang.String,StaticProperty>initTagMapping()booleanisAdvanced()booleanisCollection()Gets whether this property has accepts values.booleanisCoordinateChange()booleanisHidden()voidsetHidden(boolean hide)java.lang.Stringtag()static StaticPropertyvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static StaticProperty[]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, toString, valueOfMethods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
-
Enum Constant Details
-
TITLE
-
ORGANISM
-
DESCRIPTION
-
SOURCE
-
VERSION
-
LICENSE
-
AUTHOR
-
ELEMENTID
-
COMMENT
-
ANNOTATIONREF
-
CITATIONREF
-
EVIDENCEREF
-
ANNOTATIONTYPE
-
XREF
-
BOARDWIDTH
-
BOARDHEIGHT
-
BACKGROUNDCOLOR
-
GROUPREF
-
ZORDER
-
TEXTLABEL
-
DATANODETYPE
-
STATETYPE
-
GROUPTYPE
-
ALIASREF
-
RELX
-
RELY
-
HREF
-
CENTERX
-
CENTERY
-
WIDTH
-
HEIGHT
-
TEXTCOLOR
-
FONTNAME
-
FONTWEIGHT
-
FONTSTYLE
-
FONTDECORATION
-
FONTSTRIKETHRU
-
FONTSIZE
-
VALIGN
-
HALIGN
-
BORDERCOLOR
-
BORDERSTYLE
-
BORDERWIDTH
-
FILLCOLOR
-
SHAPETYPE
-
ROTATION
-
STARTARROWHEADTYPE
-
ENDARROWHEADTYPE
-
STARTX
-
STARTY
-
ENDX
-
ENDY
-
STARTELEMENTREF
-
ENDELEMENTREF
-
ANCHORSHAPETYPE
-
LINECOLOR
-
LINESTYLE
-
LINEWIDTH
-
CONNECTORTYPE
-
-
Field Details
-
tag
private java.lang.String tag -
name
private java.lang.String name -
type
-
isCoordinate
private boolean isCoordinate -
isAdvanced
private boolean isAdvanced -
order
private int order -
tagMapping
-
-
Constructor Details
-
StaticProperty
private StaticProperty(java.lang.String aTag, java.lang.String aName, StaticPropertyType aType, int anOrder, boolean aIsCoordinate, boolean aIsAdvanced, boolean isHidden) -
StaticProperty
private StaticProperty(java.lang.String aTag, java.lang.String aDesc, StaticPropertyType aType, int anOrder)
-
-
Method Details
-
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
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 namejava.lang.NullPointerException- if the argument is null
-
tag
public java.lang.String tag()- Returns:
- Name of GPML attribute related to this property.
-
isCoordinateChange
public boolean isCoordinateChange()- Returns:
- true if this property causes coordinate changes.
-
isAdvanced
public boolean isAdvanced()- Returns:
- true if this attribute should be hidden unless the "Show advanced properties" preference is set to true
-
isHidden
public boolean isHidden()- Returns:
- true if this is attribute should not be shown in property table
-
setHidden
public void setHidden(boolean hide) -
getOrder
public int getOrder()- Returns:
- Logical sort order for display in Property table. Related properties sort together
-
getByTag
-
initTagMapping
-
getId
public java.lang.String getId()Description copied from interface:PropertyReturns the Id for this property. Ids must be unique. -
getName
public java.lang.String getName()inheritDoc -
getDescription
public java.lang.String getDescription()inheritDoc Used to be desc()- Specified by:
getDescriptionin interfaceProperty- Returns:
- description. May return null.
-
getType
Used to be type() which returned StaticPropertyType -
isCollection
public boolean isCollection()Description copied from interface:PropertyGets whether this property has accepts values.- Specified by:
isCollectionin interfaceProperty- Returns:
- true if this property accepts values.
-