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 classA button to manage the creation and visibility of calibration tools.protected classA button to manage the visibility of the pencil scenes and control dialogprotected classA button to manage the creation and visibility of measuring tools.Nested classes/interfaces inherited from class javax.swing.JToolBar
JToolBar.AccessibleJToolBar, JToolBar.SeparatorNested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponentNested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainerNested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Iconprotected static final Iconprotected ButtonGroupprotected intprotected final JMenuprotected final TButtonprotected JCheckBoxMenuItemprotected static final Iconprotected static final Iconprotected static final Iconprotected final TButtonprotected JMenuItemprotected final TButtonprotected JCheckBoxMenuItemprotected static final Iconprotected static final Iconprotected final TToolBar.CalibrationButtonprotected JMenuprotected static final Iconprotected static final Iconprotected static final Iconprotected static final Iconprotected static final Iconprotected JCheckBoxMenuItemprotected static final Iconprotected static final Iconprotected final JButtonprotected final JMenuprotected final JButtonprotected JMenuprotected final TToolBar.DrawingButtonprotected JCheckBoxMenuItemprotected JMenuprotected final TButtonprotected static final Iconprotected JMenuprotected final JPopupMenuprotected final JButtonprotected static final Iconprotected static final Iconprotected static final Iconprotected static final Iconprotected final WindowListenereffectively finalprotected static final Iconprotected final TButtonprotected JMenuItemprotected static final Iconprotected static final Iconprotected final JButtonprotected JCheckBoxMenuItemprotected final JButtonprotected static final Iconprotected JMenuprotected final JPopupMenuprotected final TButtonprotected static final Iconprotected final JButtonprotected JCheckBoxMenuItemprotected booleanprotected final JButtonprotected JMenuprotected TButtonprotected intprotected JPopupMenuprotected final ArrayList<PageTView.TabData>protected JMenuItemprotected static final Iconprotected static final Iconprotected static final Iconprotected static final Iconprotected static final Iconprotected static final Iconprotected static final Iconprotected static final Iconprotected static final Iconprotected final TButtonprotected JMenuItemprotected static final Iconprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected final JButtonprotected static final Iconprotected booleanprotected JMenuprotected final TToolBar.RulerButtonprotected static final Iconprotected JMenuprotected static final Iconprotected static final Iconprotected static final Iconprotected static final Iconprotected final JButtonprotected JMenuprotected final JMenuItemprotected final JPopupMenuprotected static final Iconprotected final JMenuItemprotected final TButtonprotected JMenuprotected static final Iconprotected final JMenuItemprotected static final Iconprotected static final int[]protected intprotected final Componentprotected static final Iconprotected static final Iconprotected final TButtonprotected final JButtonprotected JCheckBoxMenuItemprotected static final Iconprotected static final Iconprotected static final Iconprotected final TButtonprotected static final Icon[]protected intprotected static final String[]protected static final int[]protected JMenuprotected booleanprotected static final Iconprotected static final Iconprotected ButtonGroupprotected intprotected final JMenuprotected final TButtonprotected JMenuItemprotected static final intprotected static final intprotected final TButtonprotected JMenuItemprotected static final Iconprotected static final Iconprotected final TButtonprotected static final NumberFormatprotected static final Iconprotected JMenuprotected final JPopupMenuFields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWFields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTHFields inherited from interface org.opensourcephysics.display.OSPRuntime.Disposable
allocatedFields 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 TypeMethodDescriptionvoiddispose()Disposes of this toolbarprotected voidprotected voidvoidfinalize()static XML.ObjectLoaderReturns an XML.ObjectLoader to save and load object data.static JButtonvoidprotected voidprotected TrackerPanelpanel()voidResponds to the property change events.protected voidRefreshes the GUI using a private singleton timer.protected voidrefreshAsync(boolean refreshTrackProperties) protected JPopupMenuprotected JPopupMenurefreshDesktopPopup(JPopupMenu popup) protected JPopupMenurefreshEyePopup(JPopupMenu popup) protected static voidrefreshMemoryButton(TrackerPanel trackerPanel) Refreshes the memory button for a trackerPanel().protected JPopupMenurefreshOpenPopup(JPopupMenu popup) protected voidprotected JPopupMenurefreshRefreshPopup(JPopupMenu popup) protected JPopupMenurefreshRulerPopup(JPopupMenu popup) protected JPopupMenurefreshSavePopup(JPopupMenu popup) protected voidprotected JPopupMenurefreshZoomPopup(JPopupMenu popup) voidsetAllowRefresh(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, updateUIMethods 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, updateMethods 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, validateTreeMethods 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:
paintChildrenin 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:
paintin classJComponent
-
dispose
public void dispose()Disposes of this toolbar- Specified by:
disposein interfaceOSPRuntime.Disposable
-
finalize
public void finalize() -
propertyChange
Responds to the property change events.- Specified by:
propertyChangein 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
-