T
- type of VisualProperty value in this group.public final class VisualPropertyDependency<T> extends Object
Module: vizmap-api
To use this in your app, include the following dependency in your POM:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>vizmap-api</artifactId> </dependency>
Constructor and Description |
---|
VisualPropertyDependency(String id,
String displayName,
Set<VisualProperty<T>> vpSet,
VisualLexicon lexicon)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getDisplayName()
Provides human-readable name of this dependency.
|
String |
getIdString()
Provides serializable string of this dependency.
|
VisualProperty<T> |
getParentVisualProperty()
Returns the parent visual property for this dependency.
|
Set<VisualProperty<?>> |
getVisualProperties()
A set of Visual Properties to be set by the parent if locked.
|
int |
hashCode() |
boolean |
isDependencyEnabled()
Returns whether or not this dependency is enabled.
|
void |
setDependency(boolean enable)
Enables or disables the dependency based on the boolean parameter.
|
void |
setEventHelper(CyEventHelper eventHelper)
The
VisualStyle implementation should use this method to pass a valid CyEventHelper
after this dependency is added to the visual style object. |
String |
toString() |
public VisualPropertyDependency(String id, String displayName, Set<VisualProperty<T>> vpSet, VisualLexicon lexicon)
displayName
- A human readable name for use in user interfaces.vpSet
- The set of visual properties.lexicon
- The visual lexicon used by this dependency. The lexicon determines
the parent visual property for this dependency.public String getDisplayName()
public String getIdString()
public Set<VisualProperty<?>> getVisualProperties()
public void setDependency(boolean enable)
enable
- Whether to enable (true) or disable (false) this dependency.public boolean isDependencyEnabled()
public VisualProperty<T> getParentVisualProperty()
public void setEventHelper(CyEventHelper eventHelper)
VisualStyle
implementation should use this method to pass a valid CyEventHelper
after this dependency is added to the visual style object.eventHelper
- Copyright 2011-2015 Cytoscape Consortium. All rights reserved.