uci.gef
Class FigInk

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

public class FigInk
extends FigPoly

Primitive Fig to paint Ink on a LayerDiagram. Ink is like an open polygon with no fill. The main difference between FigInk and FigPoly is in the way that they are created.

See Also:
FigPoly, ModeCreateFigInk, Serialized Form

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
FigInk()
          Construct a new FigInk w/ the given attributes.
FigInk(int x, int y)
          Construct a new FigInk w/ the given point and attributes.
 
Method Summary
 boolean contains(int x, int y)
           
 void setFilled(boolean f)
          FigInks can never be filled, so do nothing.
 void setLineWidth(int w)
          Line width of ink must be always be 1, so do nothing
 void setRectilinear(boolean r)
          FigInks can never be rectilinear, so do nothing.
 
Methods inherited from class uci.gef.FigPoly
addPoint, addPoint, appendTwoPoints, calcBounds, canMoveVertex, cleanUp, clone, countCornersContained, drawDashedPerimeter, findHandle, getClosestPoint, getFirstPoint, getFixedHandles, getGravityPoints, getLastPoint, getNumPoints, getPerimeterLength, getPoints, getPointsVector, getPointsVectorNotFirst, getPolygon, getRectilinear, getXs, getYs, growIfNeeded, hit, insertPoint, isReshapable, isResizable, isRotatable, moveVertex, OK, paint, prependTwoPoints, removePoint, setBounds, setEndPoints, setFixedHandles, setPoints, setPolygon, stuffPointAlongPerimeter, translate
 
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, setGroup, setHeight, setLayer, setLineColor, 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
 

Constructor Detail

FigInk

public FigInk()
Construct a new FigInk w/ the given attributes.

FigInk

public FigInk(int x,
              int y)
Construct a new FigInk w/ the given point and attributes.
Method Detail

setLineWidth

public void setLineWidth(int w)
Line width of ink must be always be 1, so do nothing
Overrides:
setLineWidth in class Fig

setFilled

public void setFilled(boolean f)
FigInks can never be filled, so do nothing.
Overrides:
setFilled in class Fig

setRectilinear

public void setRectilinear(boolean r)
FigInks can never be rectilinear, so do nothing.
Overrides:
setRectilinear in class FigPoly

contains

public boolean contains(int x,
                        int y)
Overrides:
contains in class FigPoly