Class PositionStep.Position
java.lang.Object
java.awt.geom.Point2D
java.awt.geom.Point2D.Double
org.opensourcephysics.media.core.TPoint
org.opensourcephysics.cabrillo.tracker.PositionStep.Position
- All Implemented Interfaces:
Serializable
,Cloneable
,Drawable
,Interactive
,Measurable
,Trackable
- Enclosing class:
- PositionStep
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.awt.geom.Point2D
Point2D.Double, Point2D.Float
-
Field Summary
Fields inherited from class org.opensourcephysics.media.core.TPoint
attachedTo, coordsEditTrigger, coordsVisibleInMouseBox, enabled, isAdjusting, prevX, prevY, screenPt, stepEditTrigger, support, toScreen, trackEditTrigger, worldPt, xyStringBuilder
Fields inherited from class java.awt.geom.Point2D.Double
x, y
Fields inherited from interface org.opensourcephysics.media.core.Trackable
PROPERTY_ADJUSTING
-
Constructor Summary
ConstructorsConstructorDescriptionPosition
(double x, double y) Constructs a Position with specified image coordinates. -
Method Summary
Modifier and TypeMethodDescriptionint
getFrameNumber
(VideoPanel vidPanel) Overrides TPoint getFrameNumber method.void
setAdjusting
(boolean adjusting, MouseEvent e) Sets the adjusting flag.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, attachTo, center, cos, cos, detach, draw, equals, findInteractive, getBounds, getScreenPosition, getWorldPosition, getXMax, getXMin, getYMax, getYMin, isAdjusting, isAttached, isCoordsEditTrigger, isEnabled, isMeasured, isStepEditTrigger, isTrackEditTrigger, removePropertyChangeListener, removePropertyChangeListener, setCoordsEditTrigger, setEnabled, setLocation, setPositionOnLine, setScreenPosition, setScreenPosition, setStepEditTrigger, setTrackEditTrigger, setWorldPosition, 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, isInteractive
-
Constructor Details
-
Position
public Position(double x, double y) Constructs a Position with specified image coordinates.- Parameters:
x
- the x coordinatey
- the y coordinate
-
-
Method Details
-
setXY
public void setXY(double x, double y) Overrides TPoint setXY method.- Specified by:
setXY
in interfaceInteractive
- Overrides:
setXY
in classTPoint
- Parameters:
x
- the x coordinatey
- the y coordinate
-
showCoordinates
Overrides TPoint showCoordinates method.- Overrides:
showCoordinates
in classTPoint
- Parameters:
vidPanel
- the video panel
-
getFrameNumber
Overrides TPoint getFrameNumber method.- Overrides:
getFrameNumber
in classTPoint
- Parameters:
vidPanel
- the video panel being drawn- Returns:
- the frame number
-
setAdjusting
Sets the adjusting flag.- Overrides:
setAdjusting
in classTPoint
- Parameters:
adjusting
- true if being draggede
- a MouseEvent, may be null
-