Class FigRRect

  extended by org.tigris.gef.presentation.Fig
      extended by org.tigris.gef.presentation.FigRect
          extended by org.tigris.gef.presentation.FigRRect
All Implemented Interfaces:
java.beans.PropertyChangeListener,, java.lang.Cloneable, java.util.EventListener, PopupGenerator

public class FigRRect
extends FigRect

Primitive Fig to paint rounded rectangles on a LayerDiagram.

See Also:
Serialized Form

Field Summary
protected  int _radius
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
FigRRect(int x, int y, int w, int h)
          Construct a new FigRRect w/ the given position and size
FigRRect(int x, int y, int w, int h, java.awt.Color lineColor, java.awt.Color fillColor)
          Construct a new FigRRect w/ the given position, size, line color, and fill color
Method Summary
 int getCornerRadius()
          get and set the "roundness" of the corners.
 void paint(java.awt.Graphics g)
          Paint this FigRRect
 void setCornerRadius(int r)
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

Field Detail


protected int _radius
Constructor Detail


public FigRRect(int x,
                int y,
                int w,
                int h)
Construct a new FigRRect w/ the given position and size


public FigRRect(int x,
                int y,
                int w,
                int h,
                java.awt.Color lineColor,
                java.awt.Color fillColor)
Construct a new FigRRect w/ the given position, size, line color, and fill color

Method Detail


public int getCornerRadius()
get and set the "roundness" of the corners. USED by PGML.tee


public void setCornerRadius(int r)


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

paint in class FigRect