Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
A
B
C
D
E
F
G
H
I
L
M
N
P
Q
R
S
T
U
W
X
Y
A
accept(File)
- Method in class client.
ExtensionFileFilter
Looks at a file after Accept has been pressed
actionPerformed(ActionEvent)
- Method in class client.
FishCreatorFrame
Listens for events from the button panel.
addClient(ObjectOutputStream)
- Method in class server.
PulseServer
this will add a client to send dater to
addExtension(String)
- Method in class client.
ExtensionFileFilter
Adds the given extension to the filter to the list.
appendMessage(String)
- Method in class server.
FishMail
this will add a message to the mail
aroundMe
- Variable in class server.
ServerInfo
B
BackingStore
- class client.
BackingStore
.
Defines the offscreen buffer used in client.DoubleBufferedContainer.
BackingStore(Component)
- Constructor for class client.
BackingStore
Constructor
Bitmap
- class server.
Bitmap
.
This is a class used as a wrapper around Image objects.
Bitmap(Image)
- Constructor for class server.
Bitmap
constructor of Bitmap
blitBackgroundToScreen(Rectangle)
- Method in class client.
DoubleBufferedContainer
Does the same thing as blitBackGroundToWorkplace( Rectangle r ).
blitBackgroundToWorkplace()
- Method in class client.
DoubleBufferedContainer
Blits the entire backingstore to the front buffer
blitBackgroundToWorkplace(Rectangle)
- Method in class client.
DoubleBufferedContainer
Blits the specified rectangle to the front buffer.
blitTo(Graphics)
- Method in class client.
BackingStore
Blits the offscreen buffer to the front buffer.
blitTo(Graphics, Rectangle)
- Method in class client.
BackingStore
Blits a portion of the offscreen buffer to the front buffer.
blitTo(Image)
- Method in class client.
BackingStore
Blits the offscreen buffer to the front buffer.
blitTo(Image, Rectangle)
- Method in class client.
BackingStore
Blits a portion of the offscreen buffer to the front buffer.
blitWorkplaceToScreen()
- Method in class client.
DoubleBufferedContainer
Does the same thing as blitBackgroundtoWorkplace().
blitWorkplaceToScreen(Rectangle)
- Method in class client.
DoubleBufferedContainer
Does the same thing as blitBackGroundToWorkplace( Rectangle r ).
C
client
- package client
clientCount()
- Method in class server.
Server
this will return the count of clients
close()
- Method in class server.
FishTankServerClientManager
close this connection and kill this thread
componentResized(ComponentEvent)
- Method in class client.
BackingStore
Recreates the backingstore if any component on it was resized.
count()
- Method in class server.
PulseServer
this will return the client count
D
DoubleBufferedContainer
- class client.
DoubleBufferedContainer
.
A double buffered container.
DoubleBufferedContainer()
- Constructor for class client.
DoubleBufferedContainer
Creates an empty DoubleBufferedContainer.
DoubleBufferedContainer(Image)
- Constructor for class client.
DoubleBufferedContainer
Creates a DoubleBufferedContainer with the specified background image.
down()
- Method in class server.
ServerSurround
the server that is below
E
eraseComponent(Component)
- Method in class client.
DoubleBufferedContainer
Deletes the specified component as soon as possible.
eraseComponent(Component, boolean)
- Method in class client.
DoubleBufferedContainer
Deletes the specified component.
ExtensionFileFilter
- class client.
ExtensionFileFilter
.
Filters out files by extension, used with JFileChooser.
ExtensionFileFilter()
- Constructor for class client.
ExtensionFileFilter
Constructs an ExtensionFileFilter with no filter
ExtensionFileFilter(String)
- Constructor for class client.
ExtensionFileFilter
Constructs an ExtensionFileFilter with the specified filter.
ExtensionFileFilter(String[])
- Constructor for class client.
ExtensionFileFilter
Constructs an ExtensionFileFilter with more than one filter.
ExtensionFileFilter(String[], String)
- Constructor for class client.
ExtensionFileFilter
Constructs an ExtensionFileFilter with more than one filter and one description.
ExtensionFileFilter(String, String)
- Constructor for class client.
ExtensionFileFilter
Constructs an ExtensionFileFilter with the specified filter and description.
F
Fish
- class server.
Fish
.
This is an object representing a fish that is to be passed between servers.
Fish(Image, String, String)
- Constructor for class server.
Fish
constructor for Fish
FishCreatorFrame
- class client.
FishCreatorFrame
.
Allows the user to create fish and add them to the tank.
FishCreatorFrame(ObjectInputStream, ObjectOutputStream)
- Constructor for class client.
FishCreatorFrame
Creates a FishCreatorFrame that uses the specified object input and output streams.
fishID
- Variable in class server.
FishPOS
FishMail
- class server.
FishMail
.
This is a class that will act as an e-mail for the fish.
FishMail(String)
- Constructor for class server.
FishMail
Constructor for FishMail
FishPanel
- class client.
FishPanel
.
This panel contains the DoubleBufferedContainer
FishPanel(Vector, DoubleBufferedContainer)
- Constructor for class client.
FishPanel
Creates a new FishPanel
FishPOS
- class server.
FishPOS
.
simple data class that contains the id and x,y of the fish
FishPOS(String, int, int)
- Constructor for class server.
FishPOS
constructor of FishPOS
FishTankFrame
- class client.
FishTankFrame
.
FishTankFrame(String)
- Constructor for class client.
FishTankFrame
FishTankServerClientManager
- class server.
FishTankServerClientManager
.
Thread that manages a connection to the server.
FishTankServerClientManager(Socket, ThreadGroup, ServerInfo, Vector, ServerStatPanel, PulseServer)
- Constructor for class server.
FishTankServerClientManager
constructor for FishTankClientManager.
G
getBackgroundBuffer()
- Method in class client.
DoubleBufferedContainer
Returns an Image representing the back buffer.
getBackgroundGraphics()
- Method in class client.
DoubleBufferedContainer
Returns the graphics context of the back buffer.
getComponent()
- Method in class client.
BackingStore
Returns the component on the backingstore.
getDescription()
- Method in class client.
ExtensionFileFilter
Returns the description.
getExtension(File)
- Method in class client.
ExtensionFileFilter
Returns a the extension on the given file
getFish()
- Method in class server.
FishTankServerClientManager
send the vector of fish to the client
getFishID()
- Method in class server.
Fish
gets the Fish's ID
getGraphics()
- Method in class client.
BackingStore
Returns the offscreen buffers' graphics context.
getImage()
- Method in class client.
BackingStore
Returns an image of the offscreen buffer.
getImage()
- Method in class server.
Fish
gets the image of the fish
getImage()
- Method in class server.
Bitmap
this is used to get the Image that was wrapped
getMail()
- Method in class server.
Fish
this will return the mail that needs to be sent for this fish
getPOS()
- Method in class server.
Fish
this returns the positional data of the fish
getPreferredSize()
- Method in class client.
Lightweight
Returns the Dimensions of the Lightweight.
getStat()
- Method in class server.
FishTankServerClientManager
send the statistics panel to the client
getWorkplaceBuffer()
- Method in class client.
DoubleBufferedContainer
Returns an Image representing the front buffer.
getWorkplaceGraphics()
- Method in class client.
DoubleBufferedContainer
Returns the graphics context of the front buffer.
H
hostname
- Variable in class server.
ServerInfo
I
id
- Variable in class client.
Lightweight
initialize()
- Method in class server.
ServerInfo
this will initialize all the values from the 'server.ini' file
isBeingDragged()
- Method in class client.
Lightweight
Returns true or false based on whether the Lightweight is currently being dragged.
isEqual(ServerInfo)
- Method in class server.
ServerInfo
is this ServerInfo equal to another one
isExtensionListInDescription()
- Method in class client.
ExtensionFileFilter
Returns true or false based on whether or not the extensions show in the file chooser.
L
left()
- Method in class server.
ServerSurround
the server that is to the left
Lightweight
- class client.
Lightweight
.
Defines a Lightweight Component which can be drawn on a DoubleBufferedContainer.
Lightweight()
- Constructor for class client.
Lightweight
Creates a Lightweight with no image.
Lightweight(Fish)
- Constructor for class client.
Lightweight
Creates a Lightweight from the specified Fish object.
Lightweight(Image)
- Constructor for class client.
Lightweight
Creates a Lightweight with the specified Image.
Lightweight(Image, boolean)
- Constructor for class client.
Lightweight
Creates a Lightweight with the specified Image which can be dragged with the mouse.
M
MailMover
- class server.
MailMover
.
this is a class that will automatically send all new mail to the master server every 24 hours since the server has started
MailMover(Vector, String)
- Constructor for class server.
MailMover
masterserver
- package masterserver
masterserver
- Variable in class server.
ServerInfo
MasterServerHandler
- class masterserver.
MasterServerHandler
.
This class will handle all of the connections to the master server
MasterServerHandler(Socket, Vector)
- Constructor for class masterserver.
MasterServerHandler
constructor for MasterServerHandler
move()
- Method in class server.
Fish
this moves the fish one spot
moveComponent(Component, Point)
- Method in class client.
DoubleBufferedContainer
Moves the specified component to the specifies point.
moveComponent(Component, Point, boolean)
- Method in class client.
DoubleBufferedContainer
Moves the specified component to the specified point.
N
name
- Variable in class server.
ServerInfo
P
paint(Graphics)
- Method in class client.
Lightweight
Calls paintIcon() if the Lightweight is visible.
paint(Graphics)
- Method in class client.
DoubleBufferedContainer
Paints components on the container.
paintBackground()
- Method in class client.
DoubleBufferedContainer
Paints the background Image.
paintBackground(Graphics)
- Method in class client.
DoubleBufferedContainer
Paints the background Image.
paintBackground(Rectangle)
- Method in class client.
DoubleBufferedContainer
Paints the specified portion of the background Image.
paintComponent(Component)
- Method in class client.
DoubleBufferedContainer
Paints the specified component as soon as possible.
paintComponent(Component, boolean)
- Method in class client.
DoubleBufferedContainer
Paints the specified compoents as soon as possible.
paintComponents(Rectangle, boolean)
- Method in class client.
DoubleBufferedContainer
Paints all the compoents in the specified rectangle.
paintOverlappingComponents(Component)
- Method in class client.
DoubleBufferedContainer
Correctly paints overlapping components.
printMe()
- Method in class server.
ServerSurround
this will print the surrounding servers
printServers()
- Method in class masterserver.
Server
Print all the servers that are connected
Pulser
- class server.
Pulser
.
this is a thread that will pulse call the sendLocal of all the Threads in the threadgroup
PulseServer
- class server.
PulseServer
.
This is the server that listens to incoming connections and will spawn the Pulser thread for each client
PulseServer(Vector)
- Constructor for class server.
PulseServer
constructor to Server
Q
quit()
- Method in class masterserver.
Server
quit the whole server business
quit()
- Method in class server.
Server
this will quit the server and all the threads that it has spawned
quit()
- Method in class server.
PulseServer
this will quit the PulseServer and all the threads that it has spawned
quit()
- Method in class server.
Pulser
to quit this thread
quit()
- Method in class server.
MailMover
R
registerWithMasterServer()
- Method in class server.
Server
this will register itself with the Master Server
relocateFish(Fish)
- Method in class server.
Server
this will send a fish to the appropriate location
removeClient(ObjectOutputStream)
- Method in class server.
PulseServer
this will remove a client to send the fish to
right()
- Method in class server.
ServerSurround
the server that is to the right
run()
- Method in class client.
ServerListener
Grabs input from the server and tries to determine what instance it is and take appropriate action.
run()
- Method in class masterserver.
Server
This is was handles all the incoming connections and pawns off all the work to MasterServerHandler
run()
- Method in class masterserver.
MasterServerHandler
the part that processes the commands
run()
- Method in class server.
Server
this will start the thread running
run()
- Method in class server.
PulseServer
this will start the thread running
run()
- Method in class server.
Pulser
this will run this thread and pulse all of the information
run()
- Method in class server.
MailMover
run()
- Method in class server.
FishTankServerClientManager
this is what is run when someone connects.
S
sendFish()
- Method in class server.
FishTankServerClientManager
this is called when accepting a fish from a server or a client
sendFish(Fish)
- Method in class server.
PulseServer
This will send fish to all the clients.
sendFishToClient(Fish)
- Method in class server.
Pulser
this will send a fish to the client
sendLocal()
- Method in class server.
FishTankServerClientManager
send the location of all the fish to all of the clients
server
- package server
Server
- class masterserver.
Server
.
This is the main server.
Server
- class server.
Server
.
This is the server that listens to incoming connections and will spawn of new FishTankClientManager threads for each new connection
Server()
- Constructor for class masterserver.
Server
Server()
- Constructor for class server.
Server
constructor to Server
ServerInfo
- class server.
ServerInfo
.
contains information about the server
ServerListener
- class client.
ServerListener
.
Listens for incomming server commands and Fish positions and updates client accordingly.
ServerListener(ObjectInputStream, ObjectOutputStream, DoubleBufferedContainer)
- Constructor for class client.
ServerListener
Creates a ServerListener with the specified Object input and output streams.
ServerListFrame
- class client.
ServerListFrame
.
Gets the list of servers from the masterserver and displays them in a list.
ServerListFrame()
- Constructor for class client.
ServerListFrame
Creates a ServerListFrame.
ServerStatPanel
- class client.
ServerStatPanel
.
A serializable panel which contains information about the server.
ServerStatPanel()
- Constructor for class client.
ServerStatPanel
Creates a ServerStatPanel.
ServerSurround
- class server.
ServerSurround
.
this is the class that will hold all servers that are around one
ServerSurround()
- Constructor for class server.
ServerSurround
constructor to ServerSurround
set(String, String, String, String)
- Method in class server.
ServerSurround
this will set the surrounding servers
setComponent(Component)
- Method in class client.
BackingStore
Sets the component to be drawn on the backingstore.
setCreatorPanel(FishCreatorPanel)
- Method in class client.
FishCreatorFrame
Allows FishCreatorFrame to communicate with FishCreatorPanel
setDescription(String)
- Method in class client.
ExtensionFileFilter
Sets the description to the given String.
setDown(String)
- Method in class server.
ServerSurround
set the server which is below
setExtensionListInDescription(boolean)
- Method in class client.
ExtensionFileFilter
Shows the extensions in the file chooser.
setID(String)
- Method in class server.
Fish
set the ID of the Fish
setImagePath(String)
- Method in class client.
FishCreatorFrame
Sets imagePath to the given String.
setLeft(String)
- Method in class server.
ServerSurround
set the server which is to the left
setPOS(int, int)
- Method in class server.
Fish
set the position of the fish
setRight(String)
- Method in class server.
ServerSurround
set the server which is to the right
setUp(String)
- Method in class server.
ServerSurround
set the server which is above
setWallpaperImage(Image)
- Method in class client.
DoubleBufferedContainer
Sets the wallpaper image.
StatFrame
- class client.
StatFrame
.
Contains a ServerStatPanel.
StatFrame(ServerStatPanel)
- Constructor for class client.
StatFrame
Creates a ServerFrame associated with the specified ServerStatPanel
T
tArray
- Variable in class server.
Server
toString()
- Method in class client.
Lightweight
toString()
- Method in class server.
ServerInfo
return the string version of this class
toString()
- Method in class server.
Fish
String represention of the fish
U
up()
- Method in class server.
ServerSurround
the server that is above
update(Graphics)
- Method in class client.
FishTankFrame
update(Graphics)
- Method in class client.
FishPanel
update(Graphics)
- Method in class client.
DoubleBufferedContainer
Calls paint().
Util
- class client.
Util
.
A utility class for use with DoubleBuffered Container
Util()
- Constructor for class client.
Util
W
waitForImage(Component, Image)
- Static method in class client.
Util
Waits until the specified image associated with the specified component has loaded from the default toolkit.
wallPaper(Component, Graphics, Image)
- Static method in class client.
Util
Updates the background image only where a moving component damages it.
windowDamaged(Graphics)
- Method in class client.
DoubleBufferedContainer
Returns true or false based on if the front and back buffers to not match.
X
x
- Variable in class server.
FishPOS
XCOORD
- Variable in class server.
Fish
Y
y
- Variable in class server.
FishPOS
YCOORD
- Variable in class server.
Fish
A
B
C
D
E
F
G
H
I
L
M
N
P
Q
R
S
T
U
W
X
Y
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes