|
|||||||||
| 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.CoordAxesStep
public class CoordAxesStep
This is a Step for a CoordAxes. It is used for displaying the axes and for setting the origin, angle and/or scale of an ImageCoordSystem.
| Field Summary |
|---|
| 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 | |
|---|---|
CoordAxesStep(CoordAxes track,
int n)
Constructs an AxesStep. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Clones this Step. |
void |
draw(DrawingPanel panel,
java.awt.Graphics _g)
Overrides Step draw method. |
Interactive |
findInteractive(DrawingPanel panel,
int xpix,
int ypix)
Overrides Step findInteractive method. |
java.awt.Rectangle |
getBounds(TrackerPanel trackerPanel)
Overrides Step getBounds method. |
TPoint |
getHandle()
Gets the handle. |
static int |
getLength()
Gets the step length. |
protected Mark |
getMark(TrackerPanel trackerPanel)
Overrides Step getMark method. |
TPoint |
getOrigin()
Gets the origin. |
boolean |
isHandleEnabled()
Gets whether the handle is enabled. |
boolean |
isOriginEnabled()
Gets whether the origin is enabled. |
void |
setHandleEnabled(boolean enabled)
Enables and disables the interactivity of the handle. |
void |
setOriginEnabled(boolean enabled)
/** Enables and disables the interactivity of the origin. |
java.lang.String |
toString()
Returns a String describing this. |
| Methods inherited from class org.opensourcephysics.cabrillo.tracker.Step |
|---|
erase, erase, getDefaultAutotrackIndex, getDefaultPoint, getFrameNumber, 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 |
| Constructor Detail |
|---|
public CoordAxesStep(CoordAxes track,
int n)
track - the trackn - the frame number| Method Detail |
|---|
public TPoint getOrigin()
public TPoint getHandle()
public void setOriginEnabled(boolean enabled)
enabled - true to enable the originpublic boolean isOriginEnabled()
true if the origin is enabledpublic void setHandleEnabled(boolean enabled)
enabled - true to enable the handlepublic boolean isHandleEnabled()
true if the handle is enabled
public Interactive findInteractive(DrawingPanel panel,
int xpix,
int ypix)
findInteractive in class Steppanel - the drawing panelxpix - the x pixel positionypix - the y pixel position
public void draw(DrawingPanel panel,
java.awt.Graphics _g)
draw in class Steppanel - the drawing panel requesting the drawing_g - the graphics context on which to drawprotected Mark getMark(TrackerPanel trackerPanel)
getMark in class SteptrackerPanel - the tracker panel
public java.awt.Rectangle getBounds(TrackerPanel trackerPanel)
getBounds in class SteptrackerPanel - the tracker panel drawing the step
public java.lang.Object clone()
clone in class Steppublic java.lang.String toString()
toString in class Steppublic static int getLength()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||