Class ClockHandLinkStrategy<T>

java.lang.Object
com.dlsc.gemsfx.treeview.link.AbstractLinkStrategy<T>
com.dlsc.gemsfx.treeview.link.ClockHandLinkStrategy<T>
Type Parameters:
T - the type of the data value stored in each tree node
All Implemented Interfaces:
LinkStrategy<T>

public class ClockHandLinkStrategy<T> extends AbstractLinkStrategy<T>
A LinkStrategy that draws a tapered, clock-hand-shaped connector between a parent and a child node.

The link is rendered as a filled, tapering polygon — wide at the parent end and narrowing to a thin tip at the child end — with a small filled circle at the tail (parent side). This creates a visual resemblance to a clock or compass hand.

  • Constructor Details

    • ClockHandLinkStrategy

      public ClockHandLinkStrategy()
  • Method Details

    • drawLink

      protected ArrayList<javafx.scene.Node> drawLink(TreeNodeView.LayoutDirection direction, double maxDimensionInLine, double startX, double startY, double endX, double endY, double vgap, double hgap)
      Draws the link for the given start and end coordinates.
      Specified by:
      drawLink in class AbstractLinkStrategy<T>
      Parameters:
      direction - the layout direction
      maxDimensionInLine - the maximum node dimension in the active line
      startX - the x-coordinate of the link start
      startY - the y-coordinate of the link start
      endX - the x-coordinate of the link end
      endY - the y-coordinate of the link end
      vgap - the vertical gap between levels
      hgap - the horizontal gap between levels
      Returns:
      the nodes used to render the link