Drawable, Interactive, Measurable, Trackablepublic class TCircle extends TShape
| Modifier and Type | Field | Description |
|---|---|---|
protected java.awt.geom.Ellipse2D |
circle |
|
protected int |
n |
|
protected int |
radius |
attachedTo, coordsEditTrigger, coordsVisibleInMouseBox, enabled, isAdjusting, screenPt, stepEditTrigger, support, trackEditTrigger, worldPt, xyStringBuilder| Constructor | Description |
|---|---|
TCircle(int n) |
Constructs a TCircle with image coordinates (0, 0).
|
TCircle(int n,
double x,
double y) |
Constructs a TCircle with specified image coordinates.
|
| Modifier and Type | Method | Description |
|---|---|---|
Interactive |
findInteractive(DrawingPanel panel,
int xpix,
int ypix) |
Returns this if it is enabled and visible and the specified
pixel position falls within the bounds of this circle.
|
int |
getFrameNumber(VideoPanel vidPanel) |
Overrides TPoint getFrameNumber method.
|
int |
getRadius() |
Gets the radius of this circle.
|
protected java.awt.Shape |
getShape(VideoPanel vidPanel) |
Gets the circle shape to be filled in the draw method.
|
void |
setRadius(int radius) |
Sets the radius of this circle.
|
getX, getYfinalize, getClass, notify, notifyAll, wait, wait, waitclone, distance, distance, distance, distanceSq, distanceSq, distanceSq, hashCode, setLocationaddPropertyChangeListener, addPropertyChangeListener, angle, angle, attachTo, center, cos, cos, detach, equals, getScreenPosition, getWorldPosition, getXMax, getXMin, getYMax, getYMin, isAdjusting, isAttached, isCoordsEditTrigger, isEnabled, isMeasured, isStepEditTrigger, isTrackEditTrigger, removePropertyChangeListener, removePropertyChangeListener, setAdjusting, setCoordsEditTrigger, setEnabled, setLocation, setPositionOnLine, setScreenPosition, setScreenPosition, setStepEditTrigger, setTrackEditTrigger, setWorldPosition, setX, setXY, setY, showCoordinates, sin, sin, translateprotected java.awt.geom.Ellipse2D circle
protected int radius
protected int n
public TCircle(int n)
n - the video frame numberpublic TCircle(int n,
double x,
double y)
n - the video frame numberx - the x coordinatey - the y coordinatepublic void setRadius(int radius)
radius - the radius in screen pixelspublic int getRadius()
public int getFrameNumber(VideoPanel vidPanel)
getFrameNumber in class TPointvidPanel - the video panel drawing this circlepublic Interactive findInteractive(DrawingPanel panel, int xpix, int ypix)
findInteractive in interface InteractivefindInteractive in class TShapepanel - the drawing panelxpix - the x pixel position on the panelypix - the y pixel position on the panelprotected java.awt.Shape getShape(VideoPanel vidPanel)