com.bonevich.erj.diagram
Class FigRectiline

java.lang.Object
  |
  +--org.tigris.gef.presentation.Fig
        |
        +--org.tigris.gef.presentation.FigPoly
              |
              +--com.bonevich.erj.diagram.FigRectiline
All Implemented Interfaces:
java.lang.Cloneable, java.util.EventListener, org.tigris.gef.ui.PopupGenerator, java.beans.PropertyChangeListener, java.io.Serializable

public class FigRectiline
extends org.tigris.gef.presentation.FigPoly

Overrides FigPoly to provide a simpler, more robust rectilinear polyline.

See Also:
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, _displayed, _fillColor, _filled, _group, _h, _layer, _lineColor, _lineWidth, _locked, _resource, _shown, _w, _x, _y, an, annotationOwner, annotationStatus, BORDER, DASH_ARRAYS, DASHED_CHOICES, MIN_SIZE
 
Constructor Summary
FigRectiline()
          Construct a new FigRectiline.
FigRectiline(java.awt.Color lineColor)
          Construct a new FigRectiline with the given line color.
FigRectiline(java.awt.Color lineColor, java.awt.Color fillColor)
          Construct a new FigRectiline with the given line color and fill color.
FigRectiline(int x, int y)
          Construct a new FigRectiline with the given point.
 
Method Summary
 void cleanUp()
          No-op override of superclass cleanUp.
 boolean getRectilinear()
          Always returns true.
 void moveVertex(org.tigris.gef.presentation.Handle h, int x, int y, boolean ov)
          Move the point indicated by the given Handle object to the given location.
 void setRectilinear(boolean r)
          Set the rectilinear flag.
 
Methods inherited from class org.tigris.gef.presentation.FigPoly
addPoint, addPoint, appendTwoPoints, calcBounds, canMoveVertex, clone, contains, countCornersContained, drawDashedPerimeter, findHandle, getClosestPoint, getFirstPoint, getFixedHandles, getGravityPoints, getLastPoint, getNumPoints, getPerimeterLength, getPoints, getPointsVector, getPointsVectorNotFirst, getPolygon, getXs, getYs, growIfNeeded, hit, insertPoint, isReshapable, isResizable, isRotatable, isSelfLoop, 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, delete, dispose, drawDashedLine, endTrans, firePropChange, firePropChange, firePropChange, getAnnotationOwner, getAnnotationStrategy, getBounds, getContext, getDashed, getDashed01, getDashedString, getEnclosedFigs, getEnclosingFig, getFillColor, getFilled, getFilled01, getGroup, getHalfHeight, getHalfWidth, getHandleBox, getHeight, getId, getLayer, getLineColor, getLineWidth, getLocation, getLocked, getMinimumSize, getOwner, getPoints, getPopUpActions, getPreferedSize, getPrivateData, getResource, getSize, getTipString, getTrapRect, getUseTrapRect, getVisState, getWidth, getX, getY, initAnnotations, intersects, isAnnotation, isDisplayed, isLowerRightResizable, isMovable, makeSelection, pointAlongPerimeter, postLoad, postSave, preSave, print, propertyChange, removeAnnotation, removePropertyChangeListener, reorder, routingRect, savingAllowed, setAnnotationOwner, setAnnotationStatus, setAnnotationStrategy, setBounds, setCenter, setContext, setDashed, setDashedString, setDisplayed, setEnclosingFig, setFillColor, setFilled, setGroup, setHandleBox, setHeight, setLayer, setLineColor, setLineWidth, setLocation, setLocation, setLocked, setNumPoints, setOwner, setPoints, setPoints, setPoints, setPoints, setPrivateData, setResource, setSavingAllowed, setSize, setSize, setVisState, setWidth, setX, setXs, setY, setYs, startTrans, stuffBounds, unsetAnnotationOwner, updateAnnotationPositions, updateVisState, within
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FigRectiline

public FigRectiline()
Construct a new FigRectiline.


FigRectiline

public FigRectiline(java.awt.Color lineColor)
Construct a new FigRectiline with the given line color.


FigRectiline

public FigRectiline(java.awt.Color lineColor,
                    java.awt.Color fillColor)
Construct a new FigRectiline with the given line color and fill color.


FigRectiline

public FigRectiline(int x,
                    int y)
Construct a new FigRectiline with the given point.

Method Detail

getRectilinear

public boolean getRectilinear()
Always returns true.

Overrides:
getRectilinear in class org.tigris.gef.presentation.FigPoly

setRectilinear

public void setRectilinear(boolean r)
Set the rectilinear flag. This is a no-op since we are rectilinear by definition.

Overrides:
setRectilinear in class org.tigris.gef.presentation.FigPoly

moveVertex

public void moveVertex(org.tigris.gef.presentation.Handle h,
                       int x,
                       int y,
                       boolean ov)
Move the point indicated by the given Handle object to the given location. Fixed handles cannot be moved, unless ov is set to true to override the fixed handle constaint. Fires PropertyChange with "bounds".

Overrides:
moveVertex in class org.tigris.gef.presentation.FigPoly

cleanUp

public void cleanUp()
No-op override of superclass cleanUp.

Overrides:
cleanUp in class org.tigris.gef.presentation.FigPoly


Copyright © 2001-2003 bonevich.com. All Rights Reserved.