de.jreality.plugin.basic
Class Content

java.lang.Object
  extended by Plugin
      extended by de.jreality.plugin.basic.Content
Direct Known Subclasses:
CenteredAndScaledContent, DirectContent, TerrainAlignedContent

public abstract class Content
extends Plugin


Nested Class Summary
static class Content.ChangeEventType
           
static class Content.ContentChangedEvent
           
static interface Content.ContentChangedListener
           
 
Constructor Summary
Content()
           
 
Method Summary
 boolean addContentChangedListener(Content.ContentChangedListener l)
           
 boolean addContentTool(Tool tool)
          Add a content tool.
 void fireContentChanged()
           
 void fireContentChanged(Content.ContentChangedEvent cce)
           
 void install(Controller c)
           
 boolean removeContentChangedListener(Content.ContentChangedListener l)
           
 boolean removeContentTool(Tool tool)
          Remove a content tool.
abstract  void setContent(SceneGraphNode content)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Content

public Content()
Method Detail

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