ant.debug
Class MyCanvas

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Canvas
          extended byant.debug.MyCanvas
All Implemented Interfaces:
javax.accessibility.Accessible, Constants, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable

class MyCanvas
extends java.awt.Canvas
implements Constants


Nested Class Summary
 
Nested classes inherited from class java.awt.Canvas
java.awt.Canvas.AccessibleAWTCanvas
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
(package private)  java.awt.image.BufferedImage background
           
static int BLACK_ANT
           
(package private)  java.awt.image.BufferedImage black_ant_direction0
           
(package private)  java.awt.image.BufferedImage black_ant_direction0food
           
(package private)  java.awt.image.BufferedImage black_ant_direction1
           
(package private)  java.awt.image.BufferedImage black_ant_direction1food
           
(package private)  java.awt.image.BufferedImage black_ant_direction2
           
(package private)  java.awt.image.BufferedImage black_ant_direction2food
           
(package private)  java.awt.image.BufferedImage black_ant_direction3
           
(package private)  java.awt.image.BufferedImage black_ant_direction3food
           
(package private)  java.awt.image.BufferedImage black_ant_direction4
           
(package private)  java.awt.image.BufferedImage black_ant_direction4food
           
(package private)  java.awt.image.BufferedImage black_ant_direction5
           
(package private)  java.awt.image.BufferedImage black_ant_direction5food
           
static int BLACK_ANT_HILL
           
static int FREE
           
(package private)  java.awt.Graphics2D g2D
           
(package private)  int lastRound
           
static int MARKER_BLACK_0
           
static int MARKER_BLACK_1
           
static int MARKER_BLACK_2
           
static int MARKER_BLACK_3
           
static int MARKER_BLACK_4
           
static int MARKER_BLACK_5
           
static int MARKER_RED_0
           
static int MARKER_RED_1
           
static int MARKER_RED_2
           
static int MARKER_RED_3
           
static int MARKER_RED_4
           
static int MARKER_RED_5
           
(package private)  AntDebugger master
           
static int OPTION_MARKER_3C
           
static int OPTION_MARKER_BIT
           
static int OPTION_MARKER_FM
           
(package private)  java.awt.image.BufferedImage outPutImage
           
static int PIX_LENGTH
           
static int RED_ANT
           
(package private)  java.awt.image.BufferedImage red_ant_direction0
           
(package private)  java.awt.image.BufferedImage red_ant_direction0food
           
(package private)  java.awt.image.BufferedImage red_ant_direction1
           
(package private)  java.awt.image.BufferedImage red_ant_direction1food
           
(package private)  java.awt.image.BufferedImage red_ant_direction2
           
(package private)  java.awt.image.BufferedImage red_ant_direction2food
           
(package private)  java.awt.image.BufferedImage red_ant_direction3
           
(package private)  java.awt.image.BufferedImage red_ant_direction3food
           
(package private)  java.awt.image.BufferedImage red_ant_direction4
           
(package private)  java.awt.image.BufferedImage red_ant_direction4food
           
(package private)  java.awt.image.BufferedImage red_ant_direction5
           
(package private)  java.awt.image.BufferedImage red_ant_direction5food
           
static int RED_ANT_HILL
           
static int ROCK
           
(package private)  java.util.Iterator rounds_it
           
static int WITH_FOOD
           
(package private)  AntWorld world
           
 
Fields inherited from class java.awt.Canvas
 
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
MyCanvas(AntWorld world, AntDebugger master)
           
 
Method Summary
static java.awt.image.BufferedImage getIcon(java.lang.String name)
           
 void init()
           
 void paint(java.awt.Graphics g)
           
 void paintBackground(java.awt.Graphics2D g2D)
           
 void showRound(int position)
           
 void update(java.awt.Graphics g)
           
 
Methods inherited from class java.awt.Canvas
addNotify, createBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategy
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

world

AntWorld world

red_ant_direction0

java.awt.image.BufferedImage red_ant_direction0

red_ant_direction1

java.awt.image.BufferedImage red_ant_direction1

red_ant_direction2

java.awt.image.BufferedImage red_ant_direction2

red_ant_direction3

java.awt.image.BufferedImage red_ant_direction3

red_ant_direction4

java.awt.image.BufferedImage red_ant_direction4

red_ant_direction5

java.awt.image.BufferedImage red_ant_direction5

black_ant_direction0

