net.tmachine.gpg.hue
Interface HUD

All Superinterfaces:
java.util.EventListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener
All Known Implementing Classes:
BaseHUD, ShapeRenderer

public interface HUD
extends java.awt.event.MouseListener, java.awt.event.MouseMotionListener

The base type for all HUD implementations; contains the major callbacks needed by the heads-up-editing system.


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 paint(java.awt.Graphics g)
          If this HUD is visible, it will be asked to paint to the supplied display surface during repaints
 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
 
Methods inherited from interface java.awt.event.MouseListener
mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased
 
Methods inherited from interface java.awt.event.MouseMotionListener
mouseDragged, mouseMoved
 

Method Detail

setManager

public 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

Parameters:
am -

paint

public void paint(java.awt.Graphics g)
If this HUD is visible, it will be asked to paint to the supplied display surface during repaints

Parameters:
g -

getName

public 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

Returns:
unique name of this HUD class

isVisible

public void isVisible(boolean b)
Used by the HUD-manager to inform this HUD when it has been made visible or hidden

Parameters:
b - true if HUD is now visible, false otherwise

isVisible

public boolean isVisible()
Simply returns the value of the visibility flag

Returns:

isActive

public void isActive(boolean b)
Used by the HUD-manager to inform the HUD it is no longer active, i.e. even if it is visible it will NOT receive input events

Parameters:
b -

isActive

public boolean isActive()
Simply returns the value of the active flag

Returns: