|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
civquest.swing.MapViewComponent
civquest.swing.quadmap.QuadMap
Nested Class Summary |
Nested classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary | |
protected civquest.swing.CivQuest |
owner
|
Fields inherited from class civquest.swing.MapViewComponent |
arrayHeight, arrayWidth, functionManager, guiregistry, mapData, mapHeight, mapWidth, positionHelp, tileLoader, workingField |
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 | |
QuadMap(civquest.swing.CivQuest owner,
MapData newMapData,
civquest.swing.TileLoader tileLoader,
Registry registry,
int type,
javax.swing.JScrollPane newScrollPane,
civquest.swing.GUIState guiState)
|
Method Summary | |
void |
fieldChanged(FieldChange fieldChange)
|
void |
fieldClicked(Field f)
|
javax.swing.Action |
getAction(java.lang.String name)
|
MovePath[] |
getDisplayedMovePaths()
|
civquest.swing.GUIState |
getGUIState()
|
MapData |
getMapData()
|
java.util.Iterator |
getMarkedFieldsIterator()
|
java.util.Iterator |
getMarkedUnitsIterator()
|
Coordinate |
getMouseCoordinate()
|
Field |
getMousePointedField()
Returns a reference to the Field the mouse points to at the moment or null if the mouse points to no Field. |
Properties |
getProperties()
|
Coordinate |
getShowPosition()
|
Coordinate |
getShowSize()
|
UnitMover |
getUnitMover()
|
Coordinate |
getViewportPosition()
|
Coordinate |
getViewportSize()
|
void |
guiChanged(GUIChange change)
|
boolean |
isUnitMarked(Unit unit)
|
boolean |
markField(Coordinate coord)
|
boolean |
markUnit(long id)
|
void |
paintComponent(java.awt.Graphics graphics)
|
void |
repaintChildFieldView(FieldView fieldView)
Causes repainting of the given child-fieldView of this FieldViewManager. |
void |
setFunctionActions()
|
void |
setSensitiveAreaEnabled(boolean sensitiveAreaEnabled)
|
boolean |
setWFByKeyboard()
|
boolean |
setWFByMouse()
|
void |
setXScrollDirection(int xScrollDirection)
|
void |
setYScrollDirection(int yScrollDirection)
|
void |
unitChanged(UnitChange unitChange)
|
void |
unmarkAllFields()
|
void |
unmarkAllUnits()
|
void |
unmarkField(Coordinate coord)
|
void |
unmarkUnit(long id)
|
void |
updateScrollTimer()
|
Methods inherited from class civquest.swing.MapViewComponent |
getCivQuestComponent, getFunctionManager, getWorkingField, repaintMap, setMapData, setPositionHelp, setWorkingField |
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, getMinimumSize, getNextFocusableComponent, getPreferredSize, 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, 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 |
Field Detail |
protected civquest.swing.CivQuest owner
Constructor Detail |
public QuadMap(civquest.swing.CivQuest owner, MapData newMapData, civquest.swing.TileLoader tileLoader, Registry registry, int type, javax.swing.JScrollPane newScrollPane, civquest.swing.GUIState guiState)
Method Detail |
public void setSensitiveAreaEnabled(boolean sensitiveAreaEnabled)
public void setXScrollDirection(int xScrollDirection)
public void setYScrollDirection(int yScrollDirection)
public void updateScrollTimer()
public Coordinate getMouseCoordinate()
public Field getMousePointedField()
public MapData getMapData()
public Properties getProperties()
public Coordinate getViewportPosition()
public Coordinate getViewportSize()
public Coordinate getShowPosition()
public Coordinate getShowSize()
public void fieldClicked(Field f)
public void paintComponent(java.awt.Graphics graphics)
public MovePath[] getDisplayedMovePaths()
public UnitMover getUnitMover()
public boolean markField(Coordinate coord)
public void unmarkField(Coordinate coord)
public void unmarkAllFields()
public java.util.Iterator getMarkedFieldsIterator()
public boolean markUnit(long id)
public void unmarkUnit(long id)
public void unmarkAllUnits()
public boolean isUnitMarked(Unit unit)
public java.util.Iterator getMarkedUnitsIterator()
public void fieldChanged(FieldChange fieldChange)
fieldChanged
in interface FieldChangeListener
public void unitChanged(UnitChange unitChange)
unitChanged
in interface UnitChangeListener
unitChange
- public void guiChanged(GUIChange change)
guiChanged
in interface GUIChangeListener
change
- public void repaintChildFieldView(FieldView fieldView)
FieldViewManager
repaintChildFieldView
in interface FieldViewManager
fieldView
- this fieldView will be repainted; has to be child of
this FieldViewManager-objectpublic void setFunctionActions()
setFunctionActions
in interface civquest.swing.CivQuestComponent
public javax.swing.Action getAction(java.lang.String name)
getAction
in interface civquest.swing.CivQuestComponent
public civquest.swing.GUIState getGUIState()
public boolean setWFByMouse()
public boolean setWFByKeyboard()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |