|
||||||||||
| 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.PlaceableSprite
public class PlaceableSprite
Represents a placeable entry.
| Nested Class Summary | |
|---|---|
static class |
PlaceableSprite.ClickableProp
A prop that may be clicked to perform some action. |
static class |
PlaceableSprite.Implementation
The actual sprite implementation. |
static class |
PlaceableSprite.Marker
A marker implementation. |
static class |
PlaceableSprite.Original
Superclass of the original implementations. |
static class |
PlaceableSprite.Prop
A prop implementation. |
| Field Summary |
|---|
| Fields inherited from interface com.threerings.expr.Scope |
|---|
EPOCH, NOW |
| Constructor Summary | |
|---|---|
PlaceableSprite(TudeyContext ctx,
TudeySceneView view,
TudeySceneModel.PlaceableEntry entry)
Creates a new placeable sprite. |
|
| Method Summary | |
|---|---|
void |
configUpdated(ConfigEvent<PlaceableConfig> event)
Called when a configuration has been updated. |
Component |
createTooltipComponent(String tiptext)
Creates a tooltip component for the sprite (will only be called if Sprite.getTooltipText()
returns true). |
boolean |
dispatchEvent(Event event)
Dispatches an event on the sprite. |
void |
dispose()
Releases the resources associated with this scope. |
TudeySceneModel.Entry |
getEntry()
Returns a reference to the most recently set entry state. |
int |
getFloorFlags()
Returns the sprite's floor flags. |
Model |
getModel()
Returns the model associated with the sprite (if any). |
String |
getTooltipText()
Returns the sprite's tooltip text, or null for none. |
float |
getTooltipTimeout()
Returns the sprite's tooltip timeout, or -1 to use the default. |
String |
getTooltipWindowStyle()
Returns the sprite's tooltip window style. |
boolean |
isClickable()
Determines whether the sprite is clickable. |
boolean |
isHoverable()
Determines whether the sprite is hoverable (for purposes of in-game user interaction). |
void |
scopeUpdated(ScopeEvent event)
Called when the scope has been updated. |
void |
setSelected(boolean selected)
Sets whether or not this sprite is selected. |
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 |
|---|
getFloorMask, getScopeName, setVisible |
| 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 PlaceableSprite(TudeyContext ctx,
TudeySceneView view,
TudeySceneModel.PlaceableEntry entry)
| Method Detail |
|---|
public void configUpdated(ConfigEvent<PlaceableConfig> event)
ConfigUpdateListener
configUpdated in interface ConfigUpdateListener<PlaceableConfig>public void scopeUpdated(ScopeEvent event)
ScopeUpdateListener
scopeUpdated in interface ScopeUpdateListenerscopeUpdated in class SimpleScopepublic int getFloorFlags()
Sprite
getFloorFlags in class Spritepublic boolean isHoverable()
Sprite
isHoverable in class Spritepublic boolean isClickable()
Sprite
isClickable in class Spritepublic String getTooltipText()
Spritenull for none.
getTooltipText in class Spritepublic float getTooltipTimeout()
Sprite
getTooltipTimeout in class Spritepublic String getTooltipWindowStyle()
Sprite
getTooltipWindowStyle in class Spritepublic Component createTooltipComponent(String tiptext)
SpriteSprite.getTooltipText()
returns true).
createTooltipComponent in class Spritepublic boolean dispatchEvent(Event event)
Sprite
dispatchEvent in class Spritepublic TudeySceneModel.Entry getEntry()
EntrySprite
getEntry in class EntrySpritepublic void update(TudeySceneModel.Entry entry)
EntrySprite
update in class EntrySpritepublic Model getModel()
Sprite
getModel in class Spritepublic 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 | |||||||||