Class DrawingNode
java.lang.Object
cz.fidentis.analyst.gui.elements.dendrogram.DrawingNode
Helper node for drawing
-
Constructor Summary
ConstructorsConstructorDescriptionDrawingNode
(ClusterNode clusterNode, DrawingNode leftNode, DrawingNode rightNode, Point point) Constructor -
Method Summary
Modifier and TypeMethodDescriptionGets parent of nodegetPoint()
boolean
isOnValidPathBetween
(ClusterNode clusterNodeA, ClusterNode clusterNodeB) Determines whether at least one node is reachable from current position
-
Constructor Details
-
DrawingNode
public DrawingNode(ClusterNode clusterNode, DrawingNode leftNode, DrawingNode rightNode, Point point) Constructor- Parameters:
clusterNode
- cluster node drawing node wrapsleftNode
- nullable left child drawing noderightNode
- nullable right child drawing nodepoint
- represents point in graphics of current instance
-
-
Method Details
-
getPoint
-
getLeftNode
-
getRightNode
-
getClusterNode
-
getParent
Gets parent of node- Returns:
- parent of node
-
isOnValidPathBetween
Determines whether at least one node is reachable from current position- Parameters:
clusterNodeA
- one node to check if reachableclusterNodeB
- second node to check if reachable- Returns:
- true if at least one node is reachable
-