Class DrawingNode

java.lang.Object
cz.fidentis.analyst.gui.elements.dendrogram.DrawingNode

public class DrawingNode extends Object
Helper node for drawing
  • Constructor Details

    • DrawingNode

      public DrawingNode(ClusterNode clusterNode, DrawingNode leftNode, DrawingNode rightNode, Point point)
      Constructor
      Parameters:
      clusterNode - cluster node drawing node wraps
      leftNode - nullable left child drawing node
      rightNode - nullable right child drawing node
      point - represents point in graphics of current instance
  • Method Details

    • getPoint

      public Point getPoint()
    • getLeftNode

      public DrawingNode getLeftNode()
    • getRightNode

      public DrawingNode getRightNode()
    • getClusterNode

      public ClusterNode getClusterNode()
    • getParent

      public DrawingNode getParent()
      Gets parent of node
      Returns:
      parent of node
    • isOnValidPathBetween

      public boolean isOnValidPathBetween(ClusterNode clusterNodeA, ClusterNode clusterNodeB)
      Determines whether at least one node is reachable from current position
      Parameters:
      clusterNodeA - one node to check if reachable
      clusterNodeB - second node to check if reachable
      Returns:
      true if at least one node is reachable