All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Class JavaGO.Goban

java.lang.Object
    |
    +----java.awt.Component
            |
            +----java.awt.Canvas
                    |
                    +----JavaGO.Goban

public class Goban
extends Canvas
implements Constants
Goban class


Constructor Index

 o Goban()

Method Index

 o actionMove(int, int)
action move
 o actionPass()
action pass
 o drawCoordinate(Graphics, int, int)
draw x,y goban coordinates
 o drawCoordinates(Graphics)
draw goban coordinates
 o drawCursor(Graphics, int, int)
Draw one cursor
 o drawIntersection(Graphics, int, int)
Draw one intersection
 o drawKeyboardCursor(Graphics, int, int)
Draw keyboard cursor, call drawCursor at the end
 o drawLines(Graphics)
draw goban lines
 o drawOshi(Graphics, int, int)
draw one Oshi
 o drawOshis(Graphics)
draw all the Oshis
 o drawStone(Graphics, Move)
Draw one stone
 o drawStoneCursor(Graphics, int, int)
Draw stone cursor, call drawCursor at the end
 o drawStones(Graphics)
Draw all the stones
 o drawTerritories(Graphics)
Draw territories
 o getLastX()
get last X position
 o getLastY()
get last Y position
 o getPreviousX()
get previous X position
 o getPreviousY()
get previous Y position
 o init(JavaGO, Game, int)
init
 o keyDown(Event, int)
keyDown
 o mouseDown(Event, int, int)
calculation of move coordinates after mouse click
 o paint(Graphics)
goban paint
 o posx(int)
Give X position in pixel for X position on the Goban
 o posy(int)
Give Y position in pixel for Y position on the Goban
 o repaintAll()
repaint all the goban
 o resetKeyboardPosition()
reset keyboard position
 o reSize()
reSize goban
 o setNode(int)
set node
 o update(Graphics)
goban update

Constructors

 o Goban
public Goban()

Methods

 o init
public void init(JavaGO param_javago,
                 Game param_game,
                 int param_size)
init

 o reSize
public void reSize()
reSize goban

 o paint
public void paint(Graphics g)
goban paint

Overrides:
paint in class Canvas
 o update
public void update(Graphics g)
goban update

Overrides:
update in class Component
 o repaintAll
public void repaintAll()
repaint all the goban

 o mouseDown
public boolean mouseDown(Event e,
                         int x,
                         int y)
calculation of move coordinates after mouse click

Overrides:
mouseDown in class Component
 o keyDown
public boolean keyDown(Event e,
                       int key)
keyDown

Overrides:
keyDown in class Component
 o actionMove
public void actionMove(int x,
                       int y)
action move

 o actionPass
public void actionPass()
action pass

 o setNode
public void setNode(int n)
set node

 o drawStones
public void drawStones(Graphics g)
Draw all the stones

 o drawStone
public void drawStone(Graphics g,
                      Move m)
Draw one stone

 o drawIntersection
public void drawIntersection(Graphics g,
                             int x,
                             int y)
Draw one intersection

 o drawLines
public void drawLines(Graphics g)
draw goban lines

 o drawCoordinates
public void drawCoordinates(Graphics g)
draw goban coordinates

 o drawCoordinate
public void drawCoordinate(Graphics g,
                           int x,
                           int y)
draw x,y goban coordinates

 o drawTerritories
public void drawTerritories(Graphics g)
Draw territories

 o drawOshis
public void drawOshis(Graphics g)
draw all the Oshis

 o drawOshi
public void drawOshi(Graphics g,
                     int x,
                     int y)
draw one Oshi

 o drawCursor
public void drawCursor(Graphics g,
                       int x,
                       int y)
Draw one cursor

 o drawStoneCursor
public void drawStoneCursor(Graphics g,
                            int x,
                            int y)
Draw stone cursor, call drawCursor at the end

 o drawKeyboardCursor
public void drawKeyboardCursor(Graphics g,
                               int x,
                               int y)
Draw keyboard cursor, call drawCursor at the end

 o posx
public int posx(int x)
Give X position in pixel for X position on the Goban

 o posy
public int posy(int y)
Give Y position in pixel for Y position on the Goban

 o getLastX
public int getLastX()
get last X position

 o getLastY
public int getLastY()
get last Y position

 o getPreviousX
public int getPreviousX()
get previous X position

 o getPreviousY
public int getPreviousY()
get previous Y position

 o resetKeyboardPosition
public void resetKeyboardPosition()
reset keyboard position


All Packages  Class Hierarchy  This Package  Previous  Next  Index