org.argosfields.battlefield
Class BattleFieldView

java.lang.Object
  extended byorg.eclipse.swt.widgets.Widget
      extended byorg.eclipse.swt.widgets.Control
          extended byorg.eclipse.swt.widgets.Scrollable
              extended byorg.eclipse.swt.widgets.Composite
                  extended byorg.eclipse.swt.widgets.Canvas
                      extended byorg.argosfields.battlefield.BattleFieldView
All Implemented Interfaces:
org.eclipse.swt.graphics.Drawable

public class BattleFieldView
extends org.eclipse.swt.widgets.Canvas

BattleFieldView.java

Version:
$Revision: 1.6 $ $Date: 2003/12/01 07:38:04 $
Author:
Xavier Cho

Field Summary
 
Fields inherited from class org.eclipse.swt.widgets.Composite
embeddedHandle
 
Fields inherited from class org.eclipse.swt.widgets.Widget
handle
 
Constructor Summary
BattleFieldView(org.eclipse.swt.widgets.Composite parent, int style)
           
 
Method Summary
 org.eclipse.swt.graphics.Point computeSize(int wHint, int hHint)
           
 BattleField getBattleField()
           
protected  org.eclipse.swt.graphics.Image getGrayMapImage()
           
protected  org.eclipse.swt.graphics.Image getMapImage()
           
 int getSelectedIndex()
           
 Unit getSelectedUnit()
           
 void setBattleField(BattleField field)
           
 void setSelectedIndex(int selectedIndex)
           
protected  void updateMapImages()
           
protected  void updateMapImages(int index)
           
 
Methods inherited from class org.eclipse.swt.widgets.Canvas
getCaret, scroll, setCaret, setFont
 
Methods inherited from class org.eclipse.swt.widgets.Composite
checkSubclass, computeSize, getChildren, getLayout, getTabList, layout, layout, setFocus, setLayout, setTabList
 
Methods inherited from class org.eclipse.swt.widgets.Scrollable
computeTrim, getBorderWidth, getClientArea, getHorizontalBar, getVerticalBar
 
Methods inherited from class org.eclipse.swt.widgets.Control
addControlListener, addFocusListener, addHelpListener, addKeyListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addPaintListener, addTraverseListener, forceFocus, getAccessible, getBackground, getBounds, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getParent, getShell, getSize, getToolTipText, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, redraw, redraw, removeControlListener, removeFocusListener, removeHelpListener, removeKeyListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removePaintListener, removeTraverseListener, setBackground, setBounds, setBounds, setCapture, setCursor, setEnabled, setForeground, setLayoutData, setLocation, setLocation, setMenu, setParent, setRedraw, setSize, setSize, setToolTipText, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, update
 
Methods inherited from class org.eclipse.swt.widgets.Widget
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, setData, setData, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BattleFieldView

public BattleFieldView(org.eclipse.swt.widgets.Composite parent,
                       int style)
Parameters:
parent -
style -
Method Detail

getSelectedUnit

public Unit getSelectedUnit()

getSelectedIndex

public int getSelectedIndex()

setSelectedIndex

public void setSelectedIndex(int selectedIndex)

getGrayMapImage

protected org.eclipse.swt.graphics.Image getGrayMapImage()
Returns:
Returns the grayMapImage.

getMapImage

protected org.eclipse.swt.graphics.Image getMapImage()
Returns:
Returns the mapImage.

getBattleField

public BattleField getBattleField()
Returns:

setBattleField

public void setBattleField(BattleField field)
Parameters:
field -

computeSize

public org.eclipse.swt.graphics.Point computeSize(int wHint,
                                                  int hHint)
See Also:
Control.computeSize(int, int)

updateMapImages

protected void updateMapImages()

updateMapImages

protected void updateMapImages(int index)


Copyright © Gnome Korea. All Rights Reserved.