Top Fields Constructors Methods
com.dlsc.gemsfx.treeview.link

public abstract Class AbstractLinkStrategy<T>

extends Object
implements LinkStrategy<T>
Class Inheritance
All Implemented Interfaces
com.dlsc.gemsfx.treeview.link.LinkStrategy
Known Direct Subclasses
com.dlsc.gemsfx.treeview.link.ClockHandLinkStrategy, com.dlsc.gemsfx.treeview.link.CurvedLineLink, com.dlsc.gemsfx.treeview.link.LogarithmicLink, com.dlsc.gemsfx.treeview.link.PolyLineLink, com.dlsc.gemsfx.treeview.link.QuadCurveLink, com.dlsc.gemsfx.treeview.link.SimpleCatmullRomLink, com.dlsc.gemsfx.treeview.link.SineWaveDecayLink, com.dlsc.gemsfx.treeview.link.StraightLineLink
Imports
com.dlsc.gemsfx.treeview.TreeNode, .TreeNodeView, javafx.geometry.Point2D, javafx.scene.Node, javafx.scene.layout.Region, javafx.scene.shape.CubicCurve, .CubicCurveTo, .LineTo, .QuadCurve, java.util.ArrayList

Field Summary

Modifier and TypeField and Description
protected double
protected double
protected double
protected double

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private double
bezierDerivative(double p0, double p1, double p2, double p3, double t)

private double
bezierDerivative(double p0, double p1, double p2, double t)

protected double
calculateAngle()

Returns: Calculate the angle of the line between the start and end points.

protected double
calculateAngle(double p1X, double p1Y, double p2X, double p2Y)

Returns: Calculate the angle of the line between the p1 and p2.

protected double
calculateAngle(Point2D p1, Point2D p2)

Returns: Calculate the angle of the line between the points.

protected double
calculateAngle(LineTo lineTo1, LineTo lineTo2)

protected void
calculateEndPoints(TreeNodeView.LayoutDirection direction, Point2D parentPoint, double parentW, double parentH, Point2D childPoint, double childW, double childH, double nodeLineGap)

protected Node
protected double
getTangentAngle(CubicCurve curve, double t)

Returns: Calculate the angle of the tangent of the curve at the given t.

protected double
getTangentAngle(CubicCurveTo curveTo, double t)

Returns: Calculate the angle of the tangent of the curve at the given t.

protected double
getTangentAngle(QuadCurve curve, double t)

Returns: Calculate the angle of the tangent of the curve at the given t.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

endXback to summary
protected double endX
endYback to summary
protected double endY
startXback to summary
protected double startX
startYback to summary
protected double startY

Constructor Detail

AbstractLinkStrategyback to summary
public AbstractLinkStrategy()

Method Detail

bezierDerivativeback to summary
private double bezierDerivative(double p0, double p1, double p2, double p3, double t)
bezierDerivativeback to summary
private double bezierDerivative(double p0, double p1, double p2, double t)
calculateAngleback to summary
protected double calculateAngle()
Returns:double

Calculate the angle of the line between the start and end points.

calculateAngleback to summary
protected double calculateAngle(double p1X, double p1Y, double p2X, double p2Y)
Returns:double

Calculate the angle of the line between the p1 and p2.

calculateAngleback to summary
protected double calculateAngle(Point2D p1, Point2D p2)
Returns:double

Calculate the angle of the line between the points.

calculateAngleback to summary
protected double calculateAngle(LineTo lineTo1, LineTo lineTo2)
calculateEndPointsback to summary
protected void calculateEndPoints(TreeNodeView.LayoutDirection direction, Point2D parentPoint, double parentW, double parentH, Point2D childPoint, double childW, double childH, double nodeLineGap)
createSimpleArrowback to summary
protected Node createSimpleArrow()
getTangentAngleback to summary
protected double getTangentAngle(CubicCurve curve, double t)
Returns:double

Calculate the angle of the tangent of the curve at the given t.

getTangentAngleback to summary
protected double getTangentAngle(CubicCurveTo curveTo, double t)
Returns:double

Calculate the angle of the tangent of the curve at the given t.

getTangentAngleback to summary
protected double getTangentAngle(QuadCurve curve, double t)
Returns:double

Calculate the angle of the tangent of the curve at the given t.