Interface LinkStrategy<T>
- All Known Implementing Classes:
AbstractLinkStrategy, ClockHandLinkStrategy, CurvedLineLink, LogarithmicLink, PolyLineLink, QuadCurveLink, SimpleCatmullRomLink, SineWaveDecayLink, StraightLineLink
public interface LinkStrategy<T>
-
Method Summary
Modifier and TypeMethodDescriptionArrayList<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 heightparent- parent nodeparentPoint- parent node positionparentW- parent node widthparentH- parent node heightchild- child nodechildPoint- child node positionchildW- child node widthchildH- child node heightnodeLineGap- node connections gapvgap- vertical gap: distance between parent and childhgap- 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.)
-