|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface GUIRegistry
This interface represents an object that contains GUI elements generated for a simulation and that are to be displayed to the user.
| Method Summary | |
|---|---|
void |
addComponent(JComponent component,
GUIRegistryType type,
String name)
Adds a component with the given type and name. |
void |
addDisplay(String name,
GUIRegistryType type,
IDisplay display)
Adds an IDisplay to this GUIRegistry. |
IDisplay |
getDisplayForComponent(JComponent comp)
Gets the display associated with the specified component. |
List<IDisplay> |
getDisplays()
Gets the list of IDisplay-s registered with this GUIRegistry. |
String |
getName(JComponent component)
Retrieves the name of a given component. |
Collection<Pair<GUIRegistryType,Collection<JComponent>>> |
getTypesAndComponents()
Retrieves the (type, components) pairs that were registered with this registry. |
boolean |
removeComponent(JComponent component)
Removes a component from the registry. |
| Method Detail |
|---|
void addComponent(JComponent component,
GUIRegistryType type,
String name)
component - the component to addtype - the type of the componentname - the name of the component (can be null)boolean removeComponent(JComponent component)
component - the component to remove
String getName(JComponent component)
component - the component who's name to retrieve
Collection<Pair<GUIRegistryType,Collection<JComponent>>> getTypesAndComponents()
void addDisplay(String name,
GUIRegistryType type,
IDisplay display)
display - the renderer to addList<IDisplay> getDisplays()
IDisplay getDisplayForComponent(JComponent comp)
comp - the component whose display we want
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||