S
- the base (model-level) object for which this is a View. For example, CyNode or CyEdge.
In the future versions, Attributes can be this parameter.public interface View<S> extends CyIdentifiable
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>
SUID
Modifier and Type | Method and Description |
---|---|
void |
clearValueLock(VisualProperty<?> vp)
Clear value lock for given VisualProperty.
|
void |
clearVisualProperties()
Clear all VisualProperty values previously set to this view.
|
S |
getModel()
Get source data structure, such as CyNode, CyEdge, etc.
|
<T> T |
getVisualProperty(VisualProperty<T> vp)
Get the actual value for the given visual property.
|
boolean |
isDirectlyLocked(VisualProperty<?> vp)
Returns true if the given VisualProperty's value has been locked.
|
boolean |
isSet(VisualProperty<?> vp)
Indicates whether or not the passed visual property is set with a non-null value.
|
boolean |
isValueLocked(VisualProperty<?> vp)
Returns true if the value of the given VisualProperty or one of its
ancestors is locked.
|
<T,V extends T> |
setLockedValue(VisualProperty<? extends T> vp,
V value)
Set locked value.
|
<T,V extends T> |
setVisualProperty(VisualProperty<? extends T> vp,
V value)
Assign a value to the given Visual Property of this view.
|
getSUID
<T,V extends T> void setVisualProperty(VisualProperty<? extends T> vp, V value)
T
- Data type of the visual property. This can be subclasses of type T.V
- Value of the visual property. This can be subclasses of T.vp
- the VisualProperty (Node Color, Edge Width, etc.)value
- actual value stored in this visual property.<T> T getVisualProperty(VisualProperty<T> vp)
T
- Object type of the Visual Property (Color, Double, ...)vp
- the VisualProperty.boolean isSet(VisualProperty<?> vp)
vp
- the VisualProperty.<T,V extends T> void setLockedValue(VisualProperty<? extends T> vp, V value)
T
- Data type of the visual property. This can be subclasses of type T.V
- Value of the visual property. This can be subclasses of T.vp
- the VisualPropertyvalue
- the value that will bypass the styleboolean isValueLocked(VisualProperty<?> vp)
vp
- the VisualPropertyvoid clearValueLock(VisualProperty<?> vp)
vp
- the VisualProperty.S getModel()
boolean isDirectlyLocked(VisualProperty<?> vp)
vp
- the VisualPropertyvoid clearVisualProperties()
Copyright 2011-2015 Cytoscape Consortium. All rights reserved.