java.awt.image.BufferedImage black_ant_direction0

black_ant_direction1

java.awt.image.BufferedImage black_ant_direction1

black_ant_direction2

java.awt.image.BufferedImage black_ant_direction2

black_ant_direction3

java.awt.image.BufferedImage black_ant_direction3

black_ant_direction4

java.awt.image.BufferedImage black_ant_direction4

black_ant_direction5

java.awt.image.BufferedImage black_ant_direction5

red_ant_direction0food

java.awt.image.BufferedImage red_ant_direction0food

red_ant_direction1food

java.awt.image.BufferedImage red_ant_direction1food

red_ant_direction2food

java.awt.image.BufferedImage red_ant_direction2food

red_ant_direction3food

java.awt.image.BufferedImage red_ant_direction3food

red_ant_direction4food

java.awt.image.BufferedImage red_ant_direction4food

red_ant_direction5food

java.awt.image.BufferedImage red_ant_direction5food

black_ant_direction0food

java.awt.image.BufferedImage black_ant_direction0food

black_ant_direction1food

java.awt.image.BufferedImage black_ant_direction1food

black_ant_direction2food

java.awt.image.BufferedImage black_ant_direction2food

black_ant_direction3food

java.awt.image.BufferedImage black_ant_direction3food

black_ant_direction4food

java.awt.image.BufferedImage black_ant_direction4food

black_ant_direction5food

java.awt.image.BufferedImage black_ant_direction5food

outPutImage

java.awt.image.BufferedImage outPutImage

g2D

java.awt.Graphics2D g2D

master

AntDebugger master

background

java.awt.image.BufferedImage background

rounds_it

java.util.Iterator rounds_it

lastRound

int lastRound

MARKER_RED_0

public static final int MARKER_RED_0
See Also:
Constant Field Values

MARKER_RED_1

public static final int MARKER_RED_1
See Also:
Constant Field Values

MARKER_RED_2

public static final int MARKER_RED_2
See Also:
Constant Field Values

MARKER_RED_3

public static final int MARKER_RED_3
See Also:
Constant Field Values

MARKER_RED_4

public static final int MARKER_RED_4
See Also:
Constant Field Values

MARKER_RED_5

public static final int MARKER_RED_5
See Also:
Constant Field Values

MARKER_BLACK_0

public static final int MARKER_BLACK_0
See Also:
Constant Field Values

MARKER_BLACK_1

public static final int MARKER_BLACK_1
See Also:
Constant Field Values

MARKER_BLACK_2

public static final int MARKER_BLACK_2
See Also:
Constant Field Values

MARKER_BLACK_3

public static final int MARKER_BLACK_3
See Also:
Constant Field Values

MARKER_BLACK_4

public static final int MARKER_BLACK_4
See Also:
Constant Field Values

MARKER_BLACK_5

public static final int MARKER_BLACK_5
See Also:
Constant Field Values

RED_ANT

public static final int RED_ANT
See Also:
Constant Field Values

BLACK_ANT

public static final int BLACK_ANT
See Also:
Constant Field Values

WITH_FOOD

public static final int WITH_FOOD
See Also:
Constant Field Values

FREE

public static final int FREE
See Also:
Constant Field Values

RED_ANT_HILL

public static final int RED_ANT_HILL
See Also:
Constant Field Values

BLACK_ANT_HILL

public static final int BLACK_ANT_HILL
See Also:
Constant Field Values

ROCK

public static final int ROCK
See Also:
Constant Field Values

PIX_LENGTH

public static final int PIX_LENGTH
See Also:
Constant Field Values

OPTION_MARKER_BIT

public static final int OPTION_MARKER_BIT
See Also:
Constant Field Values

OPTION_MARKER_3C

public static final int OPTION_MARKER_3C
See Also:
Constant Field Values

OPTION_MARKER_FM

public static final int OPTION_MARKER_FM
See Also:
Constant Field Values
Constructor Detail

MyCanvas

public MyCanvas(AntWorld world,
                AntDebugger master)
         throws java.lang.Exception
Method Detail

getIcon

public static java.awt.image.BufferedImage getIcon(java.lang.String name)
                                            throws java.io.IOException
Throws:
java.io.IOException

paintBackground

public void paintBackground(java.awt.Graphics2D g2D)

init

public void init()

showRound

public void showRound(int position)

update

public void update(java.awt.Graphics g)

paint

public void paint(java.awt.Graphics g)