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
Goban()
-
actionMove(int, int)
- action move
actionPass()
- action pass
drawCoordinate(Graphics, int, int)
- draw x,y goban coordinates
drawCoordinates(Graphics)
- draw goban coordinates
drawCursor(Graphics, int, int)
- Draw one cursor
drawIntersection(Graphics, int, int)
- Draw one intersection
drawKeyboardCursor(Graphics, int, int)
- Draw keyboard cursor, call drawCursor at the end
drawLines(Graphics)
- draw goban lines
drawOshi(Graphics, int, int)
- draw one Oshi
drawOshis(Graphics)
- draw all the Oshis
drawStone(Graphics, Move)
- Draw one stone
drawStoneCursor(Graphics, int, int)
- Draw stone cursor, call drawCursor at the end
drawStones(Graphics)
- Draw all the stones
drawTerritories(Graphics)
- Draw territories
getLastX()
- get last X position
getLastY()
- get last Y position
getPreviousX()
- get previous X position
getPreviousY()
- get previous Y position
init(JavaGO, Game, int)
- init
keyDown(Event, int)
- keyDown
mouseDown(Event, int, int)
- calculation of move coordinates after mouse click
paint(Graphics)
- goban paint
posx(int)
- Give X position in pixel for X position on the Goban
posy(int)
- Give Y position in pixel for Y position on the Goban
repaintAll()
- repaint all the goban
resetKeyboardPosition()
- reset keyboard position
reSize()
- reSize goban
setNode(int)
- set node
update(Graphics)
- goban update
Goban
public Goban()
init
public void init(JavaGO param_javago,
Game param_game,
int param_size)
- init
reSize
public void reSize()
- reSize goban
paint
public void paint(Graphics g)
- goban paint
- Overrides:
- paint in class Canvas
update
public void update(Graphics g)
- goban update
- Overrides:
- update in class Component
repaintAll
public void repaintAll()
- repaint all the goban
mouseDown
public boolean mouseDown(Event e,
int x,
int y)
- calculation of move coordinates after mouse click
- Overrides:
- mouseDown in class Component
keyDown
public boolean keyDown(Event e,
int key)
- keyDown
- Overrides:
- keyDown in class Component
actionMove
public void actionMove(int x,
int y)
- action move
actionPass
public void actionPass()
- action pass
setNode
public void setNode(int n)
- set node
drawStones
public void drawStones(Graphics g)
- Draw all the stones
drawStone
public void drawStone(Graphics g,
Move m)
- Draw one stone
drawIntersection
public void drawIntersection(Graphics g,
int x,
int y)
- Draw one intersection
drawLines
public void drawLines(Graphics g)
- draw goban lines
drawCoordinates
public void drawCoordinates(Graphics g)
- draw goban coordinates
drawCoordinate
public void drawCoordinate(Graphics g,
int x,
int y)
- draw x,y goban coordinates
drawTerritories
public void drawTerritories(Graphics g)
- Draw territories
drawOshis
public void drawOshis(Graphics g)
- draw all the Oshis
drawOshi
public void drawOshi(Graphics g,
int x,
int y)
- draw one Oshi
drawCursor
public void drawCursor(Graphics g,
int x,
int y)
- Draw one cursor
drawStoneCursor
public void drawStoneCursor(Graphics g,
int x,
int y)
- Draw stone cursor, call drawCursor at the end
drawKeyboardCursor
public void drawKeyboardCursor(Graphics g,
int x,
int y)
- Draw keyboard cursor, call drawCursor at the end
posx
public int posx(int x)
- Give X position in pixel for X position on the Goban
posy
public int posy(int y)
- Give Y position in pixel for Y position on the Goban
getLastX
public int getLastX()
- get last X position
getLastY
public int getLastY()
- get last Y position
getPreviousX
public int getPreviousX()
- get previous X position
getPreviousY
public int getPreviousY()
- get previous Y position
resetKeyboardPosition
public void resetKeyboardPosition()
- reset keyboard position
All Packages Class Hierarchy This Package Previous Next Index