Class MapEdit

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--java.applet.Applet
                          |
                          +--javax.swing.JApplet
                                |
                                +--MapEdit
All Implemented Interfaces:
javax.accessibility.Accessible, dilewa.event.DErrorListener, dilewa.event.DUserListener, dilewa.event.DVariableListener, dilewa.event.DVariableLockListener, java.util.EventListener, java.awt.image.ImageObserver, java.awt.MenuContainer, javax.swing.RootPaneContainer, java.io.Serializable

public class MapEdit
extends javax.swing.JApplet
implements dilewa.event.DErrorListener, dilewa.event.DUserListener, dilewa.event.DVariableListener, dilewa.event.DVariableLockListener

See Also:
Serialized Form

Field Summary
 boolean actEdit
           
 int actHoleHeight
           
 int activeEditPanel
           
 int actWallType
           
 int actWallWidth
           
static int APP_SIZE_X
           
static int APP_SIZE_Y
           
static java.lang.String DEFAULT_INPUT_FILE
           
 javax.swing.JPanel[] editPanel
           
 javax.swing.JCheckBox checkBoxGrid
           
static int ID
           
 java.lang.String[] innerWalls
           
static int MAX_FLOORS
           
 NewFloorPanel newFloorPanel
           
 int numFloors
           
 java.lang.String[] outerWalls
           
 javax.swing.JRadioButton radioButtonBridge
           
 javax.swing.JRadioButton radioButtonText
           
 javax.swing.JRadioButton radioButtonWallArc
           
 javax.swing.JRadioButton radioButtonWallInner
           
 javax.swing.JRadioButton radioButtonWallOuter
           
 RemoveFloorPanel removeFloorPanel
           
static int SHAPE_ADD_OR_UPDATE
           
static int SHAPE_DELETE
           
 javax.swing.JTabbedPane tabbedPaneFloors
           
 javax.swing.JTextField textFieldText
           
 javax.swing.JTextField textFieldWallLength
           
 javax.swing.JTextField textFieldX
           
 javax.swing.JTextField textFieldX1
           
 javax.swing.JTextField textFieldX2
           
 javax.swing.JTextField textFieldY
           
 javax.swing.JTextField textFieldY1
           
 javax.swing.JTextField textFieldY2
           
 java.lang.String[] windows
           
 
Fields inherited from class javax.swing.JApplet
accessibleContext, rootPane, rootPaneCheckingEnabled
 
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
MapEdit()
          Creates new form MapEdit
 
Method Summary
 void error(dilewa.event.DErrorEvent e)
           
 void init()
           
 EditPanel newFloor()
          Creates new floor - 4 use when loading from XML
static java.lang.String parseArguments(java.lang.String[] args)
          Parse program parameters of the command line
 void start()
           
 void stop()
           
 void updateEnded(dilewa.event.DVariableEvent e)
           
 void updateParametersWall(Wall w)
           
 void updateStarted(dilewa.event.DVariableEvent e)
           
 void updateWallByDilewa(dilewa.client.DCVariable var)
           
 void updateWallOnDilewa(int ID, int x1, int y1, int x2, int y2, int type, int thickness, int state)
           
 void userEntered(dilewa.event.DUserEvent e)
           
 void userExited(dilewa.event.DUserEvent e)
           
 void variableLocked(dilewa.event.DVariableLockEvent e)
           
 void variableReleased(dilewa.event.DVariableLockEvent e)
           
 void variableUpdated(dilewa.event.DVariableEvent e)
           
 
Methods inherited from class javax.swing.JApplet
addImpl, createRootPane, getAccessibleContext, getContentPane, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isRootPaneCheckingEnabled, paramString, remove, setContentPane, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.applet.Applet
destroy, getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus
 
Methods inherited from class java.awt.Panel
addNotify
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, 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, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, removeAll, removeContainerListener, removeNotify, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, 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, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, checkImage, checkImage, 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, 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

MAX_FLOORS

public static final int MAX_FLOORS
See Also:
Constant Field Values

APP_SIZE_X

public static final int APP_SIZE_X
See Also:
Constant Field Values

APP_SIZE_Y

public static final int APP_SIZE_Y
See Also:
Constant Field Values

DEFAULT_INPUT_FILE

public static final java.lang.String DEFAULT_INPUT_FILE
See Also:
Constant Field Values

textFieldY1

public javax.swing.JTextField textFieldY1

textFieldText

public javax.swing.JTextField textFieldText

radioButtonWallOuter

public javax.swing.JRadioButton radioButtonWallOuter

textFieldY

public javax.swing.JTextField textFieldY

textFieldX2

public javax.swing.JTextField textFieldX2

checkBoxGrid

public javax.swing.JCheckBox checkBoxGrid

textFieldX

public javax.swing.JTextField textFieldX

radioButtonWallInner

public javax.swing.JRadioButton radioButtonWallInner

tabbedPaneFloors

public javax.swing.JTabbedPane tabbedPaneFloors

radioButtonWallArc

public javax.swing.JRadioButton radioButtonWallArc

radioButtonBridge

public javax.swing.JRadioButton radioButtonBridge

textFieldWallLength

public javax.swing.JTextField textFieldWallLength

radioButtonText

public javax.swing.JRadioButton radioButtonText

textFieldY2

public javax.swing.JTextField textFieldY2

textFieldX1

public javax.swing.JTextField textFieldX1

editPanel

public javax.swing.JPanel[] editPanel

activeEditPanel

public int activeEditPanel

numFloors

public int numFloors

actWallType

public int actWallType

actWallWidth

public int actWallWidth

actHoleHeight

public int actHoleHeight

actEdit

public boolean actEdit

removeFloorPanel

public RemoveFloorPanel removeFloorPanel

newFloorPanel

public NewFloorPanel newFloorPanel

outerWalls

public java.lang.String[] outerWalls

innerWalls

public java.lang.String[] innerWalls

windows

public java.lang.String[] windows

ID

public static int ID

SHAPE_DELETE

public static int SHAPE_DELETE

SHAPE_ADD_OR_UPDATE

public static int SHAPE_ADD_OR_UPDATE
Constructor Detail

MapEdit

public MapEdit()
Creates new form MapEdit

Method Detail

parseArguments

public static java.lang.String parseArguments(java.lang.String[] args)
Parse program parameters of the command line


newFloor

public EditPanel newFloor()
Creates new floor - 4 use when loading from XML


updateParametersWall

public void updateParametersWall(Wall w)

init

public void init()
Overrides:
init in class java.applet.Applet

start

public void start()
Overrides:
start in class java.applet.Applet

stop

public void stop()
Overrides:
stop in class java.applet.Applet

updateWallOnDilewa

public void updateWallOnDilewa(int ID,
                               int x1,
                               int y1,
                               int x2,
                               int y2,
                               int type,
                               int thickness,
                               int state)

variableUpdated

public void variableUpdated(dilewa.event.DVariableEvent e)
Specified by:
variableUpdated in interface dilewa.event.DVariableListener

updateWallByDilewa

public void updateWallByDilewa(dilewa.client.DCVariable var)

updateStarted

public void updateStarted(dilewa.event.DVariableEvent e)
Specified by:
updateStarted in interface dilewa.event.DVariableListener

updateEnded

public void updateEnded(dilewa.event.DVariableEvent e)
Specified by:
updateEnded in interface dilewa.event.DVariableListener

variableLocked

public void variableLocked(dilewa.event.DVariableLockEvent e)
Specified by:
variableLocked in interface dilewa.event.DVariableLockListener

variableReleased

public void variableReleased(dilewa.event.DVariableLockEvent e)
Specified by:
variableReleased in interface dilewa.event.DVariableLockListener

error

public void error(dilewa.event.DErrorEvent e)
Specified by:
error in interface dilewa.event.DErrorListener

userEntered

public void userEntered(dilewa.event.DUserEvent e)
Specified by:
userEntered in interface dilewa.event.DUserListener

userExited

public void userExited(dilewa.event.DUserEvent e)
Specified by:
userExited in interface dilewa.event.DUserListener