|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectPlugin
de.jreality.plugin.experimental.ManagedContent
public class ManagedContent
A managed content that handles its content with a context map.
Nested Class Summary | |
---|---|
static class |
ManagedContent.ContentAdapter
|
static interface |
ManagedContent.ContentListener
|
Constructor Summary | |
---|---|
ManagedContent()
|
Method Summary | |
---|---|
void |
addContent(Class<?> context,
SceneGraphComponent c)
Adds a component to the scene graph under the given context. |
boolean |
addContentListener(ManagedContent.ContentListener l)
|
void |
addContentUnique(Class<?> context,
SceneGraphComponent c)
Adds a component to the scene graph if it is not already a child of the context root. |
void |
addTool(Class<?> context,
Tool tool)
Adds a tool to the given context root |
void |
addToolUnique(Class<?> context,
Tool tool)
Adds a tool to the given context root if it is not already a child of the context root |
void |
clearContent()
Removes all content components of all contexts |
SceneGraphComponent |
getContextRoot(Class<?> context)
|
PluginInfo |
getPluginInfo()
|
void |
install(Controller c)
|
void |
removeAll(Class<?> context)
Removes all content components of a given context |
void |
removeAllContentListener()
|
void |
removeContent(Class<?> context,
SceneGraphComponent c)
Removes a scene component from the scene graph and the given context |
boolean |
removeContentListener(ManagedContent.ContentListener l)
|
void |
removeTool(Class<?> context,
Tool tool)
Removes a tool from the scene graph at the given context root. |
void |
setContent(Class<?> context,
SceneGraphComponent c)
Sets a content for a given context class. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ManagedContent()
Method Detail |
---|
public SceneGraphComponent getContextRoot(Class<?> context)
public void setContent(Class<?> context, SceneGraphComponent c)
context
- c
- public void addContent(Class<?> context, SceneGraphComponent c)
context
- c
- public void addContentUnique(Class<?> context, SceneGraphComponent c)
context
- c
- public void removeContent(Class<?> context, SceneGraphComponent c)
context
- c
- public void removeAll(Class<?> context)
context
- public void clearContent()
public void addTool(Class<?> context, Tool tool)
context
- tool
- public void addToolUnique(Class<?> context, Tool tool)
context
- tool
- public void removeTool(Class<?> context, Tool tool)
context
- tool
- public PluginInfo getPluginInfo()
public void install(Controller c) throws Exception
Exception
public boolean addContentListener(ManagedContent.ContentListener l)
public boolean removeContentListener(ManagedContent.ContentListener l)
public void removeAllContentListener()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |