|
|||||||||
| 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.OffsetOrigin
public class OffsetOrigin
An OffsetOrigin controls the origin of an image coordinate system.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.opensourcephysics.cabrillo.tracker.TTrack |
|---|
TTrack.StepArray |
| Field Summary | |
|---|---|
protected boolean |
fixedCoordinates
|
protected javax.swing.JCheckBoxMenuItem |
fixedCoordinatesItem
|
protected javax.swing.JLabel |
unmarkedLabel
|
| Constructor Summary | |
|---|---|
OffsetOrigin()
Constructs an OffsetOrigin. |
|
| Method Summary | |
|---|---|
Step |
createStep(int n,
double x,
double y)
Creates a new offset origin step with specified image coordinates. |
Interactive |
findInteractive(DrawingPanel panel,
int xpix,
int ypix)
Overrides TTrack 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. |
Step |
getStep(int n)
Overrides TTrack getStep method. |
int |
getStepLength()
Gets the length of the steps created by this track. |
protected java.lang.String |
getTargetDescription(int pointIndex)
Returns a description of the point at a given index. |
java.util.ArrayList<java.awt.Component> |
getToolbarTrackComponents(TrackerPanel trackerPanel)
Overrides TTrack method. |
boolean |
isFixedCoordinates()
Determines if the world coordinates are fixed. |
boolean |
isLocked()
Overrides TTrack isLocked method. |
boolean |
isStepComplete(int n)
Returns true if the step at the specified frame number is complete. |
void |
propertyChange(java.beans.PropertyChangeEvent e)
Responds to property change events. |
protected void |
refreshStep(OffsetOriginStep step)
Refreshes a step by setting it equal to the previous keyframe step. |
void |
setFixedCoordinates(boolean fixed)
Sets the fixed coordinates property. |
void |
setLocked(boolean locked)
Overrides TTrack method. |
void |
setTrailVisible(boolean visible)
Overrides TTrack setTrailVisible method. |
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 fixedCoordinates
protected javax.swing.JCheckBoxMenuItem fixedCoordinatesItem
protected javax.swing.JLabel unmarkedLabel
| Constructor Detail |
|---|
public OffsetOrigin()
| Method Detail |
|---|
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 boolean isStepComplete(int n)
isStepComplete in class TTrackn - the frame number
true if the step is completepublic boolean isFixedCoordinates()
true if fixedpublic void setFixedCoordinates(boolean fixed)
fixed - true to fix the coordinatespublic Step getStep(int n)
getStep in class TTrackn - the frame number
public boolean isLocked()
isLocked in class TTracktrue if this is lockedpublic void setTrailVisible(boolean visible)
setTrailVisible in class TTrackvisible - ignoredpublic 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 void setLocked(boolean locked)
setLocked in class TTracklocked - true to lock thispublic java.lang.String toString()
toString in class TTrackprotected java.lang.String getTargetDescription(int pointIndex)
getTargetDescription in class TTrackpointIndex - the points[] index
protected void refreshStep(OffsetOriginStep step)
step - the step to refreshpublic static XML.ObjectLoader getLoader()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||