uci.gef
Class FigSpline

java.lang.Object
  |
  +--uci.gef.Fig
        |
        +--uci.gef.FigPoly
              |
              +--uci.gef.FigSpline

public class FigSpline
extends FigPoly

See Also:
Serialized Form

Field Summary
protected  Polygon _curve
           
protected  double _d_curve_length
           
protected  double _delta0
           
protected  double _delta1
           
protected  double _denom
           
protected  double _junc_t
           
protected  int _juncX
           
protected  int _juncY
           
protected  int _nknots
           
protected  int _pattern
           
protected  BitSet _style
           
protected  int _threshold
           
protected  int[] _xknots
           
protected  int[] _yknots
           
protected  int ARR_HEIGHT
           
protected  int ARR_WIDTH
           
protected  int SPLINE_THRESH
           
 
Fields inherited from class uci.gef.FigPoly
_fixedHandles, _isComplete, _isSelfLoop, _npoints, _rectilinear, _xpoints, _ypoints, FUDGEFACTOR
 
Fields inherited from class uci.gef.Fig
_dashes, _fillColor, _filled, _group, _h, _layer, _lineColor, _lineWidth, _locked, _w, _x, _y, BORDER, DASH_ARRAYS, DASHED_CHOICES, MIN_SIZE
 
Constructor Summary
FigSpline(Color line_color)
           
FigSpline(Color line_color, Color fill_color)
           
FigSpline(int x, int y)
           
 
Method Summary
 void addPoint(int x, int y)
           
 void appendTwoPoints()
           
 void cleanUp()
           
protected  void drawBezier(Graphics g, int x1, int y1, int x2, int y2, int x3, int y3)
           
protected  void drawCurve(Graphics g)
           
protected  void drawStraight(Graphics g)
           
protected  void growIfNeeded()
           
 void insertPoint(int i, int x, int y)
           
 void moveVertex(Handle h, int x, int y, boolean ov)
           
 void paint(Graphics g)
           
 void prependTwoPoints()
           
 void removePoint(int i)
           
protected  void setCount()
           
protected  void setJunctionPoint(int p1x, int p1y, int p2x, int p2y, int p3x, int p3y)
           
protected  void setSpline()
           
 void translate(int dx, int dy)
           
 
Methods inherited from class uci.gef.FigPoly
addPoint, calcBounds, canMoveVertex, clone, contains, countCornersContained, drawDashedPerimeter, findHandle, getClosestPoint, getFirstPoint, getFixedHandles, getGravityPoints, getLastPoint, getNumPoints, getPerimeterLength, getPoints, getPointsVector, getPointsVectorNotFirst, getPolygon, getRectilinear, getXs, getYs, hit, isReshapable, isResizable, isRotatable, OK, setBounds, setEndPoints, setFixedHandles, setPoints, setPolygon, setRectilinear, stuffPointAlongPerimeter
 
Methods inherited from class uci.gef.Fig
addPropertyChangeListener, align, center, classNameAndBounds, connectionPoint, contains, contains, createDrag, damage, delete, dispose, drawDashedLine, endTrans, firePropChange, firePropChange, firePropChange, getBounds, getDashed, getDashed01, getDashedString, getEnclosedFigs, getEnclosingFig, getFillColor, getFilled, getFilled01, getGroup, getHalfHeight, getHalfWidth, getHeight, getId, getLayer, getLineColor, getLineWidth, getLocation, getLocked, getMinimumSize, getOwner, getPoints, getPopUpActions, getPreferedSize, getSize, getTipString, getTrapRect, getUseTrapRect, getWidth, getX, getY, intersects, isLowerRightResizable, isMovable, makeSelection, pointAlongPerimeter, postLoad, postSave, preSave, print, propertyChange, removePropertyChangeListener, reorder, routingRect, setBounds, setDashed, setDashedString, setEnclosingFig, setFillColor, setFilled, setGroup, setHeight, setLayer, setLineColor, setLineWidth, setLocation, setLocation, setLocked, setNumPoints, setOwner, setPoints, setPoints, setPoints, setPoints, setSize, setSize, setWidth, setX, setXs, setY, setYs, startTrans, stuffBounds, within
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_xknots

protected int[] _xknots

_yknots

protected int[] _yknots

_nknots

protected int _nknots

_curve

protected Polygon _curve

_threshold

protected int _threshold

SPLINE_THRESH

protected int SPLINE_THRESH

ARR_WIDTH

protected int ARR_WIDTH

ARR_HEIGHT

protected int ARR_HEIGHT

_junc_t

protected double _junc_t

_delta0

protected double _delta0

_delta1

protected double _delta1

_denom

protected double _denom

_d_curve_length

protected double _d_curve_length

_juncX

protected int _juncX

_juncY

protected int _juncY

_pattern

protected int _pattern

_style

protected BitSet _style
Constructor Detail

FigSpline

public FigSpline(Color line_color,
                 Color fill_color)

FigSpline

public FigSpline(Color line_color)

FigSpline

public FigSpline(int x,
                 int y)
Method Detail

moveVertex

public void moveVertex(Handle h,
                       int x,
                       int y,
                       boolean ov)
Overrides:
moveVertex in class FigPoly

translate

public void translate(int dx,
                      int dy)
Overrides:
translate in class FigPoly

addPoint

public void addPoint(int x,
                     int y)
Overrides:
addPoint in class FigPoly

removePoint

public void removePoint(int i)
Overrides:
removePoint in class FigPoly

appendTwoPoints

public void appendTwoPoints()
Overrides:
appendTwoPoints in class FigPoly

prependTwoPoints

public void prependTwoPoints()
Overrides:
prependTwoPoints in class FigPoly

insertPoint

public void insertPoint(int i,
                        int x,
                        int y)
Overrides:
insertPoint in class FigPoly

paint

public void paint(Graphics g)
Overrides:
paint in class FigPoly

drawBezier

protected void drawBezier(Graphics g,
                          int x1,
                          int y1,
                          int x2,
                          int y2,
                          int x3,
                          int y3)

drawCurve

protected void drawCurve(Graphics g)

drawStraight

protected void drawStraight(Graphics g)

setCount

protected void setCount()

setSpline

protected void setSpline()

setJunctionPoint

protected void setJunctionPoint(int p1x,
                                int p1y,
                                int p2x,
                                int p2y,
                                int p3x,
                                int p3y)

growIfNeeded

protected void growIfNeeded()
Overrides:
growIfNeeded in class FigPoly

cleanUp

public void cleanUp()
Overrides:
cleanUp in class FigPoly