jfig.gui
Class JModeButtonPanel

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JPanel
                  extended byjfig.gui.JModeButtonPanel
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable

public class JModeButtonPanel
extends javax.swing.JPanel

Swing-based container for all jfig mode-buttons.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Nested classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
(package private)  JImageButton addPointButton
           
(package private)  JImageButton alignButton
           
(package private)  JImageButton arcButton
           
(package private)  JImageButton bezierButton
           
(package private)  JImageButton breakCompoundButton
           
(package private)  java.awt.Image buttonImages
           
(package private)  JImageButton cbezierButton
           
(package private)  JImageButton circleButton
           
(package private)  javax.swing.JPanel commandButtonPanel
           
(package private)  JImageButton convertButton
           
(package private)  JImageButton copyButton
           
(package private)  JImageButton createCompoundButton
           
(package private)  java.awt.Image[] crop
           
(package private)  JImageButton csplineButton
           
(package private)  JImageButton cutPointButton
           
(package private)  JImageButton deleteButton
           
(package private)  JImageButton editButton
           
(package private)  JImageButton imageButton
           
(package private)  JImageButton libraryObjectButton
           
(package private)  JImageButton linkButton
           
(package private)  JImageButton mirrorXButton
           
(package private)  JImageButton mirrorYButton
           
(package private)  JImageButton moveButton
           
(package private)  JImageButton movePointButton
           
(package private)  JImageButton openCompoundButton
           
(package private)  JImageButton ovalButton
           
(package private)  JImageButton panHomeButton
           
(package private)  JImageButton polygonButton
           
(package private)  JImageButton polylineButton
           
(package private)  ConsoleMessage printer
           
(package private)  JImageButton rectButton
           
(package private)  JImageButton rotateCCWButton
           
(package private)  JImageButton rotateCWButton
           
(package private)  JImageButton roundrectButton
           
(package private)  JImageButton scaleButton
           
(package private)  JImageButton splineButton
           
(package private)  StatusMessage statusField
           
(package private)  JImageButton textButton
           
(package private)  JImageButton textSizeButton
           
(package private)  JImageButton updateButton
           
(package private)  JImageButton zoom11Button
           
(package private)  javax.swing.JPanel zoomButtonPanel
           
(package private)  JImageButton zoomIn2Button
           
(package private)  JImageButton zoomOut2Button
           
(package private)  JImageButton zoomRegionButton
           
 
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.Container
 
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
JModeButtonPanel(StatusMessage sf)
           
 
Method Summary
 void addActionListener(java.awt.event.ActionListener AL)
           
 void createCommandButtons()
           
 void createZoomButtons()
           
 java.awt.Image[] cropButtonImages()
           
 JImageButton findButton(java.lang.String commandString)
          search all components in this Panel to find a JImageButton with given command string.
static void main(java.lang.String[] argv)
           
 void message(java.lang.String msg)
           
 void selectModeButton(java.lang.Object arg)
          a method to select (highlight) one mode button, to give visual feedback about the current editor mode.
 void setConsole(ConsoleMessage printer)
           
 void setLinkMessage(java.lang.String s)
           
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, 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, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, 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, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, 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, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, 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

commandButtonPanel

javax.swing.JPanel commandButtonPanel

zoomButtonPanel

javax.swing.JPanel zoomButtonPanel

circleButton

JImageButton circleButton

ovalButton

JImageButton ovalButton

rectButton

JImageButton rectButton

roundrectButton

JImageButton roundrectButton

polylineButton

JImageButton polylineButton

polygonButton

JImageButton polygonButton

splineButton

JImageButton splineButton

csplineButton

JImageButton csplineButton

bezierButton

JImageButton bezierButton

cbezierButton

JImageButton cbezierButton

arcButton

JImageButton arcButton

imageButton

JImageButton imageButton

textButton

JImageButton textButton

linkButton

JImageButton linkButton

libraryObjectButton

JImageButton libraryObjectButton

openCompoundButton

JImageButton openCompoundButton

createCompoundButton

JImageButton createCompoundButton

breakCompoundButton

JImageButton breakCompoundButton

scaleButton

JImageButton scaleButton

alignButton

JImageButton alignButton

movePointButton

JImageButton movePointButton

moveButton

JImageButton moveButton

addPointButton

JImageButton addPointButton

copyButton

JImageButton copyButton

cutPointButton

JImageButton cutPointButton

deleteButton

JImageButton deleteButton

convertButton

JImageButton convertButton

rotateCWButton

JImageButton rotateCWButton

rotateCCWButton

JImageButton rotateCCWButton

updateButton

JImageButton updateButton

editButton

JImageButton editButton

mirrorXButton

JImageButton mirrorXButton

mirrorYButton

JImageButton mirrorYButton

textSizeButton

JImageButton textSizeButton

zoomRegionButton

JImageButton zoomRegionButton

zoomIn2Button

JImageButton zoomIn2Button

zoomOut2Button

JImageButton zoomOut2Button

zoom11Button

JImageButton zoom11Button

panHomeButton

JImageButton panHomeButton

buttonImages

java.awt.Image buttonImages

crop

java.awt.Image[] crop

printer

ConsoleMessage printer

statusField

StatusMessage statusField
Constructor Detail

JModeButtonPanel

public JModeButtonPanel(StatusMessage sf)
Method Detail

setConsole

public void setConsole(ConsoleMessage printer)

cropButtonImages

public java.awt.Image[] cropButtonImages()

createCommandButtons

public void createCommandButtons()

createZoomButtons

public void createZoomButtons()

addActionListener

public void addActionListener(java.awt.event.ActionListener AL)

selectModeButton

public void selectModeButton(java.lang.Object arg)
a method to select (highlight) one mode button, to give visual feedback about the current editor mode. we expect an ActionEvent argumemt with the button as event source... If called with a NULL or invalid argument, we simply deselect all buttons.


findButton

public JImageButton findButton(java.lang.String commandString)
search all components in this Panel to find a JImageButton with given command string.


setLinkMessage

public void setLinkMessage(java.lang.String s)

message

public void message(java.lang.String msg)

main

public static void main(java.lang.String[] argv)