Class CompEditor

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.JPanel
                          |
                          +--Editor
                                |
                                +--CompEditor
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.event.ActionListener, java.util.EventListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable
Direct Known Subclasses:
PassageEditor, SectionEditor

public class CompEditor
extends Editor

See Also:
Serialized Form

Field Summary
static java.lang.String ADD
           
static java.lang.String ADDPAS
           
static java.lang.String ADDSEG
           
(package private)  javax.swing.JButton addsegbutton
           
(package private)  javax.swing.JButton addsubbutton
           
static java.lang.String ALIGN
           
(package private)  Alignment alignment
           
static java.lang.String ALIGNSET
           
static java.lang.String ALL
           
(package private)  javax.swing.JButton atbutton
           
static java.lang.String BACK
           
static java.lang.String BACKWARD
           
static java.lang.String BLACK
           
static java.lang.String BLUE
           
(package private)  int buttoncnt
           
 javax.swing.AbstractButton[] buttonlist
           
static java.lang.String CLEARBUF
           
(package private)  java.lang.String[] commands
           
static java.lang.String COPY
           
static java.lang.String CUT
           
(package private)  SavableStroke defaultstroke
           
static java.lang.String DELETE
           
static java.lang.String ENDEDIT
           
(package private)  javax.swing.JButton fillbutton
           
static java.lang.String FILLTYPE
           
static java.lang.String FLIP
           
static java.lang.String FORWARD
           
static java.lang.String FRONT
           
static java.lang.String GREEN
           
static java.lang.String HAND
           
static java.lang.String HASSURVEY
           
static java.lang.String INVERT
           
(package private) static java.awt.image.ImageFilter invfilter
           
(package private)  javax.swing.JLabel layerlabel
           
static java.lang.String LIBITEM
           
static java.lang.String LINETYPE
           
static java.lang.String MERGE
           
(package private)  int[] modes
           
static java.lang.String NEWCURVE
           
static java.lang.String NEWOFFSET
           
static java.lang.String NEWPAGE
           
static java.lang.String NEWPAS
           
static java.lang.String NEWPHOTO
           
static java.lang.String NEWRECT
           
static java.lang.String NEWSECTION
           
static java.lang.String NEWSEG
           
static java.lang.String NEWSUB
           
static java.lang.String NOFILL
           
static java.lang.String NONE
           
(package private)  javax.swing.JPanel pallete
           
(package private)  CompPane pane
           
static java.lang.String PASTE
           
static java.lang.String PLAN
           
static java.lang.String RED
           
(package private)  Comp rootsymbol
           
static java.lang.String SELECT
           
(package private)  javax.swing.ButtonGroup selectgroup
           
static java.lang.String SETLAYER
           
static java.lang.String SMOOTHCURVE
           
static java.lang.String SUBEDIT
           
static java.lang.String SUBSELECT
           
static java.lang.String SURVEY
           
static java.lang.String TEXT
           
static int TYPE
           
static java.lang.String VIEWALIGN
           
static java.lang.String VIEWALL
           
static java.lang.String VIEWTRANS
           
static java.lang.String ZOOM
           
 
Fields inherited from class Editor
bar, CLOSE, dirty, editframe, frame, NAME, rose, scale, scroll, target
 
Fields inherited from class javax.swing.JPanel
 
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
CompEditor(Comp root, CartoFrame frame)
           
CompEditor(Comp root, CartoFrame frame, boolean insert)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 javax.swing.JButton addButton()
           
 javax.swing.JButton addButton(Library lib)
           
 javax.swing.AbstractButton addButton(java.lang.String iname, java.lang.String command)
           
 javax.swing.AbstractButton addButton(java.lang.String iname, java.lang.String command, int mode)
           
(package private)  void cleanup()
           
 void insertButton(javax.swing.AbstractButton button)
           
 void setMode(int mode)
           
 
Methods inherited from class Editor
addMenuItem, addMenuItem, findRefs, isDirty, saveData
 
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

TYPE

public static int TYPE

SURVEY

public static java.lang.String SURVEY

HASSURVEY

