org.opensourcephysics.cabrillo.tracker
Class PositionStep.Position

java.lang.Object
  extended by java.awt.geom.Point2D
      extended by java.awt.geom.Point2D.Double
          extended by org.opensourcephysics.media.core.TPoint
              extended by org.opensourcephysics.cabrillo.tracker.PositionStep.Position
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, Drawable, Interactive, Measurable, Trackable
Enclosing class:
PositionStep

protected class PositionStep.Position
extends TPoint

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.awt.geom.Point2D
java.awt.geom.Point2D.Double, java.awt.geom.Point2D.Float
 
Field Summary
 
Fields inherited from class org.opensourcephysics.media.core.TPoint
coordinateStrBuilder, coordsEditTrigger, coordsVisibleInMouseBox, enabled, isAdjusting, screenPt, stepEditTrigger, support, trackEditTrigger, worldPt
 
Fields inherited from class java.awt.geom.Point2D.Double
x, y
 
Constructor Summary
PositionStep.Position(double x, double y)
          Constructs a Position with specified image coordinates.
 
Method Summary
 int getFrameNumber(VideoPanel vidPanel)
          Overrides TPoint getFrameNumber method.
 void setXY(double x, double y)
          Overrides TPoint setXY method.
 void showCoordinates(VideoPanel vidPanel)
          Overrides TPoint showCoordinates method.
 
Methods inherited from class org.opensourcephysics.media.core.TPoint
addPropertyChangeListener, addPropertyChangeListener, angle, angle, center, cos, cos, draw, equals, findInteractive, getBounds, getScreenPosition, getWorldPosition, getXMax, getXMin, getYMax, getYMin, isAdjusting, isAutotrackable, isCoordsEditTrigger, isEnabled, isMeasured, isStepEditTrigger, isTrackEditTrigger, removePropertyChangeListener, removePropertyChangeListener, setAdjusting, setCoordsEditTrigger, setEnabled, setLocation, setPositionOnLine, setScreenPosition, setScreenPosition, setStepEditTrigger, setTrackEditTrigger, setX, setY, sin, sin, toString, translate
 
Methods inherited from class java.awt.geom.Point2D.Double
getX, getY
 
Methods inherited from class java.awt.geom.Point2D
clone, distance, distance, distance, distanceSq, distanceSq, distanceSq, hashCode, setLocation
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.opensourcephysics.display.Interactive
getX, getY
 

Constructor Detail

PositionStep.Position

public PositionStep.Position(double x,
                             double y)
Constructs a Position with specified image coordinates.

Parameters:
x - the x coordinate
y - the y coordinate
Method Detail

setXY

public void setXY(double x,
                  double y)
Overrides TPoint setXY method.

Specified by:
setXY in interface Interactive
Overrides:
setXY in class TPoint
Parameters:
x - the x coordinate
y - the y coordinate

showCoordinates

public void showCoordinates(VideoPanel vidPanel)
Overrides TPoint showCoordinates method.

Overrides:
showCoordinates in class TPoint
Parameters:
vidPanel - the video panel

getFrameNumber

public int getFrameNumber(VideoPanel vidPanel)
Overrides TPoint getFrameNumber method.

Overrides:
getFrameNumber in class TPoint
Parameters:
vidPanel - the video panel being drawn
Returns:
the frame number