jfig.objects
Class FigBezierXSpline

java.lang.Object
  extended byjfig.objects.FigPolyline
      extended byjfig.objects.FigXSpline
          extended byjfig.objects.FigBezierXSpline
All Implemented Interfaces:
FigDrawable, FigObject

public class FigBezierXSpline
extends FigXSpline

a simple subclass of the generic FigXSpline which forces the control point scalefactors to values [0,-1,-1,...-1,0] (open spline) or [-1,-1,...,-1] (closed spline). Given the X-spline algorithm, this means that the spline will pass through the control points.


Field Summary
 
Fields inherited from class jfig.objects.FigXSpline
sfactors, wcp_spline
 
Fields inherited from class jfig.objects.FigPolyline
attribs, bbox, comment, debug, is_closed, min_i, min_num_points, painter, renderer, selected, showPoints, syncRedrawFlag, trafo, visible, wcp
 
Constructor Summary
FigBezierXSpline(int x0, int y0, boolean is_closed, FigAttribs attribs, FigTrafo2D trafo)
           
FigBezierXSpline(int x0, int y0, FigAttribs attribs, FigTrafo2D trafo)
           
 
Method Summary
 FigObject copy()
          build a copy of this FigXSpline.
 void createSfactors()
          default method to create the interpolation control sfactors.
 
Methods inherited from class jfig.objects.FigXSpline
createRenderer, dumpSfactors, dumpXsplinePoints, getSFactors, getSplinePoints, rebuild, setSFactors, toString
 
Methods inherited from class jfig.objects.FigPolyline
appendPoint, calc_dist, canRotate, deletePoint, deselect, get_min_dist_index, get_sc_bbox, getAttributes, getBbox, getComment, getLayer, getMinDistPoint1, getMinDistPoint2, getMinPerpendicularDistance, getMinPerpendicularDistance, getMovePointNeighbors, getNearestPoint, getNeighborPoints, getObjectPainter, getPoints, getPosition, getSegmentDistance, getSyncRedrawFlag, getText, getTrafo, indexOfNearestNeighbor, initialize, insertPoint, isClosed, isSelected, isShowPoints, isVisible, isVisible, keyPressed, manhattan, message, minDistance, minDistanceEuclid, mirrorX, mirrorY, move, movePoint, nearerPoint, numPoints, paint, paint, paintSave, printCost, reset_debug, rotate, scale, select, set_debug, setArrowMode, setAttributes, setBackwardArrow, setComment, setFillColor, setFillStyle, setForwardArrow, setIsClosed, setLayer, setLineColor, setLineStyle, setLineWidth, setObjectPainter, setPoints, setSyncRedrawFlag, setText, setTrafo, setVisible, showPoints, supportsPointOps, update_bbox, update, updateAttributes, writeAsResource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FigBezierXSpline

public FigBezierXSpline(int x0,
                        int y0,
                        FigAttribs attribs,
                        FigTrafo2D trafo)

FigBezierXSpline

public FigBezierXSpline(int x0,
                        int y0,
                        boolean is_closed,
                        FigAttribs attribs,
                        FigTrafo2D trafo)
Method Detail

createSfactors

public void createSfactors()
Description copied from class: FigXSpline
default method to create the interpolation control sfactors. We use 1.0 (approximated) everywhere except for the end points.

Overrides:
createSfactors in class FigXSpline

copy

public FigObject copy()
Description copied from class: FigXSpline
build a copy of this FigXSpline.

Specified by:
copy in interface FigObject
Overrides:
copy in class FigXSpline