com.threerings.stage.client
Class StageSceneController

java.lang.Object
  extended by com.samskivert.swing.Controller
      extended by com.threerings.crowd.client.PlaceController
          extended by com.threerings.whirled.client.SceneController
              extended by com.threerings.whirled.spot.client.SpotSceneController
                  extended by com.threerings.stage.client.StageSceneController
All Implemented Interfaces:
ActionListener, EventListener

public class StageSceneController
extends SpotSceneController

Extends the SpotSceneController with functionality specific to displaying Stage scenes.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.threerings.crowd.client.PlaceController
PlaceController.DelegateOp
 
Nested classes/interfaces inherited from class com.samskivert.swing.Controller
Controller.ActionInvoker
 
Field Summary
 
Fields inherited from class com.threerings.whirled.client.SceneController
_updateListener, _wctx
 
Fields inherited from class com.threerings.crowd.client.PlaceController
_config, _ctx, _delegates, _plobj, _view
 
Fields inherited from class com.samskivert.swing.Controller
DISPATCHER
 
Constructor Summary
StageSceneController()
           
 
Method Summary
protected  PlaceView createPlaceView(CrowdContext ctx)
           
 void handleClusterClicked(Object source, Tuple<Cluster,Point> tuple)
          Handles a cluster clicked event.
 void handleLocationClicked(Object source, StageLocation loc)
          Called when the user clicks on a location within the scene.
protected  void sceneUpdated(SceneUpdate update)
          This method is called if a scene update is recorded while we currently occupy a scene.
 
Methods inherited from class com.threerings.whirled.client.SceneController
didLeavePlace, init, willEnterPlace
 
Methods inherited from class com.threerings.crowd.client.PlaceController
addDelegate, applyToDelegates, createPlaceView, didInit, getPlaceConfig, getPlaceView, handleAction, mayLeavePlace
 
Methods inherited from class com.samskivert.swing.Controller
actionPerformed, configureAction, createActionButton, generateArguments, handleAction, handleAction, handleAction, postAction, postAction, postAction, setControlledPanel, wasAdded, wasRemoved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StageSceneController

public StageSceneController()
Method Detail

handleLocationClicked

public void handleLocationClicked(Object source,
                                  StageLocation loc)
Called when the user clicks on a location within the scene.


handleClusterClicked

public void handleClusterClicked(Object source,
                                 Tuple<Cluster,Point> tuple)
Handles a cluster clicked event.

Parameters:
tuple - the cluster that was clicked and the screen coords of the click.

createPlaceView

protected PlaceView createPlaceView(CrowdContext ctx)
Overrides:
createPlaceView in class PlaceController

sceneUpdated

protected void sceneUpdated(SceneUpdate update)
Description copied from class: SceneController
This method is called if a scene update is recorded while we currently occupy a scene. The default implementation will update our local scene and scene model, but derived classes will likely want to ensure that the update is properly displayed.

Overrides:
sceneUpdated in class SceneController