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.

Method Index

 o hilite()
The method to hilite a queue component, when the mouse moves into the window.
 o mouseEnter(Event, int, int)
Process the event that occurs when the mouse enters the component.
 o mouseExit(Event, int, int)
Process the event that occurs when the mouse exits the component.
 o mouseUp(Event, int, int)
Process a mouse up event.
 o normal()
The method to normalize or unhilite a queue component, when the mouse moves out of the window.
 o resetGameInfo(GameInfo)
Notifies the QueueComponent that the information associated with a particular game has changed and needs to be updated.

Methods

 o 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.
 o 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.
 o 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.
 o 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
 o 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
 o 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