|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcage.ui.Overlay
public class Overlay
An overlay is simply a grouping of standard Java gui components which can be added over a scene rendered in CAGE. Overlays are stored as a resource an can be associated with a scene.
Nested Class Summary | |
---|---|
static class |
Overlay.NamedPanel
A wrapper for AWT Panel which has a name associated with it. |
Constructor Summary | |
---|---|
Overlay(java.lang.String name)
Creates a new overlay with the specified name. |
Method Summary | |
---|---|
void |
addComponent(Overlay.NamedPanel c)
Adds a given Component to those associated with the overlay. |
Overlay.NamedPanel |
getComponent(java.lang.String name)
This allows access to a particular component of an overly by name. |
java.util.LinkedList<Overlay.NamedPanel> |
getComponents()
Returns all of the components to be displayed when this overlay is used. |
java.lang.String |
getName()
Gets the name of the overlay |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Overlay(java.lang.String name)
name
- name of the overlayMethod Detail |
---|
public java.lang.String getName()
public java.util.LinkedList<Overlay.NamedPanel> getComponents()
public void addComponent(Overlay.NamedPanel c)
c
- the component to add.public Overlay.NamedPanel getComponent(java.lang.String name)
name
- the name of the component to search for
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |