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

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.



Copyright © 2011. All Rights Reserved.