Package curve.panel
Class SToolBar
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JToolBar
curve.panel.SToolBar
- All Implemented Interfaces:
Mode
,ActionListener
,ImageObserver
,MenuContainer
,Serializable
,EventListener
,Accessible
,SwingConstants
Have sections to show what the mouse is doing at any time.
double left click
single left click
double right click
single right click - show submenu window - list items on option panel
centre button
mouse wheel - maybe zoom
- See Also:
-
Nested Class Summary
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
Modifier and TypeFieldDescription(package private) Box
b0(package private) Box
b3(package private) Board
boardcbBoard(package private) DotsCanvas
dc(package private) boolean
debugDragdraw(package private) Interpreter
ip(package private) JButton
jbCLookup(package private) JButton
jbLogBoard(package private) JButton
jbLogColours(package private) JButton
jbLogDoRedo(package private) JButton
jbLogLines(package private) JButton
jbLogPointsprivate JLabel
jlZoom1private JLabel
jlZoom2private JTextField
jtZoomint
drawing, selecting, panning(package private) Mover
moverpanrbDrawrbPanrbSelectselect(package private) Tr
t(package private) JTextArea
text area debug window(package private) JTextArea
taStatustfDragLtfDragPtfMovePtfNextidntfPaintprivate JTextField
tfxprivate JTextField
tfy(package private) String
zzFields 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 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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) void
actionButton
(JButton jb) action button(package private) void
check box actionvoid
action performed(package private) void
actionRB
(JRadioButton rb) action radio button(package private) void
actionTF
(JTextField tf) action text fieldvoid
addBoardLink
(Board board) set board linkvoid
addInterpreterLinkvoid
addMoverLink
(Mover mover) add mover linkprivate void
doBoard()
do board - use for displayvoid
doLogBoardvoid
doLogCLookupvoid
doLogColoursvoid
doLogDos()
doLogDos -contents of ip.actionsReDo and ip.actionsUnDovoid
doLogPointsvoid
doZoomMinusvoid
doZoomPlusvoid
do Zoom Reset(package private) Box
get action Box(package private) Box
get bb Box(package private) Box
get bb Box(package private) Box
get Debug Boxint
getMode()
get mode(package private) Box
get status Box(package private) Box
get vars Box(package private) Box
getXYBox()
get xy Box(package private) Box
getZoomBox(package private) static void
log to Log.mes(package private) void
set bordervoid
setDebugMessage
(String mes) set Debug Messagevoid
setDragLvoid
setDragPvoid
set draw modevoid
set Draw Mode Indicatorvoid
set paint time testvoid
set Pan modevoid
set Pan modevoid
set select modevoid
set Select Mode Indicatorvoid
set statusvoid
showCtlP
(CtlPoint p, JTextField tf) show Ctl Pvoid
showEndP
(EndPoint p, JTextField tf) showEndPvoid
showXY
(int fx, int fy) show x, yMethods 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, paint, paintChildren, 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, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
Field Details
-
zz
String zzzz -
debugDrag
boolean debugDragdebugDrag -
ip
Interpreter ipip -
mover
Mover movermover -
dc
DotsCanvas dcdc -
board
Board boardboard -
t
Tr tt -
b0
Box b0b0 -
tfx
tfx -
tfy
tfy -
tfDragP
tfDragP -
tfMoveP
tfMoveP -
tfDragL
tfDragL -
tfNextidn
tfNextidn -
tfPaint
tfPaint -
jlZoom1
jlZoom1 -
jtZoom
jtZoom -
jlZoom2
jlZoom2 -
taStatus
JTextArea taStatustaStatus -
b3
Box b3b3 -
jbLogPoints
JButton jbLogPointsjbLogPoints -
jbLogLines
JButton jbLogLinesjbLogLines -
jbLogDoRedo
JButton jbLogDoRedojbLogDoRedo -
jbLogBoard
JButton jbLogBoardjbLogBoard -
jbLogColours
JButton jbLogColoursjbLogColours -
jbCLookup
JButton jbCLookupjbCLookup -
mode
public int modedrawing, selecting, panning -
pan
pan -
select
select -
draw
draw -
rbPan
rbPan -
rbSelect
rbSelect -
rbDraw
rbDraw -
cbBoard
cbBoard -
taDebug
JTextArea taDebugtext area debug window
-
-
Constructor Details
-
SToolBar
-
-
Method Details
-
addMoverLink
-
addBoardLink
-
log
-
showXY
public void showXY(int fx, int fy) show x, y- Parameters:
fx
- -fy
- -
-
addInterpreterLink
-
setDragL
-
setDragP
-
showEndP
-
showCtlP
-
getZoomBox
-
getVarsBox
-
getStatusBox
-
getDbBox1
-
getDbBox2
-
getActionsBox
-
getXYBox
-
getDebugBox
-
setDebugMessage
-
setBorder
-
setPaintTimeText
-
setStatus
-
setSelectMode
public void setSelectMode()set select mode -
setSelectModeIndicator
public void setSelectModeIndicator()set Select Mode Indicator -
setDrawMode
public void setDrawMode()set draw mode -
setDrawModeIndicator
public void setDrawModeIndicator()set Draw Mode Indicator -
setPanMode
public void setPanMode()set Pan mode -
setPanModeIndicator
public void setPanModeIndicator()set Pan mode -
getMode
public int getMode()get mode- Returns:
- mode
-
actionPerformed
action performed- Specified by:
actionPerformed
in interfaceActionListener
- Parameters:
ae
- -
-
actionRB
-
actionTF
-
actionCB
-
actionButton
-
doBoard
private void doBoard()do board - use for display -
doZoomPlus
public void doZoomPlus()doZoomPlus -
doZoomReset
public void doZoomReset()do Zoom Reset -
doZoomMinus
public void doZoomMinus()doZoomMinus -
doLogPoints
public void doLogPoints()doLogPoints -
doLogBoard
public void doLogBoard()doLogBoard -
doLogCLookup
public void doLogCLookup()doLogCLookup -
doLogColours
public void doLogColours()doLogColours -
doLogDos
public void doLogDos()doLogDos -contents of ip.actionsReDo and ip.actionsUnDo
-