com.threerings.tudey.client.sprite
Class PlaceableSprite.Original

java.lang.Object
  extended by com.threerings.expr.SimpleScope
      extended by com.threerings.tudey.client.sprite.PlaceableSprite.Implementation
          extended by com.threerings.tudey.client.sprite.PlaceableSprite.Original
All Implemented Interfaces:
Scope, ScopeUpdateListener
Direct Known Subclasses:
PlaceableSprite.Marker, PlaceableSprite.Prop
Enclosing class:
PlaceableSprite

public abstract static class PlaceableSprite.Original
extends PlaceableSprite.Implementation

Superclass of the original implementations.


Field Summary
 
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.
 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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlaceableSprite.Original

public PlaceableSprite.Original(TudeyContext ctx,
                                Scope parentScope)
Creates a new implementation.

Method Detail

setConfig

public void setConfig(PlaceableConfig.Original config)
(Re)configures the implementation.


createTooltipComponent

public Component createTooltipComponent(String tiptext)
Description copied from class: PlaceableSprite.Implementation
Creates a tooltip component for the implementation (will only be called if PlaceableSprite.Implementation.getTooltipText() returns true).

Overrides:
createTooltipComponent in class PlaceableSprite.Implementation

getModel

public Model getModel()
Description copied from class: PlaceableSprite.Implementation
Returns the model for this implementation, or null for none.

Overrides:
getModel in class PlaceableSprite.Implementation

update

public void update(TudeySceneModel.PlaceableEntry entry)
Description copied from class: PlaceableSprite.Implementation
Updates the implementation to match the entry state.

Overrides:
update in class PlaceableSprite.Implementation

dispose

public void dispose()
Description copied from class: SimpleScope
Releases the resources associated with this scope.

Overrides:
dispose in class SimpleScope


Copyright © 2011. All Rights Reserved.