public static java.lang.String HASSURVEY

PLAN

public static java.lang.String PLAN

MERGE

public static java.lang.String MERGE

COPY

public static java.lang.String COPY

PASTE

public static java.lang.String PASTE

CUT

public static java.lang.String CUT

CLEARBUF

public static java.lang.String CLEARBUF

ALL

public static java.lang.String ALL

NONE

public static java.lang.String NONE

INVERT

public static java.lang.String INVERT

FRONT

public static java.lang.String FRONT

BACK

public static java.lang.String BACK

FORWARD

public static java.lang.String FORWARD

BACKWARD

public static java.lang.String BACKWARD

SUBEDIT

public static java.lang.String SUBEDIT

ENDEDIT

public static java.lang.String ENDEDIT

SELECT

public static java.lang.String SELECT

SUBSELECT

public static java.lang.String SUBSELECT

ADD

public static java.lang.String ADD

ZOOM

public static java.lang.String ZOOM

HAND

public static java.lang.String HAND

DELETE

public static java.lang.String DELETE

NEWCURVE

public static java.lang.String NEWCURVE

SMOOTHCURVE

public static java.lang.String SMOOTHCURVE

LINETYPE

public static java.lang.String LINETYPE

FLIP

public static java.lang.String FLIP

FILLTYPE

public static java.lang.String FILLTYPE

NEWSEG

public static java.lang.String NEWSEG

ADDSEG

public static java.lang.String ADDSEG

NEWPAS

public static java.lang.String NEWPAS

ADDPAS

public static java.lang.String ADDPAS

NEWPHOTO

public static java.lang.String NEWPHOTO

NEWSECTION

public static java.lang.String NEWSECTION

NEWSUB

public static java.lang.String NEWSUB

NEWRECT

public static java.lang.String NEWRECT

NEWPAGE

public static java.lang.String NEWPAGE

NEWOFFSET

public static java.lang.String NEWOFFSET

LIBITEM

public static java.lang.String LIBITEM

TEXT

public static java.lang.String TEXT

NOFILL

public static java.lang.String NOFILL

BLACK

public static java.lang.String BLACK

RED

public static java.lang.String RED

GREEN

public static java.lang.String GREEN

BLUE

public static java.lang.String BLUE

VIEWTRANS

public static java.lang.String VIEWTRANS

VIEWALL

public static java.lang.String VIEWALL

SETLAYER

public static java.lang.String SETLAYER

ALIGN

public static java.lang.String ALIGN

VIEWALIGN

public static java.lang.String VIEWALIGN

ALIGNSET

public static java.lang.String ALIGNSET

pane

CompPane pane

pallete

javax.swing.JPanel pallete

selectgroup

javax.swing.ButtonGroup selectgroup

rootsymbol

Comp rootsymbol

atbutton

javax.swing.JButton atbutton

fillbutton

javax.swing.JButton fillbutton

addsegbutton

javax.swing.JButton addsegbutton

addsubbutton

javax.swing.JButton addsubbutton

layerlabel

javax.swing.JLabel layerlabel

alignment

Alignment alignment

buttonlist

public javax.swing.AbstractButton[] buttonlist

commands

java.lang.String[] commands

modes

int[] modes

buttoncnt

int buttoncnt

invfilter

static java.awt.image.ImageFilter invfilter

defaultstroke

SavableStroke defaultstroke
Constructor Detail

CompEditor

public CompEditor(Comp root,
                  CartoFrame frame)

CompEditor

public CompEditor(Comp root,
                  CartoFrame frame,
                  boolean insert)
Method Detail

addButton

public javax.swing.AbstractButton addButton(java.lang.String iname,
                                            java.lang.String command,
                                            int mode)

addButton

public javax.swing.AbstractButton addButton(java.lang.String iname,
                                            java.lang.String command)

addButton

public javax.swing.JButton addButton(Library lib)

addButton

public javax.swing.JButton addButton()

insertButton

public void insertButton(javax.swing.AbstractButton button)

setMode

public void setMode(int mode)

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)

cleanup

void cleanup()
Overrides:
cleanup in class Editor