Class AbstractInterpolator

    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method 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)
      Computes an ICurve geometry from the Connection's points, which is used to update the curve node.
      void interpolate​(Connection connection)
      Interpolates the given Connection, i.e updates its curve node to reflect a respective geometry.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractInterpolator

        public AbstractInterpolator()
    • Method Detail

      • arrangeDecoration

        protected void arrangeDecoration​(javafx.scene.Node decoration,
                                         Point offset,
                                         Vector direction)
        Arranges the given decoration according to the passed-in values.
        Parameters:
        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.
      • clipAtDecoration

        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.
        Parameters:
        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.
        Returns:
        A shape representing the resulting clip, interpreted in scene coordinates.
      • computeCurve

        protected abstract ICurve computeCurve​(Connection connection)
        Computes an ICurve geometry from the Connection's points, which is used to update the curve node.
        Parameters:
        connection - The Connection, for which to compute a new ICurve geometry.
        Returns:
        An ICurve that represents the to be rendered geometry.