org.tigris.gef.presentation
Class FigRect

java.lang.Object
  extended by org.tigris.gef.presentation.Fig
      extended by org.tigris.gef.presentation.FigRect
All Implemented Interfaces:
java.beans.PropertyChangeListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, PopupGenerator
Direct Known Subclasses:
FigRRect

public class FigRect
extends Fig
implements java.io.Serializable

Primitive Fig to paint rectangles on a LayerDiagram.

See Also:
Serialized Form

Field Summary
 
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
FigRect(int x, int y, int w, int h)
          Construct a new resizable FigRect with the given position and size.
FigRect(int x, int y, int w, int h, boolean resizable)
          Construct a new FigRect w/ the given position and size.
FigRect(int x, int y, int w, int h, boolean resizable, java.awt.Color lColor, java.awt.Color fColor)
          Construct a new FigRect w/ the given position, size, line color, and fill color.
FigRect(int x, int y, int w, int h, java.awt.Color lColor, java.awt.Color fColor)
          Construct a new resizable FigRect with the given position, size, line color, and fill color.
 
Method Summary
 void paint(java.awt.Graphics g)
          Paint this FigRect
 
Methods inherited from class org.tigris.gef.presentation.Fig
addAnnotation, addPoint, addPropertyChangeListener, align, calcBounds, center, classNameAndBounds, cleanUp, clone, connectionPoint, contains, contains, contains, countCornersContained, createDrag, damage, deleteFromModel, drawDashedLine, drawDashedPerimeter, endTrans, firePropChange, firePropChange, firePropChange, getAnnotationOwner, getAnnotationStrategy, getBounds, getBounds, getClosestPoint, getContext, getDashed, getDashed01, getDashedString, getEnclosedFigs, getEnclosingFig, getFillColor, getFilled, getFilled01, getFirstPoint, getGravityPoints, getGroup, getHalfHeight, getHalfWidth, getHandleBox, getHeight, getId, getLastPoint, getLayer, getLineColor, getLineWidth, getLocation, getLocked, getMinimumSize, getNumPoints, getOwner, getPerimeterLength, getPoint, getPoints, getPopUpActions, getPreferredSize, getPrivateData, getResource, getSingle, getSize, getTipString, getTrapRect, getUseTrapRect, getVisState, getWidth, getX, getXs, getY, getYs, hasFillColor, hasLineColor, hit, initAnnotations, insertPoint, intersects, intersectsPerimeter, isAnnotation, isCopyable, isCutable, isLowerRightResizable, isMovable, isReshapable, isResizable, isRotatable, isSelected, isVisible, makeSelection, OK, pointAlongPerimeter, postLoad, postSave, preSave, print, propertyChange, redraw, removeAnnotation, removeAnnotation, removeFromDiagram, removePoint, removePropertyChangeListener, reorder, routingRect, savingAllowed, setAnnotationOwner, setAnnotationStatus, setAnnotationStrategy, setBounds, setBounds, setCenter, setContext, setDashed, setDashedString, setEnclosingFig, setFillColor, setFilled, setGroup, setHandleBox, setHeight, setLayer, setLineColor, setLineWidth, 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, stuffPointAlongPerimeter, translate, translateAnnotations, unsetAnnotationOwner, updateAnnotationPositions, updateVisState, within
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FigRect

public FigRect(int x,
               int y,
               int w,
               int h)
Construct a new resizable FigRect with the given position and size.


FigRect

public FigRect(int x,
               int y,
               int w,
               int h,
               java.awt.Color lColor,
               java.awt.Color fColor)
Construct a new resizable FigRect with the given position, size, line color, and fill color.


FigRect

public FigRect(int x,
               int y,
               int w,
               int h,
               boolean resizable)
Construct a new FigRect w/ the given position and size.


FigRect

public FigRect(int x,
               int y,
               int w,
               int h,
               boolean resizable,
               java.awt.Color lColor,
               java.awt.Color fColor)
Construct a new FigRect w/ the given position, size, line color, and fill color.

Method Detail

paint

public void paint(java.awt.Graphics g)
Paint this FigRect

Overrides:
paint in class Fig