uci.gef
Class FigCircle

java.lang.Object
  |
  +--uci.gef.Fig
        |
        +--uci.gef.FigCircle

public class FigCircle
extends Fig

Primitive Fig for displaying circles and ovals.

See Also:
Serialized Form

Field Summary
static double CIRCLE_ADJUST_RADIUS
          Used as a percentage tolerance for making it easier for the user to select a hollow circle with the mouse.
 
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
FigCircle(int x, int y, int w, int h)
          Construct a new FigCircle with the given position, size, and attributes.
FigCircle(int x, int y, int w, int h, Color lColor, Color fColor)
          Construct a new FigCircle with the given position, size, line color, and fill color
 
Method Summary
 boolean contains(int x, int y)
          Reply true if the given coordinates are inside the circle.
 void paint(Graphics g)
          Draw this FigCircle.
 
Methods inherited from class uci.gef.Fig
addPoint, addPropertyChangeListener, align, calcBounds, center, classNameAndBounds, cleanUp, clone, connectionPoint, 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

CIRCLE_ADJUST_RADIUS

public static final double CIRCLE_ADJUST_RADIUS
Used as a percentage tolerance for making it easier for the user to select a hollow circle with the mouse. Needs-More-Work: This is bad design that needs to be changed. Should use just GRIP_FACTOR.
Constructor Detail

FigCircle

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

FigCircle

public FigCircle(int x,
                 int y,
                 int w,
                 int h,
                 Color lColor,
                 Color fColor)
Construct a new FigCircle with the given position, size, line color, and fill color
Method Detail

paint

public void paint(Graphics g)
Draw this FigCircle.
Overrides:
paint in class Fig

contains

public boolean contains(int x,
                        int y)
Reply true if the given coordinates are inside the circle.
Overrides:
contains in class Fig