|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.opensourcephysics.display.DrawingPanel
org.opensourcephysics.display.InteractivePanel
org.opensourcephysics.display.PlottingPanel
org.opensourcephysics.cabrillo.tracker.TrackPlottingPanel
public class TrackPlottingPanel
This is a plotting panel for a track
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.opensourcephysics.display.InteractivePanel |
|---|
InteractivePanel.IADMouseController |
| Nested classes/interfaces inherited from class org.opensourcephysics.display.DrawingPanel |
|---|
DrawingPanel.ZoomBox |
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
javax.swing.JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
javax.swing.JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
java.awt.Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected Step |
clickedStep
|
protected javax.swing.JMenuItem |
copyImageItem
|
protected DatasetManager |
data
|
protected javax.swing.JMenuItem |
dataBuilderItem
|
protected javax.swing.Action |
dataFunctionListener
|
protected HighlightableDataset |
dataset
|
protected javax.swing.JMenuItem |
dataToolItem
|
protected java.awt.Font |
font
|
protected javax.swing.JMenuItem |
helpItem
|
protected int |
highlightIndex
|
protected java.awt.Rectangle |
hitRect
|
protected boolean |
isCustom
|
protected boolean |
isZoomMode
|
protected javax.swing.JCheckBoxMenuItem |
linesItem
|
protected org.opensourcephysics.cabrillo.tracker.TrackPlottingPanel.PlotMouseListener |
mouseListener
|
protected java.beans.PropertyChangeListener |
playerListener
|
protected org.opensourcephysics.cabrillo.tracker.TrackPlottingPanel.ClickableAxes |
plotAxes
|
protected PlotTrackView |
plotTrackView
|
protected javax.swing.JCheckBoxMenuItem |
pointsItem
|
protected javax.swing.JMenuItem |
printItem
|
protected java.lang.String |
title
|
protected TTrack |
track
|
protected javax.swing.JRadioButtonMenuItem[] |
xChoices
|
protected javax.swing.ButtonGroup |
xGroup
|
protected int |
xIndex
|
protected java.lang.String |
xLabel
|
protected java.awt.event.ItemListener |
xListener
|
protected javax.swing.JPopupMenu |
xPopup
|
protected javax.swing.JRadioButtonMenuItem[] |
yChoices
|
protected javax.swing.ButtonGroup |
yGroup
|
protected int |
yIndex
|
protected java.lang.String |
yLabel
|
protected java.awt.event.ItemListener |
yListener
|
protected javax.swing.JPopupMenu |
yPopup
|
| Fields inherited from class org.opensourcephysics.display.InteractivePanel |
|---|
containsInteractive, interactive, MOUSE_CLICKED, MOUSE_DRAGGED, MOUSE_ENTERED, MOUSE_EXITED, MOUSE_MOVED, MOUSE_PRESSED, MOUSE_RELEASED, mouseAction, mouseEvent |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
TrackPlottingPanel(TTrack _track,
DatasetManager _data)
Constructs a TrackPlottingPanel for a track. |
|
| Method Summary | |
|---|---|
protected void |
buildPopupmenu()
Builds the default popup menu for this panel. |
protected void |
createVarChoices()
|
protected java.awt.Rectangle |
findViewRect()
Overrides DrawingPanel method to prevent changes to glassPanel. |
HighlightableDataset |
getDataset()
Gets the dataset |
static XML.ObjectLoader |
getLoader()
Returns an XML.ObjectLoader to save and load object data. |
protected TViewChooser |
getOwner()
Gets the TViewChooser that owns (displays) this panel. |
javax.swing.JPopupMenu |
getPopupMenu()
Gets the popup menu. |
java.lang.String |
getTitle()
Gets the title. |
java.lang.String |
getXLabel()
Gets the label for the X (horizontal) axis. |
protected java.lang.String |
getXVariable()
Gets the x variable name. |
java.lang.String |
getYLabel()
Gets the label for the Y (vertical) axis. |
protected java.lang.String |
getYVariable()
Gets the y variable name. |
protected void |
plotData()
Plots the data. |
void |
scale(java.util.ArrayList<Drawable> list)
Overrides DrawingPanel scale method |
protected void |
scaleXMax()
Sets the max on the horizontal axis scale. |
protected void |
scaleXMin()
Sets the min on the horizontal axis scale. |
protected void |
scaleYMax()
Sets the max on the vertical axis scale. |
protected void |
scaleYMin()
Sets the min on the vertical axis scale. |
void |
send(Job job,
Tool replyTo)
Sends a job to this tool and specifies a tool to reply to. |
protected void |
setHighlighted(int frameNumber)
Sets the highlighted point. |
protected void |
setPlotTrackView(PlotTrackView view)
Sets the PlotTrackView that owns this. |
void |
setPreferredMinMax(double xmin,
double xmax,
double ymin,
double ymax,
boolean invalidateImage)
Sets preferred min/max values. |
void |
setPreferredMinMaxX(double xmin,
double xmax)
Sets preferred min/max x values. |
void |
setTitle(java.lang.String title)
Sets the title. |
void |
setXLabel(java.lang.String label)
Sets the label for the X (horizontal) axis. |
protected void |
setXVariable(java.lang.String name)
Sets the x variable by name. |
void |
setYLabel(java.lang.String label)
Sets the label for the Y (vertical) axis. |
protected void |
setYVariable(java.lang.String name)
Sets the x variable by name. |
protected void |
showPlotCoordinates(int index)
Shows plot coordinates at the specified dataset index. |
| Methods inherited from class org.opensourcephysics.display.PlottingPanel |
|---|
computeGutters, getAxes, getBottomGutter, getInteractive, getPixelTransform, getTopGutter, paintFirst, pixToX, pixToY, recomputeTransform, setAxes, setAxesVisible, setCartesian, setLogScale, setLogScaleX, setLogScaleY, setPixelScale, setPolar, setTitle, setXLabel, setYLabel, xToGraphics, xToPix, yToGraphics, yToPix |
| Methods inherited from class org.opensourcephysics.display.InteractivePanel |
|---|
addDrawable, clear, getCurrentDraggable, getMouseAction, getMouseButton, getMouseClickCount, getMouseIntX, getMouseIntY, getMouseX, getMouseY, handleMouseAction, saveMouseEvent, scaleX, scaleY, setInteractiveMouseHandler, setShowCoordinates |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class javax.swing.JComponent |
|---|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, update |
| Methods inherited from class java.awt.Container |
|---|
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
| Methods inherited from class java.awt.Component |
|---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected TTrack track
protected DatasetManager data
protected javax.swing.JRadioButtonMenuItem[] xChoices
protected javax.swing.JRadioButtonMenuItem[] yChoices
protected javax.swing.ButtonGroup xGroup
protected javax.swing.ButtonGroup yGroup
protected int xIndex
protected int yIndex
protected HighlightableDataset dataset
protected javax.swing.JPopupMenu xPopup
protected javax.swing.JPopupMenu yPopup
protected javax.swing.Action dataFunctionListener
protected javax.swing.JMenuItem copyImageItem
protected javax.swing.JMenuItem dataBuilderItem
protected javax.swing.JMenuItem dataToolItem
protected javax.swing.JMenuItem printItem
protected javax.swing.JMenuItem helpItem
protected javax.swing.JCheckBoxMenuItem linesItem
protected javax.swing.JCheckBoxMenuItem pointsItem
protected java.lang.String xLabel
protected java.lang.String yLabel
protected java.lang.String title
protected int highlightIndex
protected java.awt.event.ItemListener xListener
protected java.awt.event.ItemListener yListener
protected PlotTrackView plotTrackView
protected boolean isCustom
protected java.awt.Font font
protected java.awt.Rectangle hitRect
protected org.opensourcephysics.cabrillo.tracker.TrackPlottingPanel.ClickableAxes plotAxes
protected boolean isZoomMode
protected org.opensourcephysics.cabrillo.tracker.TrackPlottingPanel.PlotMouseListener mouseListener
protected java.beans.PropertyChangeListener playerListener
protected Step clickedStep
| Constructor Detail |
|---|
public TrackPlottingPanel(TTrack _track,
DatasetManager _data)
_track - the track_data - the track's data| Method Detail |
|---|
public void send(Job job,
Tool replyTo)
Tool
send in interface Tooljob - the JobreplyTo - the tool to notify when the job is complete (may be null)public HighlightableDataset getDataset()
public void setXLabel(java.lang.String label)
setXLabel in class PlottingPanellabel - the x label.public java.lang.String getXLabel()
public void setYLabel(java.lang.String label)
setYLabel in class PlottingPanellabel - the y labelpublic java.lang.String getYLabel()
public void setTitle(java.lang.String title)
setTitle in class PlottingPaneltitle - the title.public java.lang.String getTitle()
public void scale(java.util.ArrayList<Drawable> list)
scale in class DrawingPanelpublic javax.swing.JPopupMenu getPopupMenu()
getPopupMenu in class DrawingPanelprotected void buildPopupmenu()
buildPopupmenu in class DrawingPanelprotected void scaleXMin()
protected void scaleXMax()
protected void scaleYMin()
protected void scaleYMax()
protected TViewChooser getOwner()
protected void plotData()
protected void showPlotCoordinates(int index)
public void setPreferredMinMax(double xmin,
double xmax,
double ymin,
double ymax,
boolean invalidateImage)
setPreferredMinMax in class DrawingPanelxmin - xmax - ymin - ymax - invalidateImage - invalidates image if min/max have changed
public void setPreferredMinMaxX(double xmin,
double xmax)
setPreferredMinMaxX in class DrawingPanelxmin - xmax - protected void setHighlighted(int frameNumber)
frameNumber - the frame numberprotected void setXVariable(java.lang.String name)
name - the name of the dataset to plot on the x axisprotected java.lang.String getXVariable()
protected void setYVariable(java.lang.String name)
name - the name of the dataset to plot on the x axisprotected java.lang.String getYVariable()
protected void setPlotTrackView(PlotTrackView view)
protected java.awt.Rectangle findViewRect()
findViewRect in class DrawingPanelprotected void createVarChoices()
public static XML.ObjectLoader getLoader()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||