|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensourcephysics.cabrillo.tracker.TTrack
org.opensourcephysics.cabrillo.tracker.CoordAxes
public class CoordAxes
A CoordAxes displays and controls the image coordinate system of a specified tracker panel.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.opensourcephysics.cabrillo.tracker.TTrack |
|---|
TTrack.StepArray |
| Field Summary | |
|---|---|
protected boolean |
notyetShown
|
| Constructor Summary | |
|---|---|
CoordAxes()
Constructs a CoordAxes for the specified tracker panel. |
|
| Method Summary | |
|---|---|
Step |
createStep(int n,
double x,
double y)
Mimics step creation by setting the origin position. |
Step |
deleteStep(int n)
Overrides TTrack deleteStep method to prevent deletion. |
Interactive |
findInteractive(DrawingPanel panel,
int xpix,
int ypix)
Implements findInteractive method. |
int |
getDefaultAutoTrackerIndex()
Gets the default step point index. |
int |
getFootprintLength()
Gets the length of the footprints required by this track. |
static XML.ObjectLoader |
getLoader()
Returns an ObjectLoader to save and load data for this class. |
javax.swing.JMenu |
getMenu(TrackerPanel trackerPanel)
Overrides TTrack getMenu method. |
TPoint |
getOrigin()
Gets the origin. |
Step |
getStep(int n)
Overrides TTrack getStep method. |
int |
getStepLength()
Gets the length of the steps created by this track. |
java.util.ArrayList<java.awt.Component> |
getToolbarTrackComponents(TrackerPanel trackerPanel)
Overrides TTrack getToolbarTrackComponents method. |
boolean |
isLocked()
Overrides TTrack isLocked method. |
void |
propertyChange(java.beans.PropertyChangeEvent e)
Responds to property change events. |
void |
setTrailVisible(boolean visible)
Overrides TTrack setTrailVisible method to keep trails hidden. |
void |
setVisible(boolean visible)
Overrides TTrack setVisible method to change neverVisible flag. |
java.lang.String |
toString()
Overrides Object toString method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected boolean notyetShown
| Constructor Detail |
|---|
public CoordAxes()
| Method Detail |
|---|
public TPoint getOrigin()
public boolean isLocked()
isLocked in class TTracktrue if this is lockedpublic void setVisible(boolean visible)
setVisible in class TTrackvisible - true to show this trackpublic void setTrailVisible(boolean visible)
setTrailVisible in class TTrackvisible - ignored
public Step createStep(int n,
double x,
double y)
createStep in class TTrackn - the frame numberx - the x coordinate in image spacey - the y coordinate in image space
public Step deleteStep(int n)
deleteStep in class TTrackn - the frame number
public Step getStep(int n)
getStep in class TTrackn - the frame number (ignored)
public int getStepLength()
getStepLength in class TTrackpublic int getDefaultAutoTrackerIndex()
getDefaultAutoTrackerIndex in class TTrackpublic int getFootprintLength()
getFootprintLength in class TTrack
public Interactive findInteractive(DrawingPanel panel,
int xpix,
int ypix)
findInteractive in interface InteractivefindInteractive in class TTrackpanel - the drawing panelxpix - the x pixel position on the panelypix - the y pixel position on the panel
public javax.swing.JMenu getMenu(TrackerPanel trackerPanel)
getMenu in class TTracktrackerPanel - the tracker panel
public java.util.ArrayList<java.awt.Component> getToolbarTrackComponents(TrackerPanel trackerPanel)
getToolbarTrackComponents in class TTracktrackerPanel - the tracker panel
public void propertyChange(java.beans.PropertyChangeEvent e)
propertyChange in interface java.beans.PropertyChangeListenerpropertyChange in class TTracke - the property change eventpublic java.lang.String toString()
toString in class TTrackpublic static XML.ObjectLoader getLoader()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||