jfig.objects
Class FigNormalXSpline
java.lang.Object
jfig.objects.FigPolyline
jfig.objects.FigXSpline
jfig.objects.FigNormalXSpline
- All Implemented Interfaces:
- FigDrawable, FigObject
- public class FigNormalXSpline
- 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
not pass through the control points.
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 |
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.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 |
FigNormalXSpline
public FigNormalXSpline(int x0,
int y0,
FigAttribs attribs,
FigTrafo2D trafo)
FigNormalXSpline
public FigNormalXSpline(int x0,
int y0,
boolean is_closed,
FigAttribs attribs,
FigTrafo2D trafo)
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