uci.gef
Class FigRRect

java.lang.Object
  |
  +--uci.gef.Fig
        |
        +--uci.gef.FigRect
              |
              +--uci.gef.FigRRect

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 uci.gef.Fig
_dashes, _fillColor, _filled, _group, _h, _layer, _lineColor, _lineWidth, _locked, _w, _x, _y, BORDER, DASH_ARRAYS, DASHED_CHOICES, 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, Color lineColor, 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(Graphics g)
          Paint this FigRRect
 void setCornerRadius(int r)
           
 
Methods inherited from class uci.gef.Fig
addPoint, addPropertyChangeListener, align, calcBounds, center, classNameAndBounds, cleanUp, clone, connectionPoint, contains, contains, contains, countCornersContained, createDrag, damage, delete, dispose, drawDashedLine, drawDashedPerimeter, endTrans, firePropChange, firePropChange, firePropChange, getBounds, getClosestPoint, getDashed, getDashed01, getDashedString, getEnclosedFigs, getEnclosingFig, getFillColor, getFilled, getFilled01, getFirstPoint, getGravityPoints, getGroup, getHalfHeight, getHalfWidth, getHeight, getId, getLastPoint, getLayer, getLineColor, getLineWidth, getLocation, getLocked, getMinimumSize, getNumPoints, getOwner, getPerimeterLength, getPoints, getPoints, getPopUpActions, getPreferedSize, getSize, getTipString, getTrapRect, getUseTrapRect, getWidth, getX, getXs, getY, getYs, hit, insertPoint, intersects, isLowerRightResizable, isMovable, isReshapable, isResizable, isRotatable, makeSelection, OK, pointAlongPerimeter, postLoad, postSave, preSave, print, propertyChange, removePoint, removePropertyChangeListener, reorder, routingRect, setBounds, setBounds, setDashed, setDashedString, setEnclosingFig, setFillColor, setFilled, setGroup, setHeight, setLayer, setLineColor, setLineWidth, setLocation, setLocation, setLocked, setNumPoints, setOwner, setPoints, setPoints, setPoints, setPoints, setPoints, setSize, setSize, setWidth, setX, setXs, setY, setYs, startTrans, stuffBounds, stuffPointAlongPerimeter, translate, within
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_radius

protected int _radius
Constructor Detail

FigRRect

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

FigRRect

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

getCornerRadius

public int getCornerRadius()
get and set the "roundness" of the corners.

setCornerRadius

public void setCornerRadius(int r)

paint

public void paint(Graphics g)
Paint this FigRRect
Overrides:
paint in class FigRect