com.threerings.tudey.client.sprite
Class EntrySprite

java.lang.Object
  extended by com.threerings.expr.SimpleScope
      extended by com.threerings.tudey.client.sprite.Sprite
          extended by com.threerings.tudey.client.sprite.EntrySprite
All Implemented Interfaces:
Scope, ScopeUpdateListener
Direct Known Subclasses:
AreaSprite, GlobalSprite, PathSprite, PlaceableSprite, TileSprite

public abstract class EntrySprite
extends Sprite

Represents a scene entry.


Field Summary
protected  boolean _selected
          Whether or not the sprite is selected.
protected static Color4f SELECTED_COLOR
          The color to use when rendering the footprints of selected sprites.
 
Fields inherited from class com.threerings.tudey.client.sprite.Sprite
_ctx, _view
 
Fields inherited from class com.threerings.expr.SimpleScope
_parentScope
 
Fields inherited from interface com.threerings.expr.Scope
EPOCH, NOW
 
Constructor Summary
EntrySprite(TudeyContext ctx, TudeySceneView view)
          Creates a new entry sprite.
 
Method Summary
abstract  TudeySceneModel.Entry getEntry()
          Returns a reference to the most recently set entry state.
 boolean isSelected()
          Checks whether this sprite is selected.
 void setSelected(boolean selected)
          Sets whether or not this sprite is selected.
abstract  void update(TudeySceneModel.Entry entry)
          Updates the sprite with new entry state.
 
Methods inherited from class com.threerings.tudey.client.sprite.Sprite
createTooltipComponent, dispatchEvent, getFloorFlags, getFloorMask, getModel, getScopeName, getTooltipText, getTooltipTimeout, getTooltipWindowStyle, isClickable, isHoverable, setVisible
 
Methods inherited from class com.threerings.expr.SimpleScope
addListener, dispose, get, getParentScope, removeListener, scopeUpdated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_selected

protected boolean _selected
Whether or not the sprite is selected.


SELECTED_COLOR

protected static final Color4f SELECTED_COLOR
The color to use when rendering the footprints of selected sprites.

Constructor Detail

EntrySprite

public EntrySprite(TudeyContext ctx,
                   TudeySceneView view)
Creates a new entry sprite.

Method Detail

getEntry

public abstract TudeySceneModel.Entry getEntry()
Returns a reference to the most recently set entry state.


update

public abstract void update(TudeySceneModel.Entry entry)
Updates the sprite with new entry state.


setSelected

public void setSelected(boolean selected)
Sets whether or not this sprite is selected.


isSelected

public boolean isSelected()
Checks whether this sprite is selected.