Class DoubleSpline

    • Constructor Detail

      • DoubleSpline

        public DoubleSpline​(java.awt.geom.CubicCurve2D startToConnectingPoint,
                            java.awt.geom.CubicCurve2D connectingPointToEnd,
                            Vertex startVertex,
                            Vertex endVertex,
                            LineSegment lineSegment)
    • Method Detail

      • getConnectingPoint

        public Point2d getConnectingPoint()
      • getStartCurve

        public java.awt.geom.CubicCurve2D getStartCurve()
      • getSubCruveFromConnectingPoint

        public java.awt.geom.CubicCurve2D getSubCruveFromConnectingPoint​(CurveLocation curveLocation)
      • addCurveToGeneralPath

        public void addCurveToGeneralPath​(java.awt.geom.GeneralPath generalPath,
                                          SegmentDirection direction)
      • getCurveControlPoints

        public void getCurveControlPoints​(Point2d[] knots,
                                          Point2d[] firstControlPoints,
                                          Point2d[] secondControlPoints)
        Get open-ended Bezier Spline Control Points. From (http://www.codeproject.com/KB/graphics/BezierSpline.aspx?msg=3396481) License (CPOL) 1.02 : Source Code and Executable Files can be used in commercial applications; Source Code and Executable Files can be redistributed; and Source Code can be modified to create derivative works.*
        Parameters:
        knots - Input Knot Bezier spline points.
        firstControlPoints - Output of First Control points
        secondControlPoints - Output of Second Control points
      • addToGeneralPath

        public void addToGeneralPath​(java.awt.geom.GeneralPath generalPath)