Class SegEditor

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.JPanel
                          |
                          +--Editor
                                |
                                +--SegEditor
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.event.ActionListener, javax.swing.event.DocumentListener, java.util.EventListener, java.awt.image.ImageObserver, javax.swing.event.ListSelectionListener, java.awt.MenuContainer, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.io.Serializable

public class SegEditor
extends Editor
implements java.awt.event.MouseListener, java.awt.event.MouseMotionListener, javax.swing.event.ListSelectionListener, javax.swing.event.DocumentListener

See Also:
Serialized Form

Field Summary
static java.lang.String BOUNDARY
           
(package private)  javax.swing.JCheckBox boundarymodebox
           
static java.lang.String CHANGEIMAGE
           
static java.lang.String COOK
           
static java.lang.String DELETE
           
(package private) static int DELETEMODE
           
(package private)  javax.swing.JToggleButton deletemodebutton
           
static java.lang.String LOCATE
           
(package private) static int LOCATEMODE
           
(package private)  javax.swing.JToggleButton locatemodebutton
           
(package private)  int mode
           
(package private)  Dragable mousetarget
           
static java.lang.String MOVE
           
(package private) static int MOVEMODE
           
(package private)  javax.swing.JToggleButton movemodebutton
           
(package private)  SegPane pane
           
static java.lang.String READIMAGE
           
(package private)  javax.swing.JTextField scalefield
           
(package private)  Segment seg
           
(package private) static int SELECTMODE
           
static java.lang.String STATION
           
(package private)  javax.swing.JTextField stationfield
           
(package private)  javax.swing.JList stationlist
           
(package private)  javax.swing.JCheckBox stationmodebox
           
(package private)  java.util.Vector stationset
           
 ThreadMessage status
           
(package private)  javax.swing.JCheckBox transparentfield
           
static int TYPE
           
(package private)  javax.swing.JCheckBox verticalfield
           
(package private)  javax.swing.JScrollPane window
           
 
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
SegEditor(Segment seg, CartoFrame frame)
           
SegEditor(Segment seg, CartoFrame frame, boolean insert)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void changedUpdate(javax.swing.event.DocumentEvent e)
           
(package private)  void checkMarked()
           
 void cleanup()
           
 void fitScale()
           
 void init(Segment seg, CartoFrame frame)
           
 void insertUpdate(javax.swing.event.DocumentEvent e)
           
 boolean isDirty()
           
 void mouseClicked(java.awt.event.MouseEvent e)
           
 void mouseDragged(java.awt.event.MouseEvent e)
           
 void mouseEntered(java.awt.event.MouseEvent e)
           
 void mouseExited(java.awt.event.MouseEvent e)
           
 void mouseMoved(java.awt.event.MouseEvent e)
           
 void mousePressed(java.awt.event.MouseEvent e)
           
 void mouseReleased(java.awt.event.MouseEvent e)
           
 void removeUpdate(javax.swing.event.DocumentEvent e)
           
 void saveData()
           
 void select(Vertex v)
           
 void selectByLabel(java.lang.String lab)
           
 void valueChanged(javax.swing.event.ListSelectionEvent e)
           
 
Methods inherited from class Editor
addMenuItem, addMenuItem, findRefs
 
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

LOCATEMODE

static int LOCATEMODE

MOVEMODE

static int MOVEMODE

SELECTMODE

static int SELECTMODE

DELETEMODE

static int DELETEMODE

COOK

public static java.lang.String COOK

DELETE

public static java.lang.String DELETE

LOCATE

public static java.lang.String LOCATE

MOVE

public static java.lang.String MOVE

STATION

public static java.lang.String STATION

BOUNDARY

public static java.lang.String BOUNDARY

READIMAGE

public static java.lang.String READIMAGE

CHANGEIMAGE

public static java.lang.String CHANGEIMAGE

mode

int mode

pane

SegPane pane

seg

Segment seg

window

javax.swing.JScrollPane window

status

public ThreadMessage status

stationfield

javax.swing.JTextField stationfield

scalefield

javax.swing.JTextField scalefield

stationlist

javax.swing.JList stationlist

transparentfield

javax.swing.JCheckBox transparentfield

verticalfield

javax.swing.JCheckBox verticalfield

stationmodebox

javax.swing.JCheckBox stationmodebox

boundarymodebox

javax.swing.JCheckBox boundarymodebox

locatemodebutton

javax.swing.JToggleButton locatemodebutton

movemodebutton

javax.swing.JToggleButton movemodebutton

deletemodebutton

javax.swing.JToggleButton deletemodebutton

mousetarget

Dragable mousetarget

stationset

java.util.Vector stationset
Constructor Detail

SegEditor

public SegEditor(Segment seg,
                 CartoFrame frame)

SegEditor

public SegEditor(Segment seg,
                 CartoFrame frame,
                 boolean insert)
Method Detail

init

public void init(Segment seg,
                 CartoFrame frame)

fitScale

public void fitScale()

cleanup

public void cleanup()
Overrides:
cleanup in class Editor

isDirty

public boolean isDirty()
Overrides:
isDirty in class Editor

valueChanged

public void valueChanged(javax.swing.event.ListSelectionEvent e)
Specified by:
valueChanged in interface javax.swing.event.ListSelectionListener

insertUpdate

public void insertUpdate(javax.swing.event.DocumentEvent e)
Specified by:
insertUpdate in interface javax.swing.event.DocumentListener

removeUpdate

public void removeUpdate(javax.swing.event.DocumentEvent e)
Specified by:
removeUpdate in interface javax.swing.event.DocumentListener

changedUpdate

public void changedUpdate(javax.swing.event.DocumentEvent e)
Specified by:
changedUpdate in interface javax.swing.event.DocumentListener

saveData

public void saveData()
Overrides:
saveData in class Editor

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
Specified by:
mouseClicked in interface java.awt.event.MouseListener

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)
Specified by:
mouseEntered in interface java.awt.event.MouseListener

mouseExited

public void mouseExited(java.awt.event.MouseEvent e)
Specified by:
mouseExited in interface java.awt.event.MouseListener

mouseMoved

public void mouseMoved(java.awt.event.MouseEvent e)
Specified by:
mouseMoved in interface java.awt.event.MouseMotionListener

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent e)
Specified by:
mouseDragged in interface java.awt.event.MouseMotionListener

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Specified by:
mousePressed in interface java.awt.event.MouseListener

checkMarked

void checkMarked()

select

public void select(Vertex v)

selectByLabel

public void selectByLabel(java.lang.String lab)

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Specified by:
mouseReleased in interface java.awt.event.MouseListener