org.jdesktop.wonderland.client.hud
Interface HUDLayoutManager


public interface HUDLayoutManager

A HUDLayoutManager lays out HUD components in a 2D rectangular space. A HUDLayoutManager could be used to layout HUDs on the screen or HUD components within a HUD.

Author:
nsimpson

Method Summary
 void addView(HUDComponent component, HUDView view)
          Associates a view with a component
 com.jme.math.Vector2f getLocation(HUDComponent component)
          Get the position of the given component according to the specified layout.
 HUDView getView(HUDComponent component)
          Gets the view associated with a component
 void manageComponent(HUDComponent component)
          Add a component to the list of component this layout manager manages.
 void relayout()
          Trigger a re-layout of all the managed HUD components
 void relayout(HUDComponent component)
          Trigger a re-layout of the specified HUD component
 void removeView(HUDComponent component, HUDView view)
          Removes a view from a component
 void unmanageComponent(HUDComponent component)
          Remove a component from the list of component this layout manager manages.
 

Method Detail

manageComponent

void manageComponent(HUDComponent component)
Add a component to the list of component this layout manager manages.

Parameters:
component - the component to manage

unmanageComponent

void unmanageComponent(HUDComponent component)
Remove a component from the list of component this layout manager manages.

Parameters:
component - the component to stop managing

addView

void addView(HUDComponent component,
             HUDView view)
Associates a view with a component

Parameters:
component - the component
view - the view associated with this component

removeView

void removeView(HUDComponent component,
                HUDView view)
Removes a view from a component

Parameters:
component - the component
view - the view to remove from the component

getView

HUDView getView(HUDComponent component)
Gets the view associated with a component

Parameters:
component - the component
Returns:
the specified component's view

getLocation

com.jme.math.Vector2f getLocation(HUDComponent component)
Get the position of the given component according to the specified layout.

Parameters:
component - the component for which the position is needed
Returns:
returns the location of the component on its containing HUD

relayout

void relayout()
Trigger a re-layout of all the managed HUD components


relayout

void relayout(HUDComponent component)
Trigger a re-layout of the specified HUD component

Parameters:
component - the component to re-layout


Open Wonderland - http://openwonderland.org