|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensourcephysics.cabrillo.tracker.TTrack
public abstract class TTrack
A TTrack draws a series of visible Steps on a TrackerPanel. This is an abstract class that cannot be instantiated directly.
| Nested Class Summary | |
|---|---|
protected class |
TTrack.StepArray
|
| Field Summary | |
|---|---|
protected static java.lang.String |
alphabet
|
protected DecimalField |
angleField
|
protected javax.swing.JLabel |
angleLabel
|
protected java.awt.Component |
angleSeparator
|
protected TTrack[] |
attachments
|
protected boolean |
autoAdvance
|
protected javax.swing.JCheckBoxMenuItem |
autoAdvanceItem
|
protected boolean |
autoTrackerMarking
|
protected java.awt.event.ActionListener |
circleFootprintListener
|
protected javax.swing.JMenuItem |
clearStepsItem
|
protected static javax.swing.JButton |
closeButton
|
protected javax.swing.JMenuItem |
colorItem
|
protected java.lang.Object[][] |
constantsLoadedFromXML
|
protected DatasetManager |
data
|
protected javax.swing.JMenuItem |
dataBuilderItem
|
protected java.lang.String[] |
dataDescriptions
|
protected java.util.ArrayList<java.lang.Integer> |
dataFrames
|
protected XMLProperty |
dataProp
|
protected boolean |
dataValid
|
protected java.awt.Color[] |
defaultColors
|
protected Footprint |
defaultFootprint
|
protected javax.swing.JMenuItem |
deleteStepItem
|
protected javax.swing.JMenuItem |
deleteTrackItem
|
protected java.lang.String |
description
|
protected javax.swing.JMenuItem |
descriptionItem
|
protected boolean |
enabled
|
protected javax.swing.border.Border |
fieldBorder
|
protected Footprint |
footprint
|
protected java.awt.event.ActionListener |
footprintListener
|
protected javax.swing.JMenu |
footprintMenu
|
protected Footprint[] |
footprints
|
protected static java.awt.font.FontRenderContext |
frc
|
protected java.lang.String |
hint
|
protected boolean |
isMarking
|
protected java.util.TreeSet<java.lang.Integer> |
keyFrames
|
protected java.awt.Font |
labelFont
|
protected boolean |
locked
|
protected javax.swing.JCheckBoxMenuItem |
lockedItem
|
protected NumberField |
magField
|
protected javax.swing.JLabel |
magLabel
|
protected java.awt.Component |
magSeparator
|
protected boolean |
markByDefault
|
protected javax.swing.JCheckBoxMenuItem |
markByDefaultItem
|
protected javax.swing.JMenu |
menu
|
protected java.lang.String |
name
|
protected javax.swing.Action |
nameAction
|
protected javax.swing.JDialog |
nameDialog
|
protected javax.swing.JTextField |
nameField
|
protected javax.swing.JMenuItem |
nameItem
|
protected java.util.Collection<TrackerPanel> |
panels
|
protected java.lang.String |
partName
|
protected java.awt.geom.Point2D |
point
|
protected int[] |
preferredColumnOrder
|
protected java.util.HashMap<java.lang.String,java.lang.Object> |
properties
|
protected boolean |
refreshDataLater
|
protected static javax.swing.JCheckBox |
skippedStepWarningCheckbox
|
protected static javax.swing.JDialog |
skippedStepWarningDialog
|
protected static boolean |
skippedStepWarningOn
|
protected static javax.swing.JTextPane |
skippedStepWarningTextpane
|
protected javax.swing.JLabel |
stepLabel
|
protected TTrack.StepArray |
steps
|
protected java.awt.Component |
stepSeparator
|
protected int |
stepSizeWhenFirstMarked
|
protected javax.swing.JLabel |
stepValueLabel
|
protected java.beans.PropertyChangeSupport |
support
|
protected int |
targetIndex
|
protected NumberField |
tField
|
protected javax.swing.JLabel |
tLabel
|
protected java.util.ArrayList<java.awt.Component> |
toolbarPointComponents
|
protected java.util.ArrayList<java.awt.Component> |
toolbarTrackComponents
|
protected TrackerPanel |
trackerPanel
|
protected int |
trailLength
|
protected boolean |
trailVisible
|
protected javax.swing.JCheckBoxMenuItem |
trailVisibleItem
|
protected java.awt.Component |
tSeparator
|
protected javax.swing.JLabel |
tValueLabel
|
protected boolean |
viewable
|
protected boolean |
visible
|
protected javax.swing.JCheckBoxMenuItem |
visibleItem
|
protected java.util.HashMap<TrackerPanel,double[]> |
worldBounds
|
protected NumberField |
xField
|
protected javax.swing.JLabel |
xLabel
|
protected java.awt.Component |
xSeparator
|
protected javax.swing.JSpinner |
xSpinner
|
protected NumberField |
yField
|
protected javax.swing.JLabel |
yLabel
|
protected java.awt.Component |
ySeparator
|
protected javax.swing.JSpinner |
ySpinner
|
| Constructor Summary | |
|---|---|
protected |
TTrack()
Constructs a TTrack. |
| Method Summary | |
|---|---|
void |
addFootprint(Footprint footprint)
Adds a new footprint to the current choices. |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a PropertyChangeListener. |
void |
addPropertyChangeListener(java.lang.String property,
java.beans.PropertyChangeListener listener)
Adds a PropertyChangeListener for a specified property. |
TPoint |
autoMarkAt(int n,
double x,
double y)
Used by autoTracker to mark a step at a match target position. |
protected void |
cleanup()
Cleans up associated resources when this track is deleted or cleared. |
abstract Step |
createStep(int n,
double x,
double y)
Creates a new step. |
protected void |
createWarningDialog()
|
void |
delete()
Removes this track from all panels that draw it. |
Step |
deleteStep(int n)
Deletes a step. |
void |
draw(DrawingPanel panel,
java.awt.Graphics _g)
Draws the steps on the tracker panel. |
void |
erase()
Erases all steps on all panels. |
void |
erase(TrackerPanel trackerPanel)
Erases all steps on the specified panel. |
Interactive |
findInteractive(DrawingPanel panel,
int xpix,
int ypix)
Finds the interactive drawable object located at the specified pixel position. |
void |
firePropertyChange(java.lang.String name,
java.lang.Object oldVal,
java.lang.Object newVal)
Fires a property change event. |
java.awt.Color |
getColor()
Gets the color. |
DatasetManager |
getData(TrackerPanel trackerPanel)
Returns the DatasetManager. |
java.lang.String |
getDataDescription(int index)
Gets the description of a data variable. |
java.lang.String |
getDataName(int index)
Gets the name of a data variable. |
java.lang.String |
getDescription()
Gets the description of this track. |
Footprint |
getFootprint()
Gets the current footprint. |
Footprint |
getFootprint(Step step)
Gets the current footprint. |
abstract int |
getFootprintLength()
Gets the length of the footprints required by this track. |
Footprint[] |
getFootprints()
Gets the footprint choices. |
Footprint[] |
getFootprints(Step step)
Gets the footprint choices. |
int |
getFrameForData(java.lang.String var,
double value)
Gets the frame number associated with a specified variable and value. |
static XML.ObjectLoader |
getLoader()
Returns an ObjectLoader to save and load data for this class. |
TPoint |
getMarkedPoint(int n,
int index)
Used by autoTracker to get the marked point for a given frame and index. |
protected java.awt.Cursor |
getMarkingCursor(java.awt.event.InputEvent e)
Gets the cursor used for marking new steps. |
javax.swing.JMenu |
getMenu(TrackerPanel trackerPanel)
Prepares menu items and returns a new menu. |
java.lang.String |
getMessage()
Gets a message about this track to display in a message box. |
java.lang.String |
getName()
Gets the name of this track. |
Step |
getNextVisibleStep(Step step,
TrackerPanel trackerPanel)
Gets next visible step after the specified step. |
java.util.ArrayList<java.lang.Integer> |
getPreferredDataOrder()
Gets the preferred order of data table columns. |
Step |
getPreviousVisibleStep(Step step,
TrackerPanel trackerPanel)
Gets first visible step before the specified step. |
java.lang.Object |
getProperty(java.lang.String name)
Gets a user property of the track. |
java.util.Collection<java.lang.String> |
getPropertyNames()
Gets a collection of user property names for the track. |
protected javax.swing.JDialog |
getSkippedStepWarningDialog()
|
Step |
getStep(int n)
Gets a step specified by frame number. |
Step |
getStep(TPoint point,
TrackerPanel trackerPanel)
Gets a step containing a TPoint. |
abstract int |
getStepLength()
Gets the length of the steps created by this track. |
Step[] |
getSteps()
Gets the step array. |
protected javax.swing.JDialog |
getStepSizeWarningDialog()
|
protected java.lang.String |
getTargetDescription(int pointIndex)
Returns a description of a target point with a given index. |
protected int |
getTargetIndex()
Returns the target index for the autotracker. |
java.util.ArrayList<java.awt.Component> |
getToolbarPointComponents(TrackerPanel trackerPanel,
TPoint point)
Returns an empty list of point-related toolbar components. |
java.util.ArrayList<java.awt.Component> |
getToolbarTrackComponents(TrackerPanel trackerPanel)
Returns an empty list of track-related toolbar components. |
int |
getTrailLength()
Gets the trail length. |
protected double[] |
getWorldBounds(TrackerPanel panel)
Gets the world bounds of this track on the specified TrackerPanel. |
double |
getX()
Gets x. |
double |
getXMax()
Gets the maximum x needed to draw this object. |
double |
getXMax(TrackerPanel panel)
Gets the maximum world x needed to draw this object on the specified TrackerPanel. |
double |
getXMin()
Gets the minimum x needed to draw this object. |
double |
getXMin(TrackerPanel panel)
Gets the minimum world x needed to draw this object on the specified TrackerPanel. |
double |
getY()
Gets y. |
double |
getYMax()
Gets the maximum y needed to draw this object. |
double |
getYMax(TrackerPanel panel)
Gets the maximum world y needed to draw this object on the specified TrackerPanel. |
double |
getYMin()
Gets the minimum y needed to draw this object. |
double |
getYMin(TrackerPanel panel)
Gets the minimum world y needed to draw this object on the specified TrackerPanel. |
boolean |
isAutoAdvance()
Gets the autoAdvance property. |
protected boolean |
isAutoTrackable()
Determines if at least one point in this track is autotrackable. |
protected boolean |
isAutoTrackable(int pointIndex)
Determines if the given point index is autotrackable. |
boolean |
isDependent()
Reports whether or not this is dependent. |
boolean |
isEmpty()
Returns true if this track contains no steps. |
boolean |
isEnabled()
Gets whether this responds to mouse hits. |
boolean |
isLocked()
Gets the locked property. |
boolean |
isMarkByDefault()
Gets the markByDefault property. |
boolean |
isMeasured()
Reports whether information is available to set min/max values. |
boolean |
isStepComplete(int n)
Returns true if the step at the specified frame number is complete. |
boolean |
isStepVisible(Step step,
TrackerPanel trackerPanel)
Reports whether or not the specified step is visible. |
boolean |
isTrailVisible()
Gets the trail visibility. |
boolean |
isViewable()
Reports whether or not this is viewable. |
boolean |
isVisible()
Reports whether or not this is visible. |
void |
propertyChange(java.beans.PropertyChangeEvent e)
Responds to property change events. |
protected void |
refreshData(DatasetManager data,
TrackerPanel trackerPanel)
Refreshes the data in the specified DatasetManager. |
protected void |
refreshData(DatasetManager data,
TrackerPanel trackerPanel,
int startFrame,
int stepCount)
Refreshes the data for a specified frame range. |
void |
remark()
Remarks all steps on all panels. |
void |
remark(TrackerPanel trackerPanel)
Remarks all steps on the specified panel. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes a PropertyChangeListener. |
void |
removePropertyChangeListener(java.lang.String property,
java.beans.PropertyChangeListener listener)
Removes a PropertyChangeListener for a specified property. |
void |
repaint()
Repaints all steps on all panels. |
void |
repaint(Step step)
Repaints the specified step on all panels. |
void |
repaint(TrackerPanel trackerPanel)
Repaints all steps on the specified panel. |
protected void |
setAnglesInRadians(boolean radians)
Sets the display format for angles. |
void |
setAutoAdvance(boolean auto)
Sets the autoAdvance property. |
void |
setColor(java.awt.Color color)
Sets the color. |
void |
setColorToDefault(int index)
Sets the color to one of the default colors[]. |
void |
setDefaultNameAndColor(TrackerPanel trackerPanel,
java.lang.String connector)
Sets the default name and color for a specified tracker panel. |
void |
setDescription(java.lang.String desc)
Sets the description of this track. |
void |
setEnabled(boolean enabled)
Sets whether this responds to mouse hits. |
void |
setFootprint(java.lang.String name)
Sets the footprint to the specified choice. |
void |
setFootprint(java.lang.String name,
Step step)
Sets the footprint to the specified choice. |
void |
setFootprints(Footprint[] choices)
Sets the footprint choices. |
void |
setFootprints(Footprint[] choices,
Step step)
Sets the footprint choices. |
void |
setLocked(boolean locked)
Locks and unlocks this track. |
void |
setMarkByDefault(boolean mark)
Sets the markByDefault property. |
protected void |
setMarking(boolean marking)
Sets the marking flag. |
void |
setName(java.lang.String newName)
Sets the name of this track. |
void |
setProperty(java.lang.String name,
java.lang.Object value)
Sets a user property of the track. |
protected void |
setTargetIndex(int index)
Sets the target index for the autotracker. |
protected void |
setTargetIndex(java.lang.String description)
Sets the target index for the autotracker. |
protected void |
setTargetIndex(TPoint p)
Sets the target index for the autotracker. |
protected void |
setTrackerPanel(TrackerPanel panel)
Identifies the controlling TrackerPanel for this track (by default, the first TrackerPanel that adds this track to its drawables). |
void |
setTrailLength(int steps)
Sets the trail length. |
void |
setTrailVisible(boolean visible)
Shows and hides the trail. |
void |
setViewable(boolean viewable)
Determines whether views and track menu include this track. |
void |
setVisible(boolean visible)
Shows and hides this track. |
void |
setX(double x)
Empty setX method. |
void |
setXY(double x,
double y)
Empty setXY method. |
void |
setY(double y)
Empty setY 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 static java.lang.String alphabet
protected static javax.swing.JDialog skippedStepWarningDialog
protected static javax.swing.JTextPane skippedStepWarningTextpane
protected static javax.swing.JCheckBox skippedStepWarningCheckbox
protected static javax.swing.JButton closeButton
protected static boolean skippedStepWarningOn
protected static java.awt.font.FontRenderContext frc
protected java.lang.String name
protected java.lang.String description
protected boolean visible
protected boolean trailVisible
protected int trailLength
protected boolean locked
protected boolean enabled
protected boolean viewable
protected Footprint[] footprints
protected Footprint footprint
protected Footprint defaultFootprint
protected java.awt.Color[] defaultColors
protected TTrack.StepArray steps
protected java.util.Collection<TrackerPanel> panels
protected java.beans.PropertyChangeSupport support
protected java.util.HashMap<java.lang.String,java.lang.Object> properties
protected DatasetManager data
protected java.util.HashMap<TrackerPanel,double[]> worldBounds
protected java.awt.geom.Point2D point
protected java.util.ArrayList<java.awt.Component> toolbarTrackComponents
protected java.util.ArrayList<java.awt.Component> toolbarPointComponents
protected javax.swing.JLabel tLabel
protected javax.swing.JLabel xLabel
protected javax.swing.JLabel yLabel
protected javax.swing.JLabel magLabel
protected javax.swing.JLabel angleLabel
protected javax.swing.JLabel stepLabel
protected javax.swing.JLabel tValueLabel
protected javax.swing.JLabel stepValueLabel
protected NumberField tField
protected NumberField xField
protected NumberField yField
protected NumberField magField
protected DecimalField angleField
protected javax.swing.border.Border fieldBorder
protected java.awt.Component tSeparator
protected java.awt.Component xSeparator
protected java.awt.Component ySeparator
protected java.awt.Component magSeparator
protected java.awt.Component angleSeparator
protected java.awt.Component stepSeparator
protected javax.swing.JMenu menu
protected boolean autoAdvance
protected boolean markByDefault
protected boolean isMarking
protected javax.swing.JCheckBoxMenuItem visibleItem
protected javax.swing.JCheckBoxMenuItem trailVisibleItem
protected javax.swing.JCheckBoxMenuItem markByDefaultItem
protected javax.swing.JCheckBoxMenuItem autoAdvanceItem
protected javax.swing.JCheckBoxMenuItem lockedItem
protected javax.swing.JMenuItem nameItem
protected javax.swing.JMenuItem colorItem
protected javax.swing.JMenu footprintMenu
protected java.awt.event.ActionListener footprintListener
protected java.awt.event.ActionListener circleFootprintListener
protected javax.swing.JMenuItem deleteTrackItem
protected javax.swing.JMenuItem deleteStepItem
protected javax.swing.JMenuItem clearStepsItem
protected javax.swing.JMenuItem descriptionItem
protected javax.swing.JMenuItem dataBuilderItem
protected javax.swing.JSpinner xSpinner
protected javax.swing.JSpinner ySpinner
protected java.awt.Font labelFont
protected javax.swing.JDialog nameDialog
protected javax.swing.JTextField nameField
protected javax.swing.Action nameAction
protected TrackerPanel trackerPanel
protected XMLProperty dataProp
protected java.lang.Object[][] constantsLoadedFromXML
protected java.lang.String[] dataDescriptions
protected boolean dataValid
protected boolean refreshDataLater
protected int[] preferredColumnOrder
protected java.util.ArrayList<java.lang.Integer> dataFrames
protected java.lang.String partName
protected java.lang.String hint
protected int stepSizeWhenFirstMarked
protected java.util.TreeSet<java.lang.Integer> keyFrames
protected boolean autoTrackerMarking
protected int targetIndex
protected TTrack[] attachments
| Constructor Detail |
|---|
protected TTrack()
| Method Detail |
|---|
public void setVisible(boolean visible)
visible - true to show this trackpublic void delete()
public boolean isVisible()
true if this track is visiblepublic void setTrailVisible(boolean visible)
visible - true to show trailpublic boolean isTrailVisible()
true if trail is visiblepublic void setTrailLength(int steps)
steps - the trail lengthpublic int getTrailLength()
public void setLocked(boolean locked)
locked - true to lock thispublic boolean isLocked()
true if this is lockedpublic void setAutoAdvance(boolean auto)
auto - true to request that the video autoadvance while marking.public boolean isAutoAdvance()
true if this is autoadvancepublic void setMarkByDefault(boolean mark)
mark - true to mark by defaultpublic boolean isMarkByDefault()
true if this marks by defaultpublic java.awt.Color getColor()
public void setColor(java.awt.Color color)
color - the desired colorpublic void setColorToDefault(int index)
index - the color index
public void setDefaultNameAndColor(TrackerPanel trackerPanel,
java.lang.String connector)
trackerPanel - the TrackerPanelconnector - the string connector between the name and letter suffixpublic java.lang.String getName()
public void setName(java.lang.String newName)
newName - the new name of this trackpublic java.lang.String getDescription()
public void setDescription(java.lang.String desc)
desc - a descriptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getMessage()
public void setViewable(boolean viewable)
viewable - true to include this track in viewspublic boolean isViewable()
true if this track is viewablepublic boolean isDependent()
true if this track is dependentpublic void setFootprints(Footprint[] choices)
choices - the array of Footprints available to this track
public void setFootprints(Footprint[] choices,
Step step)
choices - the array of Footprints available to this trackstep - the step that identifies the step arraypublic Footprint[] getFootprints()
public Footprint[] getFootprints(Step step)
step - the step that identifies the step array
public void addFootprint(Footprint footprint)
footprint - the footprintpublic void setFootprint(java.lang.String name)
name - the name of the desired footprintpublic Footprint getFootprint()
public void setFootprint(java.lang.String name,
Step step)
name - the name of the desired footprintstep - the step that identifies the step arraypublic Footprint getFootprint(Step step)
step - the step that identifies the step array
public abstract int getStepLength()
public abstract int getFootprintLength()
public abstract Step createStep(int n,
double x,
double y)
n - the frame numberx - the x coordinate in image spacey - the y coordinate in image space
public Step deleteStep(int n)
n - the frame number
public Step getStep(int n)
n - the frame number
public Step getNextVisibleStep(Step step,
TrackerPanel trackerPanel)
step - the steptrackerPanel - the tracker panel
public Step getPreviousVisibleStep(Step step,
TrackerPanel trackerPanel)
step - the steptrackerPanel - the tracker panel
public Step getStep(TPoint point,
TrackerPanel trackerPanel)
point - a TPointtrackerPanel - the tracker panel holding the TPoint
public Step[] getSteps()
public boolean isStepComplete(int n)
n - the frame number
true if the step is complete, otherwise false
public TPoint autoMarkAt(int n,
double x,
double y)
n - the frame numberx - the x target coordinate in image spacey - the y target coordinate in image space
public TPoint getMarkedPoint(int n,
int index)
n - the frame numberindex - the index
protected int getTargetIndex()
protected void setTargetIndex(int index)
index - the point indexprotected void setTargetIndex(java.lang.String description)
description - the description of the targetprotected void setTargetIndex(TPoint p)
p - a TPoint associated with a step in this trackprotected java.lang.String getTargetDescription(int pointIndex)
pointIndex - the index
protected boolean isAutoTrackable(int pointIndex)
pointIndex - the points[] index
protected boolean isAutoTrackable()
public boolean isEmpty()
true if this contains no stepspublic DatasetManager getData(TrackerPanel trackerPanel)
trackerPanel - the tracker panel
protected void refreshData(DatasetManager data,
TrackerPanel trackerPanel)
data - the DatasetManagertrackerPanel - the tracker panel
protected void refreshData(DatasetManager data,
TrackerPanel trackerPanel,
int startFrame,
int stepCount)
data - the DatasetManagertrackerPanel - the tracker panelstartFrame - the start framestepCount - the step countpublic java.lang.String getDataName(int index)
index - the dataset index
public java.lang.String getDataDescription(int index)
index - the dataset index
public java.util.ArrayList<java.lang.Integer> getPreferredDataOrder()
public int getFrameForData(java.lang.String var,
double value)
var - the variable namevalue - the value
public javax.swing.JMenu getMenu(TrackerPanel trackerPanel)
trackerPanel - the tracker panel
public java.util.ArrayList<java.awt.Component> getToolbarTrackComponents(TrackerPanel trackerPanel)
trackerPanel - the tracker panel
public java.util.ArrayList<java.awt.Component> getToolbarPointComponents(TrackerPanel trackerPanel,
TPoint point)
trackerPanel - the tracker panelpoint - the TPoint
public void erase()
public void remark()
public void repaint()
public void erase(TrackerPanel trackerPanel)
trackerPanel - the tracker panelpublic void remark(TrackerPanel trackerPanel)
trackerPanel - the tracker panelpublic void repaint(TrackerPanel trackerPanel)
trackerPanel - the tracker panelpublic void repaint(Step step)
step - the step
public void draw(DrawingPanel panel,
java.awt.Graphics _g)
draw in interface Drawablepanel - the drawing panel requesting the drawing_g - the graphics context on which to draw
public Interactive findInteractive(DrawingPanel panel,
int xpix,
int ypix)
findInteractive in interface Interactivepanel - the drawing panelxpix - the x pixel position on the panelypix - the y pixel position on the panel
public double getX()
getX in interface Interactivepublic double getY()
getY in interface Interactivepublic void setX(double x)
setX in interface Interactivex - the x positionpublic void setY(double y)
setY in interface Interactivey - the y position
public void setXY(double x,
double y)
setXY in interface Interactivex - the x positiony - the y positionpublic void setEnabled(boolean enabled)
setEnabled in interface Interactiveenabled - true if this responds to mouse hits.public boolean isEnabled()
isEnabled in interface Interactivetrue if this responds to mouse hits.public boolean isMeasured()
isMeasured in interface Measurablefalse since TTrack knows only its image coordinatespublic double getXMin()
getXMin in interface Measurablepublic double getXMax()
getXMax in interface Measurablepublic double getYMin()
getYMin in interface Measurablepublic double getYMax()
getYMax in interface Measurablepublic double getXMin(TrackerPanel panel)
panel - the TrackerPanel drawing this track
public double getXMax(TrackerPanel panel)
panel - the TrackerPanel drawing this track
public double getYMin(TrackerPanel panel)
panel - the TrackerPanel drawing this track
public double getYMax(TrackerPanel panel)
panel - the TrackerPanel drawing this track
public void setProperty(java.lang.String name,
java.lang.Object value)
name - the name of the propertyvalue - the value of the propertypublic java.lang.Object getProperty(java.lang.String name)
name - the name of the property
public java.util.Collection<java.lang.String> getPropertyNames()
public void propertyChange(java.beans.PropertyChangeEvent e)
propertyChange in interface java.beans.PropertyChangeListenere - the property change eventpublic void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener - the object requesting property change notification
public void firePropertyChange(java.lang.String name,
java.lang.Object oldVal,
java.lang.Object newVal)
name - the name of the propertyoldVal - the old value of the propertynewVal - the new value of the property
public void addPropertyChangeListener(java.lang.String property,
java.beans.PropertyChangeListener listener)
property - the name of the property of interest to the listenerlistener - the object requesting property change notificationpublic void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener - the listener requesting removal
public void removePropertyChangeListener(java.lang.String property,
java.beans.PropertyChangeListener listener)
property - the name of the propertylistener - the listener to removeprotected void setTrackerPanel(TrackerPanel panel)
panel - the TrackerPanelprotected double[] getWorldBounds(TrackerPanel panel)
panel - the TrackerPanel
protected void setAnglesInRadians(boolean radians)
radians - true for radians, false for degreesprotected void cleanup()
protected void setMarking(boolean marking)
marking - true when markingprotected java.awt.Cursor getMarkingCursor(java.awt.event.InputEvent e)
e - the input event triggering this call
protected void createWarningDialog()
protected javax.swing.JDialog getStepSizeWarningDialog()
protected javax.swing.JDialog getSkippedStepWarningDialog()
public static XML.ObjectLoader getLoader()
public boolean isStepVisible(Step step,
TrackerPanel trackerPanel)
step - the steptrackerPanel - the tracker panel
true if the step is visible
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||