cad.simcad.pathfinding.ui.map
Class MapDisplayer

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--cad.simcad.pathfinding.ui.map.MapDisplayer
All Implemented Interfaces:
java.awt.image.ImageObserver, MapUIEventListener, java.awt.MenuContainer, java.io.Serializable
Direct Known Subclasses:
MapFieldPanel, WhitePaperMapPanel

public abstract class MapDisplayer
extends javax.swing.JComponent
implements MapUIEventListener

Abstract class for Map Displayers

Version:
1.0
Author:
Charles-Philip Bentley
See Also:
Serialized Form

Field Summary
 
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.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
MapDisplayer()
           
 
Method Summary
abstract  void blankMap()
           
abstract  void computePath()
           
abstract  int getBottomY()
           
abstract  java.awt.Dimension getMinimumSize()
           
abstract  int getMode()
           
abstract  java.awt.Dimension getPreferredSize()
           
abstract  int getRightX()
           
abstract  PathUser getSelectedPathUser()
           
abstract  Selection getSelection()
           
abstract  int getViewableHeight()
           
abstract  int getViewableWidth()
           
abstract  int getXCentered()
           
abstract  int getYCentered()
           
abstract  boolean isStartSet()
           
abstract  void newMapOpened(AbstractMap am)
           
abstract  void noticeModeChange(java.lang.String s)
           
abstract  void noticeMouseReleased()
           
abstract  void redoLastAction()
           
abstract  void resetAllCells()
           
abstract  void setDrawBorder(boolean b)
           
abstract  void setEditMode(int mode)
           
abstract  void setShowCoordinate(boolean b)
           
abstract  void setShowValues(boolean b)
           
abstract  void setSizeOfCells(int value)
           
abstract  boolean showCoordinate()
           
 
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, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getNextFocusableComponent, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, 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, updateUI
 
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
 

Constructor Detail

MapDisplayer

public MapDisplayer()
Method Detail

getRightX

public abstract int getRightX()

getBottomY

public abstract int getBottomY()

getXCentered

public abstract int getXCentered()

getYCentered

public abstract int getYCentered()

getViewableWidth

public abstract int getViewableWidth()

getViewableHeight

public abstract int getViewableHeight()

setDrawBorder

public abstract void setDrawBorder(boolean b)

setShowValues

public abstract void setShowValues(boolean b)

setSizeOfCells

public abstract void setSizeOfCells(int value)

setShowCoordinate

public abstract void setShowCoordinate(boolean b)

showCoordinate

public abstract boolean showCoordinate()

blankMap

public abstract void blankMap()

computePath

public abstract void computePath()

isStartSet

public abstract boolean isStartSet()

getSelectedPathUser

public abstract PathUser getSelectedPathUser()

getSelection

public abstract Selection getSelection()

noticeMouseReleased

public abstract void noticeMouseReleased()

getMode

public abstract int getMode()

setEditMode

public abstract void setEditMode(int mode)

noticeModeChange

public abstract void noticeModeChange(java.lang.String s)

getPreferredSize

public abstract java.awt.Dimension getPreferredSize()
Overrides:
getPreferredSize in class javax.swing.JComponent

getMinimumSize

public abstract java.awt.Dimension getMinimumSize()
Overrides:
getMinimumSize in class javax.swing.JComponent

resetAllCells

public abstract void resetAllCells()

newMapOpened

public abstract void newMapOpened(AbstractMap am)
Specified by:
newMapOpened in interface MapUIEventListener

redoLastAction

public abstract void redoLastAction()

Logo

With the help of www.sourceforge.net and www.info.ucl.ac.be