org.opensourcephysics.cabrillo.tracker
Class AutoTracker.Handle

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.AutoTracker.Handle
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, Drawable, Interactive, Measurable, Trackable
Enclosing class:
AutoTracker

protected class AutoTracker.Handle
extends TPoint

An edge point used for translation.

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
protected AutoTracker.Handle()
           
 
Method Summary
 void setScreenLocation(int x, int y, VideoPanel vidPanel)
          Sets the location of this point to the specified screen position.
 void setXY(double x, double y)
          Overrides TPoint setXY method.
 
Methods inherited from class org.opensourcephysics.media.core.TPoint
addPropertyChangeListener, addPropertyChangeListener, angle, angle, center, cos, cos, draw, equals, findInteractive, getBounds, getFrameNumber, 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, showCoordinates, 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

AutoTracker.Handle

protected AutoTracker.Handle()
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

setScreenLocation

public void setScreenLocation(int x,
                              int y,
                              VideoPanel vidPanel)
Sets the location of this point to the specified screen position.

Parameters:
x - the x screen position
y - the y screen position
vidPanel - the trackerPanel doing the drawing