A C D F G H I L M N Q R S T U Z

A

attach(SquareBoard, boolean) - Method in class net.percederberg.tetris.Figure
Attaches the figure to a specified square board.

C

clear() - Method in class net.percederberg.tetris.SquareBoard
Clears the board, i.e. removes all the colored squares.
Configuration - class net.percederberg.tetris.Configuration.
A program configuration.
Configuration() - Constructor for class net.percederberg.tetris.Configuration
 

D

detach() - Method in class net.percederberg.tetris.Figure
Detaches this figure from its square board.

F

Figure - class net.percederberg.tetris.Figure.
A class representing a Tetris square figure.
Figure(int) - Constructor for class net.percederberg.tetris.Figure
Creates a new figure of one of the seven predefined types.

G

Game - class net.percederberg.tetris.Game.
The Tetris game.
Game() - Constructor for class net.percederberg.tetris.Game
Creates a new Tetris game.
Game(int, int) - Constructor for class net.percederberg.tetris.Game
Creates a new Tetris game.
getBoardHeight() - Method in class net.percederberg.tetris.SquareBoard
Returns the board height (in squares).
getBoardWidth() - Method in class net.percederberg.tetris.SquareBoard
Returns the board width (in squares).
getColor(String, String) - Static method in class net.percederberg.tetris.Configuration
Returns the color configured for the specified key.
getComponent() - Method in class net.percederberg.tetris.Game
Returns a new component that draws the game.
getComponent() - Method in class net.percederberg.tetris.SquareBoard
Returns a graphical component to draw the board.
getParameterInfo() - Method in class net.percederberg.tetris.Main
Returns information about the parameters that are understood by this applet.
getRemovedLines() - Method in class net.percederberg.tetris.SquareBoard
Returns the number of lines removed since the last clear().
getRotation() - Method in class net.percederberg.tetris.Figure
Returns the current figure rotation (orientation).
getSquareColor(int, int) - Method in class net.percederberg.tetris.SquareBoard
Returns the color of an individual square on the board.
getValue(String) - Static method in class net.percederberg.tetris.Configuration
Returns a configuration parameter value.
getValue(String, String) - Static method in class net.percederberg.tetris.Configuration
Returns a configuration parameter value.

H

hasFullLines() - Method in class net.percederberg.tetris.SquareBoard
Checks if the board contains any full lines.
hasLanded() - Method in class net.percederberg.tetris.Figure
Checks if the figure has landed.

I

init() - Method in class net.percederberg.tetris.Main
Initializes the game in applet mode.
isAllVisible() - Method in class net.percederberg.tetris.Figure
Checks if the figure is fully visible on the square board.
isAttached() - Method in class net.percederberg.tetris.Figure
Checks if this figure is attached to a square board.
isLineEmpty(int) - Method in class net.percederberg.tetris.SquareBoard
Checks if a specified line is empty, i.e. only contains empty squares.
isLineFull(int) - Method in class net.percederberg.tetris.SquareBoard
Checks if a specified line is full, i.e. only contains no empty squares.
isSquareEmpty(int, int) - Method in class net.percederberg.tetris.SquareBoard
Checks if a specified square is empty, i.e. if it is not marked with a color.

L

LEFT_ANGLE_FIGURE - Static variable in class net.percederberg.tetris.Figure
A figure constant used to create a figure forming a left angle.
LINE_FIGURE - Static variable in class net.percederberg.tetris.Figure
A figure constant used to create a figure forming a line.

M

Main - class net.percederberg.tetris.Main.
The main class of the Tetris game.
Main.COMClassObject - class net.percederberg.tetris.Main.COMClassObject.
A dummy COM object wrapper.
Main.COMClassObject() - Constructor for class net.percederberg.tetris.Main.COMClassObject
 
Main() - Constructor for class net.percederberg.tetris.Main
 
main(String[]) - Static method in class net.percederberg.tetris.Main
The stand-alone main routine.
MainBeanInfo - class net.percederberg.tetris.MainBeanInfo.
A simple bean info class.
MainBeanInfo() - Constructor for class net.percederberg.tetris.MainBeanInfo
 
moveAllWayDown() - Method in class net.percederberg.tetris.Figure
Moves the figure all the way down.
moveDown() - Method in class net.percederberg.tetris.Figure
Moves the figure one step down.
moveLeft() - Method in class net.percederberg.tetris.Figure
Moves the figure one step to the left.
moveRight() - Method in class net.percederberg.tetris.Figure
Moves the figure one step to the right.

N

net.percederberg.tetris - package net.percederberg.tetris
Provides the implementation of a Tetris game.

Q

quit() - Method in class net.percederberg.tetris.Game
Kills the game running thread and makes necessary clean-up.

R

removeFullLines() - Method in class net.percederberg.tetris.SquareBoard
Removes all full lines.
RIGHT_ANGLE_FIGURE - Static variable in class net.percederberg.tetris.Figure
A figure constant used to create a figure forming a right angle.
rotateClockwise() - Method in class net.percederberg.tetris.Figure
Rotates the figure clockwise.
rotateCounterClockwise() - Method in class net.percederberg.tetris.Figure
Rotates the figure counter-clockwise.
rotateRandom() - Method in class net.percederberg.tetris.Figure
Rotates the figure randomly.

S

S_FIGURE - Static variable in class net.percederberg.tetris.Figure
A figure constant used to create a figure forming an "S".
setMessage(String) - Method in class net.percederberg.tetris.SquareBoard
Sets a message to display on the square board.
setRotation(int) - Method in class net.percederberg.tetris.Figure
Sets the figure rotation (orientation).
setSquareColor(int, int, Color) - Method in class net.percederberg.tetris.SquareBoard
Changes the color of an individual square on the board.
setValue(String, String) - Static method in class net.percederberg.tetris.Configuration
Sets a configuration parameter value.
SQUARE_FIGURE - Static variable in class net.percederberg.tetris.Figure
A figure constant used to create a figure forming a square.
SquareBoard - class net.percederberg.tetris.SquareBoard.
A Tetris square board.
SquareBoard(int, int) - Constructor for class net.percederberg.tetris.SquareBoard
Creates a new square board with the specified size.
stop() - Method in class net.percederberg.tetris.Main
Stops the game in applet mode.

T

TRIANGLE_FIGURE - Static variable in class net.percederberg.tetris.Figure
A figure constant used to create a figure forming a triangle.

U

update() - Method in class net.percederberg.tetris.SquareBoard
Updates the graphical component.

Z

Z_FIGURE - Static variable in class net.percederberg.tetris.Figure
A figure constant used to create a figure forming a "Z".

A C D F G H I L M N Q R S T U Z