org.jdesktop.wonderland.client.cell
Class ModelCell

java.lang.Object
  extended by org.jdesktop.wonderland.client.cell.Cell
      extended by org.jdesktop.wonderland.client.cell.ModelCell
All Implemented Interfaces:
AssetPreloader

public class ModelCell
extends Cell
implements AssetPreloader

Client side cell for rendering JME content

Author:
paulby

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jdesktop.wonderland.client.cell.Cell
Cell.RendererType
 
Field Summary
 
Fields inherited from class org.jdesktop.wonderland.client.cell.Cell
logger
 
Constructor Summary
ModelCell(CellID cellID, CellCache cellCache)
           
 
Method Summary
 java.util.List<java.net.URL> assetLoaded(java.net.URL url, java.io.InputStream loaded)
          Called whenever an asset is finished loading.
protected  CellRenderer createCellRenderer(Cell.RendererType rendererType)
          Create the renderer for this cell
 java.util.List<java.net.URL> getAssets()
          Provide an initial list of assets to load
 
Methods inherited from class org.jdesktop.wonderland.client.cell.Cell
addChild, addChildrenChangeListener, addComponent, addComponent, addComponentChangeListener, addParentChangeListener, addStatusChangeListener, addTransformChangeListener, fireCellStatusChanged, getCellCache, getCellID, getCellRenderer, getChildren, getComponent, getComponents, getLocalBounds, getLocalToWorldTransform, getLocalTransform, getName, getNumChildren, getParent, getStatus, getWorldBounds, getWorldTransform, removeChild, removeChildChangeListener, removeComponent, removeComponentChangeListener, removeParentChangeListener, removeStatusChangeListener, removeTransformChangeListener, sendCellMessage, sendCellMessageAndWait, setClientState, setLocalBounds, setName, setStatus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelCell

public ModelCell(CellID cellID,
                 CellCache cellCache)
Method Detail

createCellRenderer

protected CellRenderer createCellRenderer(Cell.RendererType rendererType)
Description copied from class: Cell
Create the renderer for this cell

Overrides:
createCellRenderer in class Cell
Parameters:
rendererType - The type of renderer required
Returns:
the renderer for the specified type if available, or null

getAssets

public java.util.List<java.net.URL> getAssets()
Description copied from interface: AssetPreloader
Provide an initial list of assets to load

Specified by:
getAssets in interface AssetPreloader
Returns:
a list of the assets for this cell, or an empty list if no assets are available.

assetLoaded

public java.util.List<java.net.URL> assetLoaded(java.net.URL url,
                                                java.io.InputStream loaded)
Description copied from interface: AssetPreloader
Called whenever an asset is finished loading. This method returns an additional list of assets to load based on the contents of the newly added file.

Specified by:
assetLoaded in interface AssetPreloader
loaded - the InputStream from the loaded URL
Returns:
a list of additional URLs to load, or null if there are no more URLs that need loading


Open Wonderland - http://openwonderland.org