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

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

public abstract static class PathSprite.Implementation
extends SimpleScope

The actual sprite implementation.


Field Summary
 
Fields inherited from interface com.threerings.expr.Scope
EPOCH, NOW
 
Constructor Summary
PathSprite.Implementation(Scope parentScope)
          Creates a new implementation.
 
Method Summary
 int getEdgeIndex(Model model)
          Returns the index of the specified model within the list of edge models, or -1 if it is not an edge.
 String getScopeName()
          Returns the name of this scope for purposes of qualification.
 int getVertexIndex(Model model)
          Returns the index of the specified model within the list of vertex models, or -1 if it is not a vertex.
 void setVisible(boolean visible)
          Update the visibility.
 void update(TudeySceneModel.PathEntry entry)
          Updates the implementation to match the path 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

PathSprite.Implementation

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

Method Detail

getVertexIndex

public int getVertexIndex(Model model)
Returns the index of the specified model within the list of vertex models, or -1 if it is not a vertex.


getEdgeIndex

public int getEdgeIndex(Model model)
Returns the index of the specified model within the list of edge models, or -1 if it is not an edge.


update

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


setVisible

public void setVisible(boolean visible)
Update the visibility.


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.