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 boolean
hidden
private boolean
isAdvanced
private boolean
isCoordinate
private java.lang.String
name
private int
order
private java.lang.String
tag
private static java.util.Map<java.lang.String,StaticProperty>
tagMapping
private StaticPropertyType
type
-
Constructor Summary
Constructors Modifier Constructor Description private
StaticProperty(java.lang.String aTag, java.lang.String aDesc, StaticPropertyType aType, int anOrder)
private
StaticProperty(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 StaticProperty
getByTag(java.lang.String value)
java.lang.String
getDescription()
inheritDoc Used to be desc()java.lang.String
getId()
Returns the Id for this property.java.lang.String
getName()
inheritDocint
getOrder()
PropertyType
getType()
Used to be type() which returned StaticPropertyTypeprivate static java.util.Map<java.lang.String,StaticProperty>
initTagMapping()
boolean
isAdvanced()
boolean
isCollection()
Gets whether this property has accepts values.boolean
isCoordinateChange()
boolean
isHidden()
void
setHidden(boolean hide)
java.lang.String
tag()
static StaticProperty
valueOf(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, valueOf
Methods 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:Property
Returns 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:
getDescription
in interfaceProperty
- Returns:
- description. May return null.
-
getType
Used to be type() which returned StaticPropertyType -
isCollection
public boolean isCollection()Description copied from interface:Property
Gets whether this property has accepts values.- Specified by:
isCollection
in interfaceProperty
- Returns:
- true if this property accepts values.
-