T
- the dataType of the VisualProperty, i.e. what kind of objects are the valuespublic interface VisualProperty<T>
Module: viewmodel-api
To use this in your app, include the following dependency in your POM:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>viewmodel-api</artifactId> </dependency>
Modifier and Type | Method and Description |
---|---|
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.
|
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.Copyright 2011-2015 Cytoscape Consortium. All rights reserved.