org.jdesktop.wonderland.client.hud
Class HUDManagerFactory

java.lang.Object
  extended by org.jdesktop.wonderland.client.hud.HUDManagerFactory

public class HUDManagerFactory
extends java.lang.Object

A HUD Manager factory which creates new HUD Manager instances by delegating to a HUD Manager Factory instance. The HUD system allows multiple HUD instances to share a client window. Each HUD has a 2D position and a width and height. A HUDManager manages the placement and visual attributes of all the HUD instances in a given client window.

Author:
nsimpson

Constructor Summary
HUDManagerFactory()
           
 
Method Summary
static HUDManager createHUDManager(java.awt.Canvas canvas)
          Creates a new instance of a HUD Manager
static HUDManager getHUDManager()
          Gets the HUD Manager instance singleton
static void setHUDManagerFactorySPI(HUDManagerFactorySPI spii)
          Binds a specific HUD Manager Factory service provider to this factory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HUDManagerFactory

public HUDManagerFactory()
Method Detail

setHUDManagerFactorySPI

public static void setHUDManagerFactorySPI(HUDManagerFactorySPI spii)
Binds a specific HUD Manager Factory service provider to this factory

Parameters:
spii - an instance of a HUD Manager Factory service provider

createHUDManager

public static HUDManager createHUDManager(java.awt.Canvas canvas)
Creates a new instance of a HUD Manager

Returns:
a new HUD Manager instance if a HUD Manager Factory exists, null otherwise

getHUDManager

public static HUDManager getHUDManager()
Gets the HUD Manager instance singleton

Returns:
the HUD Manager instance if it has been created, null otherwise


Open Wonderland - http://openwonderland.org