|
Cytoscape 3.0.0-beta1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- the dataType of the VisualProperty, i.e. what kind of objects are the valuespublic interface VisualProperty<T>
An object which represents a type of visual entity, such as node color, size, etc. Visual Property itself does NOT have any hierarchy/dependency. It will be implemented in VisualLexicon.
Method Summary | |
---|---|
T |
getDefault()
The default value of this property. |
String |
getDisplayName()
Returns a short string suitable for presentation to humans. |
String |
getIdString()
Returns a short string used to identify this visual property and suitable for serializing to XML and other text formats. |
Range<T> |
getRange()
Returns the Range of this VisualProperty. |
Class<? extends CyIdentifiable> |
getTargetDataType()
VisualProperty is always associated with a data type. |
T |
parseSerializableString(String value)
Returns an object of type T given a string serialized from the getSerializableString(T value) method. |
boolean |
shouldIgnoreDefault()
In some cases, default value from visual style is not suitable, such as x, y, z location of nodes. |
String |
toSerializableString(T value)
Returns a string of the specified value suitable for serializing to XML other text output. |
Method Detail |
---|
Range<T> getRange()
Range
of this VisualProperty.
Range
of this VisualProperty.T getDefault()
String getIdString()
String getDisplayName()
String toSerializableString(T value)
value
- the specified value.
T parseSerializableString(String value)
value
- a string serialized from the getSerializableString(T value) method.
boolean shouldIgnoreDefault()
Class<? extends CyIdentifiable> getTargetDataType()
CyEdge
data object. In that case, this returns Class<CyEdge>.
For now, return data types are CyNode, CyEdge, and CyNetwork.
|
Cytoscape 3.0.0-beta1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |