mdh.hephaestus2
Class Editor

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Window
                    |
                    +--java.awt.Frame
                          |
                          +--mdh.hephaestus2.gamelib.Application
                                |
                                +--mdh.hephaestus2.Editor
All Implemented Interfaces:
Accessible, ActionListener, EventListener, ImageObserver, ItemListener, KeyListener, MenuContainer, MouseListener, Serializable, WindowListener

public final class Editor
extends Application
implements ItemListener, MouseListener

The Hephaestus map editor. Run it from the command line with the heditor.sh/heditor.bat script.

Author:
Copyright © 2002 by Mark Hughes <kamikaze@kuoi.asui.uidaho.edu>
See Also:
Serialized Form

Field Summary
 
Fields inherited from class mdh.hephaestus2.gamelib.Application
ALT, CTRL, SHIFT
 
Fields inherited from class java.awt.Frame
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
 
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
Editor()
           
 
Method Summary
 void actionPerformed(ActionEvent ae)
          Handles action events from menus - users should not call this method!
 void clear()
           
 void doAbout()
           
 void doAddContents(String classname)
           
 void doAddTerrain()
           
 void doCopyContents()
           
 void doCutContents()
           
 void doDeleteTerrain()
           
 void doEditContents()
           
 void doEditMap()
           
 void doEditTerrain()
           
 void doHelp()
           
 void doLoad()
           
 void doLoad(File file)
           
 void doMoveMap(int dir)
           
 void doNew()
           
 void doPaste()
           
 void doSave()
           
 void itemStateChanged(ItemEvent ie)
           
static void main(String[] args)
           
 void mouseClicked(MouseEvent me)
           
 void mouseEntered(MouseEvent me)
           
 void mouseExited(MouseEvent me)
           
 void mousePressed(MouseEvent me)
           
 void mouseReleased(MouseEvent me)
           
 void selectGrid(int x, int y)
           
 void setGridTerrain(int x, int y, String tername)
           
 
Methods inherited from class mdh.hephaestus2.gamelib.Application
addHelpMenu, addMenu, addMenuItem, addMenuSeparator, alert, audioCache, bindKey, endMenus, fileDialog, getApplication, getAudioClip, getImage, getStatus, getVerifyQuit, imageCache, input, keyPressed, keyReleased, keyTyped, makeButton, makeChoice, makeList, makeTextField, makeTextField, makeWhitePanel, menu, playSound, quit, setScreen, setVerifyQuit, show, showError, showStatus, stopSounds, verifyQuit, windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowIconified, windowOpened
 
Methods inherited from class java.awt.Frame
addNotify, getAccessibleContext, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setIconImage, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, hide, isActive, isFocusableWindow, isFocusCycleRoot, isFocused, isShowing, pack, postEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationRelativeTo, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, remove, remove, removeAll, removeContainerListener, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, update, validate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, dispatchEvent, enable, enable, enableInputMethods, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.awt.MenuContainer
getFont, postEvent
 

Constructor Detail

Editor

public Editor()
       throws HephaestusException
Method Detail

main

public static void main(String[] args)

actionPerformed

public final void actionPerformed(ActionEvent ae)
Handles action events from menus - users should not call this method!

Specified by:
actionPerformed in interface ActionListener
Overrides:
actionPerformed in class Application
See Also:
ActionListener

clear

public void clear()

doAbout

public void doAbout()

doAddContents

public void doAddContents(String classname)

doAddTerrain

public void doAddTerrain()

doCopyContents

public void doCopyContents()

doCutContents

public void doCutContents()

doDeleteTerrain

public void doDeleteTerrain()

doEditContents

public void doEditContents()

doEditMap

public void doEditMap()

doEditTerrain

public void doEditTerrain()

doHelp

public void doHelp()

doLoad

public void doLoad()

doLoad

public void doLoad(File file)

doMoveMap

public void doMoveMap(int dir)

doNew

public void doNew()

doPaste

public void doPaste()

doSave

public void doSave()

itemStateChanged

public void itemStateChanged(ItemEvent ie)
Specified by:
itemStateChanged in interface ItemListener

mouseReleased

public void mouseReleased(MouseEvent me)
Specified by:
mouseReleased in interface MouseListener

mouseClicked

public void mouseClicked(MouseEvent me)
Specified by:
mouseClicked in interface MouseListener

mouseEntered

public void mouseEntered(MouseEvent me)
Specified by:
mouseEntered in interface MouseListener

mouseExited

public void mouseExited(MouseEvent me)
Specified by:
mouseExited in interface MouseListener

mousePressed

public void mousePressed(MouseEvent me)
Specified by:
mousePressed in interface MouseListener

selectGrid

public void selectGrid(int x,
                       int y)

setGridTerrain

public void setGridTerrain(int x,
                           int y,
                           String tername)