public abstract class AbstractInterpolator extends java.lang.Object implements IConnectionInterpolator
IConnectionInterpolator
implementations,
which supports updating the geometry for an IGeometry
curve node, as
well as arranging and clipping the decorations.Constructor and Description |
---|
AbstractInterpolator() |
Modifier and Type | Method and Description |
---|---|
protected void |
arrangeDecoration(javafx.scene.Node decoration,
Point offset,
Vector direction)
Arranges the given decoration according to the passed-in values.
|
protected javafx.scene.shape.Shape |
clipAtDecoration(javafx.scene.shape.Shape curveShape,
javafx.scene.shape.Shape curveClip,
javafx.scene.shape.Shape decoration)
Adjusts the curveClip so that the curve node does not paint through the
given decoration.
|
protected abstract ICurve |
computeCurve(Connection connection)
|
void |
interpolate(Connection connection)
Interpolates the given
Connection , i.e updates its
curve node to reflect a respective
geometry. |
protected void arrangeDecoration(javafx.scene.Node decoration, Point offset, Vector direction)
decoration
- The decoration Node
to arrange.offset
- The offset for the decoration visual.direction
- The direction of the Connection
at the point where the
decoration is arranged.protected javafx.scene.shape.Shape clipAtDecoration(javafx.scene.shape.Shape curveShape, javafx.scene.shape.Shape curveClip, javafx.scene.shape.Shape decoration)
curveShape
- A shape describing the ICurve
geometry, which is used
for clipping.curveClip
- A shape that represents the clip of the curve node,
interpreted in scene coordinates.decoration
- The decoration to clip the curve node from.protected abstract ICurve computeCurve(Connection connection)
connection
- The Connection
, for which to compute a new
ICurve
geometry.ICurve
that represents the to be rendered geometry.public void interpolate(Connection connection)
IConnectionInterpolator
Connection
, i.e updates its
curve node
to reflect a respective
geometry. The IConnectionInterpolator
is also responsible of
arranging the connection's start
and end
decorations (and has to
ensure the curve node is properly clipped to not render through the
decorations).interpolate
in interface IConnectionInterpolator
connection
- The Connection
to interpolate.Copyright (c) 2014, 2016 itemis AG and others. All rights reserved.