|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jfig.objects.FigPolyline jfig.objects.FigXSpline
X-spline objects, which allow to specify the spline behaviour at each spline control point via a "scale factor" for that point.
This code relies on jfig.utils.Xspline for building the spline. Please see the Copyright note in that class for details about the underlying algorithm and implementation from xfig u_draw.c
Field Summary | |
protected double[] |
sfactors
array with one sfactor value between [-1.0 .. |
protected java.awt.Point[] |
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 | |
FigXSpline()
|
|
FigXSpline(int x0,
int y0,
boolean is_closed,
FigAttribs attribs,
FigTrafo2D trafo)
|
|
FigXSpline(int x0,
int y0,
FigAttribs attribs,
FigTrafo2D trafo)
|
Method Summary | |
FigObject |
copy()
build a copy of this FigXSpline. |
void |
createRenderer()
|
void |
createSfactors()
default method to create the interpolation control sfactors. |
void |
dumpSfactors()
|
void |
dumpXsplinePoints()
print the array of interpolated spline points to stdout for debugging purposes. |
double[] |
getSFactors()
return the array of s-factors, one s-factor per spline control point. |
java.awt.Point[] |
getSplinePoints()
return the (possibly quite large) array of interpolated spline points calculated by jfig.utils.Xspline.compute_spline. |
void |
rebuild()
rebuild all internal data-structures for this polyline. |
void |
setSFactors(double[] sfactors)
|
java.lang.String |
toString()
toString() for debug purposes. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected double[] sfactors
protected java.awt.Point[] wcp_spline
Constructor Detail |
public FigXSpline()
public FigXSpline(int x0, int y0, FigAttribs attribs, FigTrafo2D trafo)
public FigXSpline(int x0, int y0, boolean is_closed, FigAttribs attribs, FigTrafo2D trafo)
Method Detail |
public void createRenderer()
createRenderer
in class FigPolyline
public void createSfactors()
public java.lang.String toString()
FigPolyline
toString
in interface FigObject
toString
in class FigPolyline
public void rebuild()
FigPolyline
rebuild
in interface FigObject
rebuild
in class FigPolyline
public double[] getSFactors()
public void setSFactors(double[] sfactors)
public java.awt.Point[] getSplinePoints()
public void dumpXsplinePoints()
public void dumpSfactors()
public FigObject copy()
copy
in interface FigObject
copy
in class FigPolyline
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |