A C D E F G I J L M N O P R S U W

A

ADD_USER - Static variable in class ClientModel
 
addJDesktop(JDesktopPane) - Method in class LoginScreen
Add the log-in screen to the specified container
addJDesktop(JDesktopPane) - Method in class PlayScreen
Add the log-in screen to the specified container
addJDesktop(JDesktopPane) - Method in class WaitScreen
Add the log-in screen to the specified container
ANSWER - Static variable in class ClientModel
 
ASSISTANT - Static variable in class ClientModel
 

C

changeIllustrator() - Method in class DrawingPanel
 
CHAT - Static variable in class ClientModel
 
checkConnection() - Method in class ClientNetwork
Check whether connection has been established with the server
clearScreen() - Method in class DrawingCanvas
Clear the paint board of any drawing
ClientFrame - Class in <Unnamed>
This is the ClientFrame that controls all aspects of the application
ClientFrame() - Constructor for class ClientFrame
Construct and initialize ClientFrame
ClientModel - Class in <Unnamed>
This is the ClientModel that creates and starts the application
ClientModel() - Constructor for class ClientModel
 
ClientNetwork - Class in <Unnamed>
This is the network connection between server and the client It manages all outgoing and incoming messages to and from the server
ClientNetwork(String, String) - Constructor for class ClientNetwork
Creates new connection with the server
COLOR_CHANGE - Static variable in class ClientModel
 
connectToServer(String, String, String) - Method in class LoginScreen
Establish connection with the server
CREATE - Static variable in class ClientModel
 

D

DEFAULT_IP - Static variable in class ClientModel
 
DEFAULT_PORT - Static variable in class ClientModel
 
disableDrawing() - Method in class DrawingCanvas
Stop any further drawing by the user
displayLogin(JDesktopPane) - Method in class ClientFrame
Creates and displays the log-in screen
displayPlay(ClientFrame, ClientNetwork, int) - Method in class ClientFrame
Creates and displays the play screen
displayTopic(String) - Method in class DrawingPanel
Display the topic of the game
displayTopic(String) - Method in class PlayScreen
Display the game topic to draw on the canvas
displayWait(ClientFrame, ClientNetwork, String) - Method in class ClientFrame
Creates and displays the wait screen
DRAW - Static variable in class ClientModel
 
DrawingCanvas - Class in <Unnamed>
This is the paint board of the application.
DrawingCanvas(ClientNetwork, String, int) - Constructor for class DrawingCanvas
Construct and initialize the paint board
DrawingPanel - Class in <Unnamed>
Contains the paint board and the "art" tools to draw on the board
DrawingPanel(ClientFrame, PlayScreen, ClientNetwork) - Constructor for class DrawingPanel
Construct and initialize the drawing panel

E

enableChat(boolean) - Method in class PlayScreen
Enable or disable chatting option
END_SESSION - Static variable in class ClientModel
 
ERASE - Static variable in class ClientModel
 
ERROR - Static variable in class ClientModel
 
EXPIRE - Static variable in class DrawingPanel
 

F

findBlankSpot() - Method in class PlayScreen
Find where in the player display area is not occupied

G

GAME_INFO - Static variable in class ClientModel
 
getColor() - Method in class DrawingCanvas
Get current color used for the pen
getGameMode() - Method in class PlayScreen
Get the current game mode
getMsg() - Method in class ClientNetwork
Returns the message received from the server
getNumPlayers() - Method in class PlayScreen
Counts the total number of players currently in a game room
getPlayerList() - Method in class PlayScreen
Get a list of all the players current in the game room
getTimeElapsed() - Method in class DrawingPanel
Get the current time of game play
getTopic() - Method in class DrawingPanel
Get the current game topic
getUserName() - Method in class ClientFrame
Get the user name

I

ILLUSTRATOR - Static variable in class ClientModel
 
IN_WAITROOM - Static variable in class ClientModel
 
indicateIllustrator(String) - Method in class PlayScreen
Indicate the illustrator by highlighting the illustrator box

J

JOIN - Static variable in class ClientModel
 

L

LEAVE_GAME - Static variable in class ClientModel
 
LOGIN - Static variable in class ClientModel
 
LoginScreen - Class in <Unnamed>
Displays the log-in screen of the application and establishes connection with the server using the ClientNetwork
LoginScreen(ClientFrame) - Constructor for class LoginScreen
Construct and initialize the login screen
LOGOUT - Static variable in class ClientModel
 

M

main(String[]) - Static method in class ClientModel
 

N

NEW_ILLUSTRATOR - Static variable in class ClientModel
 
NEXT_STEP - Static variable in class ClientModel
 

O

ONE_SECOND - Static variable in class DrawingPanel
 

P

paintComponent(Graphics) - Method in class DrawingCanvas
Calls the UI delegate's paint method, if the UI delegate is non-null.
PlayScreen - Class in <Unnamed>
Displays the play screen of the application
PlayScreen(ClientFrame, ClientNetwork, int) - Constructor for class PlayScreen
Construct and initialize the play screen

R

REQUEST_TOPIC - Static variable in class ClientModel
 
ROOM_FULL - Static variable in class ClientModel
 
run() - Method in class ClientNetwork
Start the network connection

S

sendMsg(String) - Method in class ClientNetwork
Send message to server
setColor(Color) - Method in class DrawingCanvas
Change the color of the pen
setConnection(ClientNetwork) - Method in class ClientFrame
Establish observer connection with the client network class
setEraser(boolean) - Method in class DrawingCanvas
Set whether the eraser is selected or not
setGameMode(int) - Method in class ClientFrame
Change the game mode
setGameMode(int) - Method in class PlayScreen
Change the game mode
setSize(int) - Method in class DrawingCanvas
Set the size of the pen
SIZE_CHANGE - Static variable in class ClientModel
 
START - Static variable in class ClientModel
 
startDrawing() - Method in class DrawingCanvas
Allow the user to start drawing
startTimer() - Method in class DrawingPanel
Starts the timer - how long the game will last
startTimer() - Method in class PlayScreen
Starts the timer - how long the game will last
STOP - Static variable in class ClientModel
 
stopTimer() - Method in class DrawingPanel
Stops the timer - how long the game will last
stopTimer() - Method in class PlayScreen
Stops the timer - how long the game will last

U

update(Observable, Object) - Method in class ClientFrame
Handle messages sent by the server
update(Observable, Object) - Method in class DrawingCanvas
If you are an illustrator, draw by listening to the server for paint coordinates
updateDrawingPanel(ClientFrame, PlayScreen, ClientNetwork) - Method in class PlayScreen
Update the drawing panel of the play screen.
updatePlayerList(String, int) - Method in class PlayScreen
Update the display of the players in the game room
updatePlayRoomList(String) - Method in class WaitScreen
Displays and updates the list of rooms available to join
userTalked(String, String) - Method in class PlayScreen
Display user chat messages

W

WaitScreen - Class in <Unnamed>
Displays the wait screen of the application
WaitScreen(ClientFrame, ClientNetwork) - Constructor for class WaitScreen
Construct and initialize the wait screen

A C D E F G I J L M N O P R S U W