public final class VisualLexiconNode extends Object implements Comparable<VisualLexiconNode>
Wrapping a VisualProperty and holding parent-child relationships.
All data fields are immutable.
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>
Constructor and Description |
---|
VisualLexiconNode(VisualProperty<?> vp,
VisualLexiconNode parent)
Constructs this VisualLexiconNode.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(VisualLexiconNode other)
Compare by display name of this Visual Property.
|
Collection<VisualLexiconNode> |
getChildren()
Returns collection of all children of this node.
|
VisualLexiconNode |
getParent()
Get the parent of this VP node.
|
VisualProperty<?> |
getVisualProperty()
Returns wrapped VisualProperty object.
|
public VisualLexiconNode(VisualProperty<?> vp, VisualLexiconNode parent)
vp
- the VisualProperty
to wrap.parent
- this VisualLexiconNodes parent VisualLexiconNode.public VisualProperty<?> getVisualProperty()
public VisualLexiconNode getParent()
public Collection<VisualLexiconNode> getChildren()
public int compareTo(VisualLexiconNode other)
compareTo
in interface Comparable<VisualLexiconNode>
Copyright 2011-2015 Cytoscape Consortium. All rights reserved.