|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensourcephysics.cabrillo.tracker.Step
org.opensourcephysics.cabrillo.tracker.OffsetOriginStep
public class OffsetOriginStep
This is a Step for a OffsetOrigin. It is used for setting the origin of an ImageCoordSystem.
| Nested Class Summary | |
|---|---|
class |
OffsetOriginStep.Position
A class to represent the position of the offset origin. |
| Field Summary | |
|---|---|
protected double |
worldX
|
protected double |
worldY
|
| Fields inherited from class org.opensourcephysics.cabrillo.tracker.Step |
|---|
dataVisible, defaultIndex, footprint, format, frc, hitRect, marks, n, points, screenPoints, selectionShape, track, transform, valid |
| Constructor Summary | |
|---|---|
OffsetOriginStep(OffsetOrigin track,
int n,
double x,
double y)
Constructs a OffsetOriginStep with specified image coordinates. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Clones this Step. |
protected Mark |
getMark(TrackerPanel trackerPanel)
Overrides Step getMark method. |
OffsetOriginStep.Position |
getPosition()
Gets the position. |
void |
setWorldXY(double x,
double y)
Sets the world coordinates. |
java.lang.String |
toString()
Returns a String describing this step. |
| Methods inherited from class org.opensourcephysics.cabrillo.tracker.Step |
|---|
draw, erase, erase, findInteractive, getBounds, getDefaultPoint, getFrameNumber, getLength, getPointIndex, getPoints, getTrack, remark, remark, repaint, repaint, setDefaultPointIndex, setFootprint, setHitRectCenter |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected double worldX
protected double worldY
| Constructor Detail |
|---|
public OffsetOriginStep(OffsetOrigin track,
int n,
double x,
double y)
track - the offset originn - the frame numberx - the image x coordinatey - the image y coordinate| Method Detail |
|---|
public OffsetOriginStep.Position getPosition()
public void setWorldXY(double x,
double y)
x - the world x coordinatey - the world y coordinateprotected Mark getMark(TrackerPanel trackerPanel)
getMark in class SteptrackerPanel - the tracker panel
public java.lang.Object clone()
clone in class Steppublic java.lang.String toString()
toString in class Step
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||