jfig.gui
Class ModeButtonPanel

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Panel
              extended byjfig.gui.ModeButtonPanel
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable

public class ModeButtonPanel
extends java.awt.Panel

container for all jfig mode-buttons.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.awt.Panel
java.awt.Panel.AccessibleAWTPanel
 
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)  ImageButton addPointButton
           
(package private)  ImageButton alignButton
           
(package private)  ImageButton arcButton
           
(package private)  ImageButton bezierButton
           
(package private)  ImageButton breakCompoundButton
           
(package private)  java.awt.Image buttonImages
           
(package private)  ImageButton cbezierButton
           
(package private)  ImageButton circleButton
           
(package private)  InsetsPanel commandButtonPanel
           
(package private)  ImageButton convertButton
           
(package private)  ImageButton copyButton
           
(package private)  ImageButton createCompoundButton
           
(package private)  java.awt.Image[] crop
           
(package private)  ImageButton csplineButton
           
(package private)  ImageButton cutPointButton
           
(package private)  ImageButton deleteButton
           
(package private)  ImageButton editButton
           
(package private)  ImageButton imageButton
           
(package private)  ImageButton libraryObjectButton
           
(package private)  ImageButton linkButton
           
(package private)  ImageButton mirrorXButton
           
(package private)  ImageButton mirrorYButton
           
(package private)  ImageButton moveButton
           
(package private)  ImageButton movePointButton
           
(package private)  ImageButton openCompoundButton
           
(package private)  ImageButton ovalButton
           
(package private)  ImageButton panHomeButton
           
(package private)  ImageButton polygonButton
           
(package private)  ImageButton polylineButton
           
(package private)  ConsoleMessage printer
           
(package private)  ImageButton rectButton
           
(package private)  ImageButton rotateCCWButton
           
(package private)  ImageButton rotateCWButton
           
(package private)  ImageButton roundrectButton
           
(package private)  ImageButton scaleButton
           
(package private)  ImageButton splineButton
           
(package private)  StatusMessage statusField
           
(package private)  ImageButton textButton
           
(package private)  ImageButton textSizeButton
           
(package private)  ImageButton updateButton
           
(package private)  ImageButton zoom11Button
           
(package private)  InsetsPanel zoomButtonPanel
           
(package private)  ImageButton zoomIn2Button
           
(package private)  ImageButton zoomOut2Button
           
(package private)  ImageButton zoomRegionButton
           
 
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
ModeButtonPanel(StatusMessage sf)
           
 
Method Summary
 void addActionListener(java.awt.event.ActionListener AL)
           
 void createCommandButtons()
           
 void createZoomButtons()
           
 java.awt.Image[] cropButtonImages()
           
 ImageButton findButton(java.lang.String commandString)
          search all components in this Panel to find a ImageButton 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 java.awt.Panel
addNotify, getAccessibleContext
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, update, 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, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, 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

InsetsPanel commandButtonPanel

zoomButtonPanel

InsetsPanel zoomButtonPanel

circleButton

ImageButton circleButton

ovalButton

ImageButton ovalButton

rectButton

ImageButton rectButton

roundrectButton

ImageButton roundrectButton

polylineButton

ImageButton polylineButton

polygonButton

ImageButton polygonButton

splineButton

ImageButton splineButton

csplineButton

ImageButton csplineButton

bezierButton

ImageButton bezierButton

cbezierButton

ImageButton cbezierButton

arcButton

ImageButton arcButton

imageButton

ImageButton imageButton

textButton

ImageButton textButton

linkButton

ImageButton linkButton

libraryObjectButton

ImageButton libraryObjectButton

openCompoundButton

ImageButton openCompoundButton

createCompoundButton

ImageButton createCompoundButton

breakCompoundButton

ImageButton breakCompoundButton

scaleButton

ImageButton scaleButton

alignButton

ImageButton alignButton

movePointButton

ImageButton movePointButton

moveButton

ImageButton moveButton

addPointButton

ImageButton addPointButton

copyButton

ImageButton copyButton

cutPointButton

ImageButton cutPointButton

deleteButton

ImageButton deleteButton

convertButton

ImageButton convertButton

rotateCWButton

ImageButton rotateCWButton

rotateCCWButton

ImageButton rotateCCWButton

updateButton

ImageButton updateButton

editButton

ImageButton editButton

mirrorXButton

ImageButton mirrorXButton

mirrorYButton

ImageButton mirrorYButton

textSizeButton

ImageButton textSizeButton

zoomRegionButton

ImageButton zoomRegionButton

zoomIn2Button

ImageButton zoomIn2Button

zoomOut2Button

ImageButton zoomOut2Button

zoom11Button

ImageButton zoom11Button

panHomeButton

ImageButton panHomeButton

buttonImages

java.awt.Image buttonImages

crop

java.awt.Image[] crop

printer

ConsoleMessage printer

statusField

StatusMessage statusField
Constructor Detail

ModeButtonPanel

public ModeButtonPanel(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 ImageButton findButton(java.lang.String commandString)
search all components in this Panel to find a ImageButton 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)