org.xith3d.selection
Class AbstractNodeSelectable<NodeType extends Node>

java.lang.Object
  extended by org.xith3d.selection.AbstractNodeSelectable<NodeType>
All Implemented Interfaces:
Selectable
Direct Known Subclasses:
BoundingBoxSelectable, InvisibleSelectable

public abstract class AbstractNodeSelectable<NodeType extends Node>
extends java.lang.Object
implements Selectable


Constructor Summary
AbstractNodeSelectable(NodeType node)
           
 
Method Summary
 void deregister(java.lang.Object object)
           
<T> T
get(java.lang.Class<T> type)
           
 NodeType getNode()
           
 boolean isSelected()
           
 boolean isSelectedContext()
           
 boolean isSelectionBound()
           
<T> java.util.List<T>
lookup(java.lang.Class<T> type)
           
 void register(java.lang.Object object)
           
 void setSelected(SelectionManager selectionManager, boolean selected)
           
 void setSelectedContext(SelectionManager selectionManager, boolean selected)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.xith3d.selection.Selectable
onMoved
 

Constructor Detail

AbstractNodeSelectable

public AbstractNodeSelectable(NodeType node)
Method Detail

get

public <T> T get(java.lang.Class<T> type)
Specified by:
get in interface Selectable

lookup

public <T> java.util.List<T> lookup(java.lang.Class<T> type)
Specified by:
lookup in interface Selectable

register

public void register(java.lang.Object object)

deregister

public void deregister(java.lang.Object object)

getNode

public NodeType getNode()
Specified by:
getNode in interface Selectable

isSelectionBound

public boolean isSelectionBound()
Specified by:
isSelectionBound in interface Selectable

isSelected

public boolean isSelected()
Specified by:
isSelected in interface Selectable

isSelectedContext

public boolean isSelectedContext()
Specified by:
isSelectedContext in interface Selectable

setSelected

public void setSelected(SelectionManager selectionManager,
                        boolean selected)
Specified by:
setSelected in interface Selectable

setSelectedContext

public void setSelectedContext(SelectionManager selectionManager,
                               boolean selected)
Specified by:
setSelectedContext in interface Selectable