Class MultiPositionStep
java.lang.Object
org.opensourcephysics.cabrillo.tracker.Step
org.opensourcephysics.cabrillo.tracker.PositionStep
org.opensourcephysics.cabrillo.tracker.MultiPositionStep
- All Implemented Interfaces:
Cloneable
This is a Step that represents multiple positions. It is used by ParticleDataTracks.
- Author:
- Douglas Brown
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opensourcephysics.cabrillo.tracker.PositionStep
PositionStep.Position
-
Field Summary
Fields inherited from class org.opensourcephysics.cabrillo.tracker.PositionStep
innerCircleFootprint, labelVisible, p, panelLayoutBounds, panelTextLayouts, rolloverVisible
Fields inherited from class org.opensourcephysics.cabrillo.tracker.Step
dataVisible, defaultIndex, footprint, format, hitRect, n, panelMarks, points, screenPoints, selectionShape, selectionStroke, trackID, transform, type, TYPE_ACCELERATION, TYPE_UNKNOWN, TYPE_VELOCITY, valid
-
Constructor Summary
ConstructorsConstructorDescriptionMultiPositionStep
(ParticleDataTrack track, int n, double x, double y) Constructs a MultiPositionStep with specified image coordinates. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Clones this Step.static XML.ObjectLoader
Returns an ObjectLoader to save and load data for this class.protected Mark
getMark
(TrackerPanel trackerPanel) Overrides Step getMark method.toString()
Returns a String describing this.Methods inherited from class org.opensourcephysics.cabrillo.tracker.PositionStep
draw, findInteractive, getLayoutPosition, getPosition, isLabelVisible, isRolloverVisible, setLabelVisible, setRolloverVisible
Methods inherited from class org.opensourcephysics.cabrillo.tracker.Step
dispose, erase, erase, getDefaultPoint, getFrameNumber, getLength, getPointIndex, getPoints, getTrack, remark, remark, repaint, repaint, setDefaultPointIndex, setFootprint, setHitRectCenter
-
Constructor Details
-
MultiPositionStep
Constructs a MultiPositionStep with specified image coordinates.- Parameters:
track
- the ParticleDataTrackn
- the frame numberx
- the x coordinatey
- the y coordinate
-
-
Method Details
-
getMark
Overrides Step getMark method.- Overrides:
getMark
in classPositionStep
- Parameters:
trackerPanel
- the tracker panel- Returns:
- the mark
-
clone
Clones this Step.- Overrides:
clone
in classPositionStep
- Returns:
- a cloned step
-
toString
Returns a String describing this.- Overrides:
toString
in classPositionStep
- Returns:
- a descriptive string
-
getLoader
Returns an ObjectLoader to save and load data for this class.- Returns:
- the object loader
-