Package
Class
Use
Tree
Deprecated
Index
Help
PREV LETTER
NEXT LETTER
FRAMES
NO FRAMES
All Classes
B
C
D
G
I
M
P
R
S
T
U
G
getBoard()
- Method in class
Piece
Returns the Board on which this Piece currently resides; can be
null
.
getColumn()
- Method in class
Piece
Returns the column that this piece is in, or -1 if this piece is not on the board.
getColumns()
- Method in class
Board
Returns the number of columns in this Board.
getJPanel()
- Method in class
Board
Returns the JPanel on which this board is displayed.
getPiece(int, int)
- Method in class
Board
Returns the topmost piece at the given row and column in this Board, or null if the given location is empty.
getPieces(int, int)
- Method in class
Board
Returns a (possibly empty) Stack of all the pieces in the given position.
getRow()
- Method in class
Piece
Returns the row that this piece is in, or -1 if this piece is not on the board.
getRows()
- Method in class
Board
Returns the number of rows in this Board.
getSelectedColumn()
- Method in class
Board
Returns the column number (counting from zero) of the currently selected square, or -1 if none is selected.
getSelectedPiece()
- Method in class
Board
Returns the currently selected Piece, or
null
if no Piece has been selected on this Board.
getSelectedRow()
- Method in class
Board
Returns the row number (counting from zero) of the currently selected square, or -1 if none is selected.
getSpeed()
- Method in class
Board
Returns the default speed (in squares per second) of pieces on this board.
getSpeed()
- Method in class
Piece
Get the speed (in pixels/redraw) at which this piece will move.
Package
Class
Use
Tree
Deprecated
Index
Help
PREV LETTER
NEXT LETTER
FRAMES
NO FRAMES
All Classes
B
C
D
G
I
M
P
R
S
T
U