|
||||||||||
| 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.Sprite
com.threerings.tudey.client.sprite.EntrySprite
com.threerings.tudey.client.sprite.AreaSprite
public class AreaSprite
Represents an area entry.
| Nested Class Summary | |
|---|---|
static class |
AreaSprite.Implementation
The actual sprite implementation. |
static class |
AreaSprite.Original
An original implementation. |
| Field Summary |
|---|
| Fields inherited from interface com.threerings.expr.Scope |
|---|
EPOCH, NOW |
| Constructor Summary | |
|---|---|
AreaSprite(TudeyContext ctx,
TudeySceneView view,
TudeySceneModel.AreaEntry entry)
Creates a new area sprite. |
|
| Method Summary | |
|---|---|
void |
configUpdated(ConfigEvent<AreaConfig> event)
Called when a configuration has been updated. |
void |
dispose()
Releases the resources associated with this scope. |
int |
getEdgeIndex(Model model)
Returns the index of the specified model within the list of edge models, or -1 if it is not an edge. |
TudeySceneModel.Entry |
getEntry()
Returns a reference to the most recently set entry state. |
int |
getVertexIndex(Model model)
Returns the index of the specified model within the list of vertex models, or -1 if it is not a vertex. |
void |
scopeUpdated(ScopeEvent event)
Called when the scope has been updated. |
void |
setSelected(boolean selected)
Sets whether or not this sprite is selected. |
void |
setVisible(boolean visible)
Attempt to set the visibility of this sprite. |
void |
update(TudeySceneModel.Entry entry)
Updates the sprite with new entry state. |
| Methods inherited from class com.threerings.tudey.client.sprite.EntrySprite |
|---|
isSelected |
| Methods inherited from class com.threerings.tudey.client.sprite.Sprite |
|---|
createTooltipComponent, dispatchEvent, getFloorFlags, getFloorMask, getModel, getScopeName, getTooltipText, getTooltipTimeout, getTooltipWindowStyle, isClickable, isHoverable |
| Methods inherited from class com.threerings.expr.SimpleScope |
|---|
addListener, get, getParentScope, removeListener |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AreaSprite(TudeyContext ctx,
TudeySceneView view,
TudeySceneModel.AreaEntry entry)
| Method Detail |
|---|
public int getVertexIndex(Model model)
public int getEdgeIndex(Model model)
public void configUpdated(ConfigEvent<AreaConfig> event)
ConfigUpdateListener
configUpdated in interface ConfigUpdateListener<AreaConfig>public void scopeUpdated(ScopeEvent event)
ScopeUpdateListener
scopeUpdated in interface ScopeUpdateListenerscopeUpdated in class SimpleScopepublic TudeySceneModel.Entry getEntry()
EntrySprite
getEntry in class EntrySpritepublic void setVisible(boolean visible)
Sprite
setVisible in class Spritepublic void update(TudeySceneModel.Entry entry)
EntrySprite
update in class EntrySpritepublic void setSelected(boolean selected)
EntrySprite
setSelected in class EntrySpritepublic void dispose()
SimpleScope
dispose in class SimpleScope
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||