Class BezierCurveControls


  • public class BezierCurveControls
    extends java.lang.Object
    This data class presents a point and two control points that can be used to add a CubicCurve to a Bèzier path. This data model can be used in conjunction with CurveTo, where the start point of the cubic curve is the current point of the path. controlPoint1 belongs to that point and defines the outgoing of the curve. point is the end point of the curve and controlPoint2 defines the incoming of the curve.
    Author:
    Andi Hotz, (c) Sahits GmbH, 2016 Created on Jan 06, 2016
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private javafx.geometry.Point2D controlPoint1  
      private javafx.geometry.Point2D controlPoint2  
      private javafx.geometry.Point2D point  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javafx.geometry.Point2D getControlPoint1()
      Retrieve the outgoing control point for the start point of this segment of the curve.
      javafx.geometry.Point2D getControlPoint2()
      Retrieve the incoming control point for the end point of this segment of the curve.
      javafx.geometry.Point2D getPoint()
      Retrieve the enpoint of the curve.
      • Methods inherited from class java.lang.Object

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

      • point

        private final javafx.geometry.Point2D point
      • controlPoint1

        private final javafx.geometry.Point2D controlPoint1
      • controlPoint2

        private final javafx.geometry.Point2D controlPoint2
    • Constructor Detail

      • BezierCurveControls

        public BezierCurveControls()
    • Method Detail

      • getPoint

        public javafx.geometry.Point2D getPoint()
        Retrieve the enpoint of the curve.
        Returns:
        endpoint
      • getControlPoint1

        public javafx.geometry.Point2D getControlPoint1()
        Retrieve the outgoing control point for the start point of this segment of the curve.
        Returns:
        control point for the current position on the path.
      • getControlPoint2

        public javafx.geometry.Point2D getControlPoint2()
        Retrieve the incoming control point for the end point of this segment of the curve.
        Returns:
        control point for point