|
Cytoscape 3.0.0-beta1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cytoscape.view.model.AbstractVisualProperty<T>
T - the generic type for this AbstractVisualProperty.public abstract class AbstractVisualProperty<T>
An abstract implementation of VisualProperty that omits the methods dealing with serializing data.
| Field Summary | |
|---|---|
protected boolean |
shouldIgnoreDefault
If this is true, default value will be ignored by VizMapper. |
| Constructor Summary | |
|---|---|
AbstractVisualProperty(T defaultValue,
Range<T> range,
String id,
String displayName,
Class<? extends CyIdentifiable> targetObjectDataType)
Constructor to set all immutable fields. |
|
| 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. |
boolean |
shouldIgnoreDefault()
In some cases, default value from visual style is not suitable, such as x, y, z location of nodes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.cytoscape.view.model.VisualProperty |
|---|
parseSerializableString, toSerializableString |
| Field Detail |
|---|
protected boolean shouldIgnoreDefault
| Constructor Detail |
|---|
public AbstractVisualProperty(T defaultValue,
Range<T> range,
String id,
String displayName,
Class<? extends CyIdentifiable> targetObjectDataType)
defaultValue - default value for this visual property.range - the Range for the visual property.id - unique string for serialization.displayName - human-readable name for this visual property.targetObjectDataType - the type of the target object for this visual property.| Method Detail |
|---|
public Range<T> getRange()
VisualPropertyRange of this VisualProperty.
getRange in interface VisualProperty<T>Range of this VisualProperty.public T getDefault()
VisualProperty
getDefault in interface VisualProperty<T>public String getIdString()
VisualProperty
getIdString in interface VisualProperty<T>public String getDisplayName()
VisualProperty
getDisplayName in interface VisualProperty<T>public boolean shouldIgnoreDefault()
VisualProperty
shouldIgnoreDefault in interface VisualProperty<T>public Class<? extends CyIdentifiable> getTargetDataType()
VisualPropertyCyEdge data object. In that case, this returns Class<CyEdge>.
For now, return data types are CyNode, CyEdge, and CyNetwork.
getTargetDataType in interface VisualProperty<T>
|
Cytoscape 3.0.0-beta1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||