C D F G I M O S

C

close() - Static method in class Mosaic
Closes the Mosaic window.

D

delay(int) - Static method in class Mosaic
Inserts a pause into the excution of the program.

F

fill(Color) - Static method in class Mosaic
Set all rectangles in the grid to a specified color.
fill(int, int, int) - Static method in class Mosaic
Set all rectangles in the grid to a specified color.
fillRandomly() - Static method in class Mosaic
Sets each rectangle in the grid to its own randomly selected color.

G

getBlue(int, int) - Static method in class Mosaic
Get the blue component color of a specified rectangle in the grid.
getColor(int, int) - Static method in class Mosaic
Get the color of a specified rectangle in the grid.
getGreen(int, int) - Static method in class Mosaic
Get the green component color of a specified rectangle in the grid.
getRed(int, int) - Static method in class Mosaic
Get the red component color of a specified rectangle in the grid.

I

isOpen() - Static method in class Mosaic
Test whether the Mosaic window is currently open

M

Mosaic - class Mosaic.
The class Mosaic makes available a window made up of a grid of colored rectangles.
Mosaic() - Constructor for class Mosaic
 

O

open() - Static method in class Mosaic
Open a mosaic window with a 20-by-20 grid of squares, where each square is 15 pixels on a side.
open(int, int) - Static method in class Mosaic
Open a mosaic window with the specified numbers or rows and columns of squares, where each square is 15 pixels on a side.
open(int, int, int, int) - Static method in class Mosaic
Open a window that shows a mosaic with the specified number of rows and columns of rectangles.

S

setColor(int, int, Color) - Static method in class Mosaic
Set the color of a specified rectangle in the grid.
setColor(int, int, int, int, int) - Static method in class Mosaic
Set the color of a specified rectangle in the grid.
setTitle(String) - Static method in class Mosaic
Change the title displayed in the titlebar of the mosaic window.

C D F G I M O S