Class games.Battle.client.EuropaClient.QueueComponent
All Packages Class Hierarchy This Package Previous Next Index
Class games.Battle.client.EuropaClient.QueueComponent
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----games.Battle.client.EuropaClient.QueueComponent
- public class QueueComponent
- extends Panel
QueueComponent is a base class allowing various implementations
of graphics to display the waiting queue's for games on the
Europa server.
-
hilite()
- The method to hilite a queue component, when the mouse moves
into the window.
-
mouseEnter(Event, int, int)
- Process the event that occurs when the mouse enters the
component.
-
mouseExit(Event, int, int)
- Process the event that occurs when the mouse exits the
component.
-
mouseUp(Event, int, int)
- Process a mouse up event.
-
normal()
- The method to normalize or unhilite a queue component, when the
mouse moves out of the window.
-
resetGameInfo(GameInfo)
- Notifies the QueueComponent that the information associated with
a particular game has changed and needs to be updated.
hilite
public abstract void hilite()
- The method to hilite a queue component, when the mouse moves
into the window. This method is implemented in subclasses
to provided behaviour.
normal
public abstract void normal()
- The method to normalize or unhilite a queue component, when the
mouse moves out of the window. This method is implemented in
subclasses to provide behaviour.
resetGameInfo
public void resetGameInfo(GameInfo g)
- Notifies the QueueComponent that the information associated with
a particular game has changed and needs to be updated. A repaint
is automatically called so that the component will update itself.
mouseEnter
public boolean mouseEnter(Event e,
int x,
int y)
- Process the event that occurs when the mouse enters the
component. Calls hilite().
- Parameters:
- e - the event
- x - the x location
- y - the y location
- Overrides:
- mouseEnter in class Component
- See Also:
- hilite
mouseExit
public boolean mouseExit(Event e,
int x,
int y)
- Process the event that occurs when the mouse exits the
component. Calls normal().
- Parameters:
- e - the event
- x - the x location
- y - the y location
- Overrides:
- mouseExit in class Component
- See Also:
- normal
mouseUp
public boolean mouseUp(Event e,
int x,
int y)
- Process a mouse up event. Tries to join a particular game
queue.
- Parameters:
- e - the event
- x - the x location
- y - the y location
- Overrides:
- mouseUp in class Component
All Packages Class Hierarchy This Package Previous Next Index