Class DoubleSpline

java.lang.Object
com.treemap.swing.voronoi.smoothing.AbstractSmoothedSegment
com.treemap.swing.voronoi.smoothing.DoubleSpline
All Implemented Interfaces:
SmoothedSegment

public class DoubleSpline extends AbstractSmoothedSegment
  • Constructor Details

  • Method Details

    • getConnectingPoint

      public Point2d getConnectingPoint()
    • getStartCurve

      public CubicCurve2D getStartCurve()
    • getNearestSegmentLocation

      public SegmentLocation getNearestSegmentLocation(Vertex vertex)
    • getSubSegment

      public SmoothedSegment getSubSegment(SegmentLocation start, SegmentLocation end)
    • getSubCruveFromConnectingPoint

      public CubicCurve2D getSubCruveFromConnectingPoint(CurveLocation curveLocation)
    • addCurveToGeneralPath

      public void addCurveToGeneralPath(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(GeneralPath generalPath)
    • reversed

      public SmoothedSegment reversed()