org.tigris.gef.presentation
Class FigInk

java.lang.Object
  extended by org.tigris.gef.presentation.Fig
      extended by org.tigris.gef.presentation.FigPoly
          extended by org.tigris.gef.presentation.FigInk
All Implemented Interfaces:
java.beans.PropertyChangeListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, PopupGenerator

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, Serialized Form

Field Summary
 
Fields inherited from class org.tigris.gef.presentation.FigPoly
_fixedHandles, _isComplete, _isSelfLoop, _npoints, _rectilinear, _xpoints, _ypoints, FUDGEFACTOR
 
Fields inherited from class org.tigris.gef.presentation.Fig
_allowsSaving, _context, _dashes, _dashPeriod, _dashStyle, _filled, _h, _w, _x, _y, an, annotationOwner, annotationStatus, BORDER, 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)
          Reply true iff the given point is inside this FigPoly.
 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 org.tigris.gef.presentation.FigPoly
addPoint, addPoint, appendTwoPoints, calcBounds, canMoveVertex, cleanUp, clone, countCornersContained, drawDashedPerimeter, findHandle, getClosestPoint, getFirstPoint, getFixedHandles, getGravityPoints, getLastPoint, getNumPoints, getPerimeterLength, getPoint, getPoints, getPointsList, getPolygon, getRectilinear, getXs, getYs, growIfNeeded, hit, insertPoint, intersectsPerimeter, isPerimeterClosed, isReshapable, isResizable, isRotatable, isSelfLoop, moveVertex, OK, paint, prependTwoPoints, removePoint, setBounds, setEndPoints, setFixedHandles, setPoints, setPolygon, setSelfLoop, stuffPointAlongPerimeter, translate
 
Methods inherited from class org.tigris.gef.presentation.Fig
addAnnotation, addPropertyChangeListener, align, center, classNameAndBounds, connectionPoint, contains, contains, createDrag, damage, deleteFromModel, drawDashedLine, endTrans, firePropChange, firePropChange, firePropChange, getAnnotationOwner, getAnnotationStrategy, getBounds, getBounds, getContext, getDashed, getDashed01, getDashedString, getEnclosedFigs, getEnclosingFig, getFillColor, getFilled, getFilled01, getGroup, getHalfHeight, getHalfWidth, getHandleBox, getHeight, getId, getLayer, getLineColor, getLineWidth, getLocation, getLocked, getMinimumSize, getOwner, getPopUpActions, getPreferredSize, getPrivateData, getResource, getSingle, getSize, getTipString, getTrapRect, getUseTrapRect, getVisState, getWidth, getX, getY, hasFillColor, hasLineColor, initAnnotations, intersects, isAnnotation, isCopyable, isCutable, isLowerRightResizable, isMovable, isSelected, isVisible, makeSelection, pointAlongPerimeter, postLoad, postSave, preSave, print, propertyChange, redraw, removeAnnotation, removeAnnotation, removeFromDiagram, removePropertyChangeListener, reorder, routingRect, savingAllowed, setAnnotationOwner, setAnnotationStatus, setAnnotationStrategy, setBounds, setCenter, setContext, setDashed, setDashedString, setEnclosingFig, setFillColor, setGroup, setHandleBox, setHeight, setLayer, setLineColor, setLocation, setLocation, setLocked, setMovable, setNumPoints, setOwner, setPoint, setPoint, setPoint, setPoint, setPoints, setPrivateData, setResizable, setResource, setSavingAllowed, setSingle, setSize, setSize, setVisible, setVisState, setWidth, setX, setXs, setY, setYs, stuffBounds, translateAnnotations, unsetAnnotationOwner, updateAnnotationPositions, updateVisState, 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
Parameters:
w - The new lineWidth value

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)
Description copied from class: FigPoly
Reply true iff the given point is inside this FigPoly.

Overrides:
contains in class FigPoly
See Also:
FigCircle, FigEdge