Class TToolBar
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JToolBar
org.opensourcephysics.cabrillo.tracker.TToolBar
- All Implemented Interfaces:
ImageObserver
,MenuContainer
,PropertyChangeListener
,Serializable
,EventListener
,Accessible
,SwingConstants
,OSPRuntime.Disposable
This is the main toolbar for Tracker.
- Author:
- Douglas Brown
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class
A button to manage the creation and visibility of calibration tools.protected class
A button to manage the visibility of the pencil scenes and control dialogprotected class
A button to manage the creation and visibility of measuring tools.Nested classes/interfaces inherited from class javax.swing.JToolBar
JToolBar.AccessibleJToolBar, JToolBar.Separator
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Icon
protected static final Icon
protected ButtonGroup
protected int
protected final JMenu
protected final TButton
protected JCheckBoxMenuItem
protected static final Icon
protected static final Icon
protected static final Icon
protected final TButton
protected JMenuItem
protected final TButton
protected JCheckBoxMenuItem
protected static final Icon
protected static final Icon
protected final TToolBar.CalibrationButton
protected JMenu
protected static final Icon
protected static final Icon
protected static final Icon
protected static final Icon
protected static final Icon
protected JCheckBoxMenuItem
protected static final Icon
protected static final Icon
protected final JButton
protected final JMenu
protected final JButton
protected JMenu
protected final TToolBar.DrawingButton
protected JCheckBoxMenuItem
protected JMenu
protected final TButton
protected static final Icon
protected JMenu
protected final JPopupMenu
protected final JButton
protected static final Icon
protected static final Icon
protected static final Icon
protected static final Icon
protected final WindowListener
effectively finalprotected static final Icon
protected final TButton
protected JMenuItem
protected static final Icon
protected static final Icon
protected final JButton
protected JCheckBoxMenuItem
protected final JButton
protected static final Icon
protected JMenu
protected final JPopupMenu
protected final TButton
protected static final Icon
protected final JButton
protected JCheckBoxMenuItem
protected boolean
protected final JButton
protected JMenu
protected TButton
protected int
protected JPopupMenu
protected final ArrayList<PageTView.TabData>
protected JMenuItem
protected static final Icon
protected static final Icon
protected static final Icon
protected static final Icon
protected static final Icon
protected static final Icon
protected static final Icon
protected static final Icon
protected static final Icon
protected final TButton
protected JMenuItem
protected static final Icon
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
protected final JButton
protected static final Icon
protected boolean
protected JMenu
protected final TToolBar.RulerButton
protected static final Icon
protected JMenu
protected static final Icon
protected static final Icon
protected static final Icon
protected static final Icon
protected final JButton
protected JMenu
protected final JMenuItem
protected final JPopupMenu
protected static final Icon
protected final JMenuItem
protected final TButton
protected JMenu
protected static final Icon
protected final JMenuItem
protected static final Icon
protected static final int[]
protected int
protected final Component
protected static final Icon
protected static final Icon
protected final TButton
protected final JButton
protected JCheckBoxMenuItem
protected static final Icon
protected static final Icon
protected static final Icon
protected final TButton
protected static final Icon[]
protected int
protected static final String[]
protected static final int[]
protected JMenu
protected boolean
protected static final Icon
protected static final Icon
protected ButtonGroup
protected int
protected final JMenu
protected final TButton
protected JMenuItem
protected static final int
protected static final int
protected final TButton
protected JMenuItem
protected static final Icon
protected static final Icon
protected final TButton
protected static final NumberFormat
protected static final Icon
protected JMenu
protected final JPopupMenu
Fields inherited from class javax.swing.JComponent
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
accessibleContext, 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
Fields inherited from interface org.opensourcephysics.display.OSPRuntime.Disposable
allocated
Fields inherited from interface javax.swing.SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
-
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Disposes of this toolbarprotected void
protected void
void
finalize()
static XML.ObjectLoader
Returns an XML.ObjectLoader to save and load object data.static JButton
void
protected void
protected TrackerPanel
panel()
void
Responds to the property change events.protected void
Refreshes the GUI using a private singleton timer.protected void
refreshAsync
(boolean refreshTrackProperties) protected JPopupMenu
protected JPopupMenu
refreshDesktopPopup
(JPopupMenu popup) protected JPopupMenu
refreshEyePopup
(JPopupMenu popup) protected static void
refreshMemoryButton
(TrackerPanel trackerPanel) Refreshes the memory button for a trackerPanel().protected JPopupMenu
refreshOpenPopup
(JPopupMenu popup) protected void
protected JPopupMenu
refreshRefreshPopup
(JPopupMenu popup) protected JPopupMenu
refreshRulerPopup
(JPopupMenu popup) protected JPopupMenu
refreshSavePopup
(JPopupMenu popup) protected void
protected JPopupMenu
refreshZoomPopup
(JPopupMenu popup) void
setAllowRefresh
(boolean b) Not while playingtoString()
Methods inherited from class javax.swing.JToolBar
add, addImpl, addSeparator, addSeparator, createActionChangeListener, createActionComponent, getAccessibleContext, getComponentAtIndex, getComponentIndex, getMargin, getOrientation, getUI, getUIClassID, isBorderPainted, isFloatable, isRollover, paintBorder, paramString, setBorderPainted, setFloatable, setLayout, setMargin, setOrientation, setRollover, 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, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintComponent, 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, setVisible, unregisterKeyboardAction, update
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, 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, 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, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, 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, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, transferFocus, transferFocusBackward, transferFocusUpCycle
-
Field Details
-
trailLengths
protected static final int[] trailLengths -
trailLengthNames
-
newTrackIcon
-
pointmassOffIcon
-
pointmassOnIcon
-
trackControlIcon
-
trackControlOnIcon
-
trackControlDisabledIcon
-
zoomIcon
-
clipOffIcon
-
clipOnIcon
-
axesOffIcon
-
axesOnIcon
-
calibrationToolsOffIcon
-
calibrationToolsOnIcon
-
calibrationOnlyIcon
-
rulerOnlyIcon
-
calibrationToolsOffRolloverIcon
-
calibrationToolsOnRolloverIcon
-
eyeIcon
-
rulerIcon
-
rulerOnIcon
-
rulerRolloverIcon
-
rulerOnRolloverIcon
-
pointsOffIcon
-
pointsOnIcon
-
velocOffIcon
-
velocOnIcon
-
accelOffIcon
-
accelOnIcon
-
traceOffIcon
-
traceOnIcon
-
labelsOffIcon
-
labelsOnIcon
-
stretchOffIcon
-
stretchOnIcon
-
xmassOffIcon
-
xmassOnIcon
-
fontSizeIcon
-
memoryIcon
-
redMemoryIcon
-
autotrackerOffIcon
-
autotrackerOnIcon
-
autotrackerDisabledIcon
-
infoIcon
-
infoOnIcon
-
refreshIcon
-
htmlIcon
-
htmlDisabledIcon
-
trailIcons
-
stretchValues
protected static final int[] stretchValues -
separatorIcon
-
pencilOffIcon
-
pencilOnIcon
-
pencilOffRolloverIcon
-
pencilOnRolloverIcon
-
pencilIcon
-
zoomFormat
-
wideIconWidth
protected static final int wideIconWidth- See Also:
-
wideIconDivider
protected static final int wideIconDivider- See Also:
-
REFRESH_PAGETVIEW_TABS
- See Also:
-
REFRESH_PAGETVIEW_TITLE
- See Also:
-
REFRESH_PAGETVIEW_URL
- See Also:
-
REFRESH_LINEPROFILE
- See Also:
-
REFRESH_TFRAME_LOCALE
- See Also:
-
REFRESH_TFRAME_LOCALE2
- See Also:
-
REFRESH__CLIP_SETTINGS_HIDDEN
- See Also:
-
REFRESH__CLIP_SETTINGS_SHOWN
- See Also:
-
REFRESH__NEW_VERSION
- See Also:
-
REFRESH_PREFS_TRUE
- See Also:
-
REFRESH_TFRAME_REFRESH_TRUE
- See Also:
-
REFRESH__REFRESH_ACTION_TRUE
- See Also:
-
REFRESH__TRAIL_BUTTON_ACTION_TRUE
- See Also:
-
REFRESH__VSTRETCH_ACTION_TRUE
- See Also:
-
REFRESH__ASTRETCH_ACTION_TRUE
- See Also:
-
REFRESH__STRETCHOFF_ACTION_TRUE
- See Also:
-
infoListener
effectively final -
openButton
-
saveButton
-
newTrackButton
-
trackControlButton
-
clipSettingsButton
-
calibrationButton
-
rulerButton
-
drawingButton
-
axesButton
-
zoomButton
-
autotrackerButton
-
eyeButton
-
traceVisButton
-
pVisButton
-
vVisButton
-
aVisButton
-
xMassButton
-
trailButton
-
labelsButton
-
stretchButton
-
pathVisMenuItem
-
pVisMenuItem
-
vVisMenuItem
-
aVisMenuItem
-
xMassMenuItem
-
labelsMenuItem
-
trailsMenu
-
stretchMenu
-
fontSizeButton
-
newPopup
-
selectPopup
-
eyePopup
-
zoomPopup
-
vStretchMenu
-
aStretchMenu
-
vGroup
-
aGroup
-
showTrackControlItem
-
selectNoneItem
-
stretchOffItem
-
notesButton
-
refreshButton
-
desktopButton
-
memoryButton
-
maximizeButton
-
toolbarFiller
-
cloneMenu
-
pageViewTabs
-
overflowIndex
protected int overflowIndex -
overflowPopup
-
overflowButton
-
rulerMenu
-
refreshMenu
-
memoryMenu
-
desktopMenu
-
zoomMenu
-
drawingMenu
-
calibrationMenu
-
eyeMenu
-
openMenu
-
saveMenu
-
trackControlCheckbox
-
notesCheckbox
-
maximizeCheckbox
-
axesCheckbox
-
autotrackerCheckbox
-
clipCheckbox
-
drawingControlCheckbox
-
overflowButtons
-
refreshing
protected boolean refreshing -
useEyeButton
protected boolean useEyeButton -
vStretch
protected int vStretch -
aStretch
protected int aStretch -
trailLengthIndex
protected int trailLengthIndex -
notYetCalibrated
protected boolean notYetCalibrated -
toolbarComponentHeight
protected int toolbarComponentHeight
-
-
Method Details
-
refreshOpenPopup
-
refreshSavePopup
-
refreshRulerPopup
-
refreshZoomPopup
-
refreshDesktopPopup
-
refreshRefreshPopup
-
doRefreshPopup
protected void doRefreshPopup() -
doNotesAction
protected void doNotesAction() -
refreshOverflowComponents
protected void refreshOverflowComponents() -
refreshCalibrationPopup
-
refreshZoomButton
protected void refreshZoomButton() -
refreshMemoryButton
Refreshes the memory button for a trackerPanel(). -
refreshEyePopup
-
paintChildren
- Overrides:
paintChildren
in classJComponent
-
refresh
Refreshes the GUI using a private singleton timer.- Parameters:
refreshTrackProperties
- true to refresh the track display properties
-
setAllowRefresh
public void setAllowRefresh(boolean b) Not while playing- Parameters:
b
-
-
refreshAsync
protected void refreshAsync(boolean refreshTrackProperties) -
paint
- Overrides:
paint
in classJComponent
-
dispose
public void dispose()Disposes of this toolbar- Specified by:
dispose
in interfaceOSPRuntime.Disposable
-
finalize
public void finalize() -
propertyChange
Responds to the property change events.- Specified by:
propertyChange
in interfacePropertyChangeListener
- Parameters:
e
- the property change event
-
getSeparator
-
getLoader
Returns an XML.ObjectLoader to save and load object data.- Returns:
- the XML.ObjectLoader
-
panel
-
toString
-