Interface LinkStrategy<T>

All Known Implementing Classes:
AbstractLinkStrategy, ClockHandLinkStrategy, CurvedLineLink, LogarithmicLink, PolyLineLink, QuadCurveLink, SimpleCatmullRomLink, SineWaveDecayLink, StraightLineLink

public interface LinkStrategy<T>
  • Method Summary

    Modifier and Type
    Method
    Description
    ArrayList<javafx.scene.Node>
    drawNodeLink(TreeNodeView.LayoutDirection direction, double maxDimensionInLine, TreeNode<T> parent, javafx.geometry.Point2D parentPoint, double parentW, double parentH, TreeNode<T> child, javafx.geometry.Point2D childPoint, double childW, double childH, double nodeLineGap, double vgap, double hgap)
    Draw node/path connections
  • Method Details

    • drawNodeLink

      ArrayList<javafx.scene.Node> drawNodeLink(TreeNodeView.LayoutDirection direction, double maxDimensionInLine, TreeNode<T> parent, javafx.geometry.Point2D parentPoint, double parentW, double parentH, TreeNode<T> child, javafx.geometry.Point2D childPoint, double childW, double childH, double nodeLineGap, double vgap, double hgap)
      Draw node/path connections
      Parameters:
      maxDimensionInLine - max dimension in line; if left-to-right or right-to-left, it is width; if top-to-bottom or bottom-to-top, it is height
      parent - parent node
      parentPoint - parent node position
      parentW - parent node width
      parentH - parent node height
      child - child node
      childPoint - child node position
      childW - child node width
      childH - child node height
      nodeLineGap - node connections gap
      vgap - vertical gap: distance between parent and child
      hgap - horizontal gap: distance between child and child (same level/row)
      Returns:
      Node/Path connections; these nodes may be lines and arrows; (The returned nodes should have both layoutX and layoutY already set.)