|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
com.threerings.media.MediaPanel
com.threerings.media.VirtualMediaPanel
com.threerings.miso.client.MisoScenePanel
com.threerings.stage.client.StageScenePanel
public class StageScenePanel
Extends the basic Miso scene panel with Stage fun stuff like portals, clusters and locations.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.threerings.media.MediaPanel |
|---|
com.threerings.media.MediaPanel.Obscurer |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.BaselineResizeBehavior |
| Field Summary | |
|---|---|
static String |
CLUSTER_CLICKED
An action command generated when a cluster is clicked. |
static String |
LOCATION_CLICKED
An action command generated when the user clicks on a location within the scene. |
static int |
SHOW_CLUSTERS
Show flag that indicates we should show all clusters. |
static int |
SHOW_PLOTS
Show flag that indicates we should render known land plots (expensive, don't turn this on willy nilly). |
| Fields inherited from class com.threerings.miso.client.MisoScenePanel |
|---|
SHOW_TIPS |
| Fields inherited from class com.threerings.media.VirtualMediaPanel |
|---|
CENTER_ON_PATHABLE, ENCLOSE_PATHABLE, TRACK_PATHABLE |
| Fields inherited from class javax.swing.JComponent |
|---|
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface com.threerings.media.MediaConstants |
|---|
ALL, BACK, FRONT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
StageScenePanel(StageContext ctx,
Controller ctrl)
Constructs a stage scene view panel. |
|
| Method Summary | |
|---|---|
void |
didLeavePlace(com.threerings.crowd.data.PlaceObject plobj)
|
SceneColorizer |
getColorizer()
Get the tileset colorizer in use in this scene. |
Controller |
getController()
|
Portal |
getPortal(int fullX,
int fullY)
Returns the portal at the specified full coordinates or null if no portal exists at said coordinates. |
StageScene |
getScene()
Returns the scene being displayed by this panel. |
void |
keyPressed(KeyEvent e)
|
void |
keyReleased(KeyEvent e)
|
void |
keyTyped(KeyEvent e)
|
boolean |
removeCluster(int clusterOid)
Removes the specified cluster from the view. |
void |
sceneUpdated(SceneUpdate update)
Called when we have received a scene update from the server. |
void |
setScene(StageScene scene)
Sets the scene managed by the panel. |
void |
updateCluster(Cluster cluster,
Rectangle bounds)
Adds or updates the specified cluster in the view. |
void |
willEnterPlace(com.threerings.crowd.data.PlaceObject plobj)
|
| Methods inherited from class com.threerings.miso.client.MisoScenePanel |
|---|
addNotify, canTraverse, centerOnTile, checkShowFlag, clearRadialMenu, computeIndicators, computeInfluentialBounds, enumerateResolvedBlocks, getBlock, getComponent, getFullCoords, getHoverCoords, getHoverObject, getPath, getSceneMetrics, getSceneModel, getScreenCoords, getTileCoords, getViewBounds, menuDeactivated, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, paint, pressObject, refreshScene, removeNotify, repaintRect, reportMemoryUsage, setBounds, setSceneModel, setShowFlags |
| Methods inherited from class com.threerings.media.VirtualMediaPanel |
|---|
addViewTracker, clearPathable, doLayout, removeViewTracker, setBackground, setFollowsPathable, setViewLocation |
| Methods inherited from class com.threerings.media.MediaPanel |
|---|
abortAnimation, addAnimation, addObscurer, addSprite, clearAnimations, clearSprites, createGraphics, getAnimationManager, getRegionManager, getSpriteManager, getTimeStamp, isManaged, isManaged, needsPaint, removeObscurer, removeSprite, repaint, setOpaque, setPaused, tick |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String LOCATION_CLICKED
public static final String CLUSTER_CLICKED
public static final int SHOW_CLUSTERS
public static final int SHOW_PLOTS
| Constructor Detail |
|---|
public StageScenePanel(StageContext ctx,
Controller ctrl)
| Method Detail |
|---|
public SceneColorizer getColorizer()
public StageScene getScene()
public void setScene(StageScene scene)
public void sceneUpdated(SceneUpdate update)
public Controller getController()
getController in interface ControllerProviderpublic void keyPressed(KeyEvent e)
keyPressed in interface KeyListenerpublic void keyReleased(KeyEvent e)
keyReleased in interface KeyListenerpublic void willEnterPlace(com.threerings.crowd.data.PlaceObject plobj)
willEnterPlace in interface com.threerings.crowd.client.PlaceViewpublic void didLeavePlace(com.threerings.crowd.data.PlaceObject plobj)
didLeavePlace in interface com.threerings.crowd.client.PlaceViewpublic void keyTyped(KeyEvent e)
keyTyped in interface KeyListener
public void updateCluster(Cluster cluster,
Rectangle bounds)
cluster - the cluster record to be added.bounds - the screen coordinates that bound the occupants of the cluster.public boolean removeCluster(int clusterOid)
public Portal getPortal(int fullX,
int fullY)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||