|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.expr.SimpleScope
com.threerings.tudey.client.sprite.PlaceableSprite.Implementation
com.threerings.tudey.client.sprite.PlaceableSprite.Original
public abstract static class PlaceableSprite.Original
Superclass of the original implementations.
| Field Summary | |
|---|---|
protected TudeyContext |
_ctx
The renderer context. |
protected ShapeConfigElement |
_footprint
The footprint. |
protected Model |
_model
The model. |
protected Scene |
_scene
The scene to which we add our model/footprint. |
| Fields inherited from class com.threerings.expr.SimpleScope |
|---|
_parentScope |
| Fields inherited from interface com.threerings.expr.Scope |
|---|
EPOCH, NOW |
| Constructor Summary | |
|---|---|
PlaceableSprite.Original(TudeyContext ctx,
Scope parentScope)
Creates a new implementation. |
|
| Method Summary | |
|---|---|
Component |
createTooltipComponent(String tiptext)
Creates a tooltip component for the implementation (will only be called if PlaceableSprite.Implementation.getTooltipText() returns true). |
void |
dispose()
Releases the resources associated with this scope. |
Model |
getModel()
Returns the model for this implementation, or null for none. |
protected ConfigReference<ModelConfig> |
getModelConfig(PlaceableConfig.Original config)
Retrieves the model config reference from the configuration. |
void |
setConfig(PlaceableConfig.Original config)
(Re)configures the implementation. |
void |
update(TudeySceneModel.PlaceableEntry entry)
Updates the implementation to match the entry state. |
| Methods inherited from class com.threerings.tudey.client.sprite.PlaceableSprite.Implementation |
|---|
dispatchEvent, getFloorFlags, getScopeName, getTooltipText, getTooltipTimeout, getTooltipWindowStyle, isClickable, isHoverable |
| Methods inherited from class com.threerings.expr.SimpleScope |
|---|
addListener, get, getParentScope, removeListener, scopeUpdated |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected TudeyContext _ctx
protected Model _model
protected ShapeConfigElement _footprint
@Bound protected Scene _scene
| Constructor Detail |
|---|
public PlaceableSprite.Original(TudeyContext ctx,
Scope parentScope)
| Method Detail |
|---|
public void setConfig(PlaceableConfig.Original config)
public Component createTooltipComponent(String tiptext)
PlaceableSprite.ImplementationPlaceableSprite.Implementation.getTooltipText() returns true).
createTooltipComponent in class PlaceableSprite.Implementationpublic Model getModel()
PlaceableSprite.Implementationnull for none.
getModel in class PlaceableSprite.Implementationpublic void update(TudeySceneModel.PlaceableEntry entry)
PlaceableSprite.Implementation
update in class PlaceableSprite.Implementationpublic void dispose()
SimpleScope
dispose in class SimpleScopeprotected ConfigReference<ModelConfig> getModelConfig(PlaceableConfig.Original config)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||