public class VNode
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
VNode.VNodeType |
Constructor and Description |
---|
VNode(java.lang.String name) |
VNode(java.lang.String name,
CoolMapOntologyImpl ontology) |
VNode(java.lang.String name,
CoolMapOntologyImpl ontology,
java.lang.String nodeId) |
Modifier and Type | Method and Description |
---|---|
void |
addChildNode(VNode node) |
void |
colorAncestors(java.awt.Color color) |
void |
colorChild(java.awt.Color color) |
static int |
distanceInclusive(VNode v1,
VNode v2,
float zoom)
distance in pixels, including the width of both nodes however, the zoom
parameter only returns the - we don't know the viewOffset @ which the
nodes are actually set so if use a zoom different than the zoom when the
nodes are set, tehre
|
VNode |
duplicate() |
VNode |
duplicate(boolean changeID) |
java.lang.Integer[] |
getBaseIndicesFromCOntology(CoolMapMatrix coolMapMatrix,
java.lang.Integer direction) |
java.util.List<VNode> |
getChildNodes() |
java.lang.String |
getCOntologyID() |
float |
getCurrentViewMultiplier() |
float |
getDefaultViewMultiplier() |
java.lang.String |
getID() |
java.lang.String |
getName() |
VNode |
getParentNode() |
VNode.VNodeType |
getType() |
java.awt.Color |
getViewColor() |
java.lang.Float |
getViewHeightDiffFromParent() |
java.lang.Float |
getViewHeightInTree() |
java.lang.Float |
getViewIndex() |
java.lang.String |
getViewLabel() |
java.lang.Float |
getViewOffset() |
java.lang.Float |
getViewOffset(float zoom) |
java.lang.Float |
getViewOffsetCenter(float zoom) |
float |
getViewSizeInMap(float zoom) |
boolean |
isExpanded() |
boolean |
isGroupNode() |
boolean |
isMarked() |
boolean |
isSingleNode() |
boolean |
isVoid() |
void |
mark(boolean mark) |
void |
markAncestors(boolean marked) |
void |
refresh()
need to be called if ontologies were changed since
|
void |
removeChildNode(VNode childNode) |
void |
resetViewMultiplier() |
void |
setDefaultViewMultiplier(java.lang.Float multiplier) |
void |
setExpanded(boolean expanded) |
void |
setParentNode(VNode parentNode) |
void |
setViewColor(java.awt.Color color) |
void |
setViewHeight(java.lang.Float height) |
void |
setViewIndex(java.lang.Float index) |
void |
setViewLabel(java.lang.String label) |
void |
setViewMultiplier(java.lang.Float multiplier) |
void |
setViewOffset(float offset) |
void |
sortChildNodes() |
java.lang.String |
toString() |
public VNode(java.lang.String name)
public VNode(java.lang.String name, CoolMapOntologyImpl ontology)
public VNode(java.lang.String name, CoolMapOntologyImpl ontology, java.lang.String nodeId)
public void setViewColor(java.awt.Color color)
public final java.lang.String getID()
public void setViewOffset(float offset)
public java.lang.Float getViewOffset()
public java.awt.Color getViewColor()
public java.lang.String getCOntologyID()
public void setViewMultiplier(java.lang.Float multiplier)
public void setDefaultViewMultiplier(java.lang.Float multiplier)
public void resetViewMultiplier()
public java.lang.Float getViewIndex()
public void setViewIndex(java.lang.Float index)
public java.lang.Float getViewHeightInTree()
public java.lang.Float getViewHeightDiffFromParent()
public void sortChildNodes()
public void setViewHeight(java.lang.Float height)
public void refresh()
public java.lang.Integer[] getBaseIndicesFromCOntology(CoolMapMatrix coolMapMatrix, java.lang.Integer direction)
public java.lang.String getName()
public java.lang.String getViewLabel()
public final void setViewLabel(java.lang.String label)
public float getViewSizeInMap(float zoom)
public java.lang.Float getViewOffset(float zoom)
public java.lang.Float getViewOffsetCenter(float zoom)
public VNode getParentNode()
public java.util.List<VNode> getChildNodes()
public void removeChildNode(VNode childNode)
public void colorChild(java.awt.Color color)
public void colorAncestors(java.awt.Color color)
public void markAncestors(boolean marked)
public void setParentNode(VNode parentNode)
public VNode.VNodeType getType()
public final void setExpanded(boolean expanded)
public boolean isExpanded()
public boolean isSingleNode()
public boolean isVoid()
public boolean isGroupNode()
public java.lang.String toString()
toString
in class java.lang.Object
public static int distanceInclusive(VNode v1, VNode v2, float zoom)
v1
- node 1v2
- node 2zoom
- zoompublic VNode duplicate(boolean changeID)
public VNode duplicate()
public void addChildNode(VNode node)
public float getCurrentViewMultiplier()
public float getDefaultViewMultiplier()
public void mark(boolean mark)
public boolean isMarked()