|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.tmachine.gpg.hue.BaseHUD
Provides most of the common methods etc for HUD implementations Subclasses should set the "name" variable in their constructor.
| Field Summary | |
protected boolean |
isActive
|
protected boolean |
isVisible
|
protected HUDManager |
manager
|
protected java.lang.String |
name
|
| Constructor Summary | |
BaseHUD()
|
|
| Method Summary | |
java.lang.String |
getName()
Each HUD should have a unique user-readable name; must be unique, since it is used as a key in Maps |
boolean |
isActive()
Simply returns the value of the active flag |
void |
isActive(boolean b)
Used by the HUD-manager to inform the HUD it is no longer active, i.e. |
boolean |
isVisible()
Simply returns the value of the visibility flag |
void |
isVisible(boolean b)
Used by the HUD-manager to inform this HUD when it has been made visible or hidden |
void |
mouseClicked(java.awt.event.MouseEvent e)
|
void |
mouseDragged(java.awt.event.MouseEvent e)
|
void |
mouseEntered(java.awt.event.MouseEvent e)
|
void |
mouseExited(java.awt.event.MouseEvent e)
|
void |
mouseMoved(java.awt.event.MouseEvent e)
|
void |
mousePressed(java.awt.event.MouseEvent e)
|
void |
mouseReleased(java.awt.event.MouseEvent e)
|
void |
setManager(HUDManager am)
Callback when added to a HUD manager to give the HUD a reference it can use to control or delegate to other HUDs etc |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface net.tmachine.gpg.hue.HUD |
paint |
| Field Detail |
protected java.lang.String name
protected boolean isVisible
protected boolean isActive
protected HUDManager manager
| Constructor Detail |
public BaseHUD()
| Method Detail |
public void setManager(HUDManager am)
HUD
setManager in interface HUDam - public java.lang.String getName()
HUD
getName in interface HUDname variablepublic void isVisible(boolean b)
HUD
isVisible in interface HUDb - true if HUD is now visible, false otherwisepublic boolean isVisible()
HUD
isVisible in interface HUDpublic void isActive(boolean b)
HUD
isActive in interface HUDb - public boolean isActive()
HUD
isActive in interface HUDpublic void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked in interface java.awt.event.MouseListenerpublic void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered in interface java.awt.event.MouseListenerpublic void mouseExited(java.awt.event.MouseEvent e)
mouseExited in interface java.awt.event.MouseListenerpublic void mousePressed(java.awt.event.MouseEvent e)
mousePressed in interface java.awt.event.MouseListenerpublic void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in interface java.awt.event.MouseListenerpublic void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged in interface java.awt.event.MouseMotionListenerpublic void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved in interface java.awt.event.MouseMotionListenerpublic java.lang.String toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||