de.jreality.plugin.basic
Class Content
java.lang.Object
Plugin
de.jreality.plugin.basic.Content
- Direct Known Subclasses:
- CenteredAndScaledContent, DirectContent, TerrainAlignedContent
public abstract class Content
- extends Plugin
Content
public Content()
setContent
public abstract void setContent(SceneGraphNode content)
addContentTool
public boolean addContentTool(Tool tool)
- Add a content tool. Each Content implementation may reject adding/removing
tools, which is signaled by the return value. The return value gives information
if the tool is part of the Content tools after the method call (not if it was
added due to this call, in contrast to the Collections API).
- Parameters:
tool
-
- Returns:
- false if the Content rejects the given tool, true otherwise.
removeContentTool
public boolean removeContentTool(Tool tool)
- Remove a content tool.
- Parameters:
tool
-
- Returns:
- true if the tool was removed, false if it was not set before or if removing is rejected.
fireContentChanged
public void fireContentChanged(Content.ContentChangedEvent cce)
fireContentChanged
public void fireContentChanged()
addContentChangedListener
public boolean addContentChangedListener(Content.ContentChangedListener l)
removeContentChangedListener
public boolean removeContentChangedListener(Content.ContentChangedListener l)
install
public void install(Controller c)
throws Exception
- Throws:
Exception