Class QuadCurveLink<T>
java.lang.Object
com.dlsc.gemsfx.treeview.link.AbstractLinkStrategy<T>
com.dlsc.gemsfx.treeview.link.QuadCurveLink<T>
- Type Parameters:
T- the type of the data value stored in each tree node
- All Implemented Interfaces:
LinkStrategy<T>
A
LinkStrategy that draws a quadratic Bézier curve between a parent and a
child node, with a directional arrow at the child end.
A single control point is placed at the midpoint between parent and child along the perpendicular axis, producing a smooth, single-bowed curve. A directional arrow is oriented along the tangent at the child end of the curve.
-
Field Summary
Fields inherited from class AbstractLinkStrategy
endX, endY, startX, startY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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.Methods inherited from class AbstractLinkStrategy
calculateAngle, calculateAngle, calculateAngle, calculateAngle, calculateEndPoints, createSimpleArrow, drawNodeLink, getTangentAngle, getTangentAngle, getTangentAngle
-
Constructor Details
-
QuadCurveLink
public QuadCurveLink()
-
-
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:
drawLinkin classAbstractLinkStrategy<T>- Parameters:
direction- the layout directionmaxDimensionInLine- the maximum node dimension in the active linestartX- the x-coordinate of the link startstartY- the y-coordinate of the link startendX- the x-coordinate of the link endendY- the y-coordinate of the link endvgap- the vertical gap between levelshgap- the horizontal gap between levels- Returns:
- the nodes used to render the link
-