Package org.opensourcephysics.media.core
Class TrackableCircle
java.lang.Object
org.opensourcephysics.display.Circle
org.opensourcephysics.media.core.TrackableCircle
This is a circle that implements the Trackable interface and
is associated with a single video frame. The draw method
illustrates the process of transforming imagespace to
worldspace coordinates.
- Version:
- 1.0
- Author:
- Douglas Brown
-
Field Summary
FieldsFields inherited from interface org.opensourcephysics.media.core.Trackable
PROPERTY_ADJUSTING -
Constructor Summary
ConstructorsConstructorDescriptionTrackableCircle(int n, double imageX, double imageY) Constructs a TrackableCircle. -
Method Summary
Modifier and TypeMethodDescriptionvoiddraw(DrawingPanel panel, Graphics g) Overrides the Circle draw method.intGets the frame number.Methods inherited from class org.opensourcephysics.display.Circle
getLoader, getX, getY, setX, setXY, setY, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.opensourcephysics.display.Drawable
isInteractive
-
Field Details
-
n
protected int n
-
-
Constructor Details
-
TrackableCircle
public TrackableCircle(int n, double imageX, double imageY) Constructs a TrackableCircle.- Parameters:
n- the video frame numberimageX- the x position in imagespaceimageY- the y position in imagespace
-
-
Method Details
-
getFrameNumber
public int getFrameNumber()Gets the frame number.- Returns:
- the frame number
-
draw
Overrides the Circle draw method.
-