public interface VisualLexicon
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 |
---|---|
Collection<VisualProperty<?>> |
getAllDescendants(VisualProperty<?> prop)
Get collection of visual properties for a given object type (node/edge/network).
|
Set<VisualProperty<?>> |
getAllVisualProperties()
Returns the Set of VisualPropertys supported by this Renderer.
|
VisualProperty<NullDataType> |
getRootVisualProperty()
Get root of this tree.
|
<T> Set<T> |
getSupportedValueRange(VisualProperty<T> vp)
Returns a filtered value range for a
VisualProperty that uses a DiscreteRange . |
VisualLexiconNode |
getVisualLexiconNode(VisualProperty<?> vp)
Get a tree node in for the given VisualProperty.
|
boolean |
isSupported(VisualProperty<?> vp)
Test the given Visual Property is supported in this Lexicon.
|
VisualProperty<?> |
lookup(Class<?> type,
String identifier)
Returns the appropriate visual property for the descriptive
string.
|
VisualProperty<NullDataType> getRootVisualProperty()
Set<VisualProperty<?>> getAllVisualProperties()
VisualProperty<?> lookup(Class<?> type, String identifier)
type
- The type of the visual property sought, which should
(in general) be CyNode.class, CyEdge.class, or CyNetwork.class.identifier
- A string identifying a particular visual property.VisualLexiconNode getVisualLexiconNode(VisualProperty<?> vp)
vp
- target VisualProperty in this lexicon.IllegalArgumentException
- If vp does not exist in the lexicon.Collection<VisualProperty<?>> getAllDescendants(VisualProperty<?> prop)
prop
- any visual propertyboolean isSupported(VisualProperty<?> vp)
vp
- visual property to be tested.<T> Set<T> getSupportedValueRange(VisualProperty<T> vp)
VisualProperty
that uses a DiscreteRange
.
VisualLexicons may override this method to remove or add values to
a DiscreteRange
for a built-in VisualProperty
from BasicVisualLexicon.vp
- VisualProperty where vp.getRange().isDiscrete() == trueCopyright 2011-2015 Cytoscape Consortium. All rights reserved.