org.jdesktop.wonderland.client.cell
Class InteractionComponent

java.lang.Object
  extended by org.jdesktop.wonderland.client.cell.CellComponent
      extended by org.jdesktop.wonderland.client.cell.InteractionComponent

public class InteractionComponent
extends CellComponent

Component describing how a cell interacts with the world

Author:
Jonathan Kaplan

Nested Class Summary
static interface InteractionComponent.InteractionComponentListener
          Listener for receiving notification of changes to the interaction component
 
Field Summary
 
Fields inherited from class org.jdesktop.wonderland.client.cell.CellComponent
cell, status
 
Constructor Summary
InteractionComponent(Cell cell)
           
 
Method Summary
 void addInteractionComponentListener(InteractionComponent.InteractionComponentListener listener)
          Add a listener that will be notified of changes to this component.
protected  void fireCollidableChanged(boolean collidable)
          Fire an event notifying listeners that collidable has changed
protected  void fireSelectableChanged(boolean selectable)
          Fire an event notifying listeners that selectable has changed
 boolean isCollidable()
           
 boolean isSelectable()
           
 void removeInteractionComponentListener(InteractionComponent.InteractionComponentListener listener)
          Remove a change listener
 void setClientState(CellComponentClientState state)
          Sets the client state of the cell components.
 
Methods inherited from class org.jdesktop.wonderland.client.cell.CellComponent
setStatus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InteractionComponent

public InteractionComponent(Cell cell)
Method Detail

isCollidable

public boolean isCollidable()

isSelectable

public boolean isSelectable()

setClientState

public void setClientState(CellComponentClientState state)
Description copied from class: CellComponent
Sets the client state of the cell components.

Overrides:
setClientState in class CellComponent
Parameters:
state - The client state of the cell component

addInteractionComponentListener

public void addInteractionComponentListener(InteractionComponent.InteractionComponentListener listener)
Add a listener that will be notified of changes to this component.

Parameters:
listener - the listener to add

removeInteractionComponentListener

public void removeInteractionComponentListener(InteractionComponent.InteractionComponentListener listener)
Remove a change listener

Parameters:
listener - the listener to remove

fireCollidableChanged

protected void fireCollidableChanged(boolean collidable)
Fire an event notifying listeners that collidable has changed

Parameters:
collidable - the new collidable value

fireSelectableChanged

protected void fireSelectableChanged(boolean selectable)
Fire an event notifying listeners that selectable has changed

Parameters:
selectable - the new selectable value


Open Wonderland - http://openwonderland.org