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

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

public abstract static class PlaceableSprite.Implementation
extends SimpleScope

The actual sprite implementation.


Field Summary
 
Fields inherited from interface com.threerings.expr.Scope
EPOCH, NOW
 
Constructor Summary
PlaceableSprite.Implementation(Scope parentScope)
          Creates a new implementation.
 
Method Summary
 Component createTooltipComponent(String tiptext)
          Creates a tooltip component for the implementation (will only be called if getTooltipText() returns true).
 boolean dispatchEvent(Event event)
          Dispatches an event on the implementation.
 int getFloorFlags()
          Returns the sprite's floor flags.
 Model getModel()
          Returns the model for this implementation, or null for none.
 String getScopeName()
          Returns the name of this scope for purposes of qualification.
 String getTooltipText()
          Returns the implementation's tooltip text, or null for none.
 float getTooltipTimeout()
          Returns the implementation's tooltip timeout, or -1 to use the default.
 String getTooltipWindowStyle()
          Returns the implementation's tooltip window style.
 boolean isClickable()
          Determines whether the implementation is clickable.
 boolean isHoverable()
          Determines whether the implementation is hoverable.
 void update(TudeySceneModel.PlaceableEntry entry)
          Updates the implementation to match the entry state.
 
Methods inherited from class com.threerings.expr.SimpleScope
addListener, dispose, get, getParentScope, removeListener, scopeUpdated
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlaceableSprite.Implementation

public PlaceableSprite.Implementation(Scope parentScope)
Creates a new implementation.

Method Detail

getModel

public Model getModel()
Returns the model for this implementation, or null for none.


getFloorFlags

public int getFloorFlags()
Returns the sprite's floor flags.


isHoverable

public boolean isHoverable()
Determines whether the implementation is hoverable.


isClickable

public boolean isClickable()
Determines whether the implementation is clickable.


getTooltipText

public String getTooltipText()
Returns the implementation's tooltip text, or null for none.


getTooltipTimeout

public float getTooltipTimeout()
Returns the implementation's tooltip timeout, or -1 to use the default.


getTooltipWindowStyle

public String getTooltipWindowStyle()
Returns the implementation's tooltip window style.


createTooltipComponent

public Component createTooltipComponent(String tiptext)
Creates a tooltip component for the implementation (will only be called if getTooltipText() returns true).


dispatchEvent

public boolean dispatchEvent(Event event)
Dispatches an event on the implementation.

Returns:
true if the implementation handled the event, false if it should be handled elsewhere.

update

public void update(TudeySceneModel.PlaceableEntry entry)
Updates the implementation to match the entry state.


getScopeName

public String getScopeName()
Description copied from interface: Scope
Returns the name of this scope for purposes of qualification. Can return null if qualified symbols cannot specifically address this scope.

Specified by:
getScopeName in interface Scope
Overrides:
getScopeName in class SimpleScope


Copyright © 2011. All Rights Reserved.