|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.expr.SimpleScope
com.threerings.tudey.client.sprite.AreaSprite.Implementation
com.threerings.tudey.client.sprite.AreaSprite.Original
public static class AreaSprite.Original
An original implementation.
| Field Summary | |
|---|---|
protected AreaElement |
_area
Displays the actual area. |
protected ColorState |
_colorState
The shared color state. |
protected TudeyContext |
_ctx
The renderer context. |
protected Model[] |
_edges
The models representing the edges. |
protected ShapeSceneElement |
_footprint
The footprint. |
protected Scene |
_scene
The scene to which we add our models/footprint. |
protected Model[] |
_vertices
The models representing the vertices. |
| Fields inherited from class com.threerings.expr.SimpleScope |
|---|
_parentScope |
| Fields inherited from interface com.threerings.expr.Scope |
|---|
EPOCH, NOW |
| Constructor Summary | |
|---|---|
AreaSprite.Original(TudeyContext ctx,
Scope parentScope,
AreaConfig.Original config)
Creates a new implementation. |
|
| Method Summary | |
|---|---|
void |
dispose()
Releases the resources associated with this scope. |
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. |
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 |
setConfig(AreaConfig.Original config)
(Re)configures the implementation. |
void |
setVisible(boolean visible)
Update the visibility. |
void |
update(TudeySceneModel.AreaEntry entry)
Updates the implementation to match the area state. |
| Methods inherited from class com.threerings.tudey.client.sprite.AreaSprite.Implementation |
|---|
getScopeName |
| Methods inherited from class com.threerings.expr.SimpleScope |
|---|
addListener, get, getParentScope, removeListener, scopeUpdated |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected TudeyContext _ctx
protected Model[] _vertices
protected Model[] _edges
protected AreaElement _area
protected ColorState _colorState
protected ShapeSceneElement _footprint
@Bound protected Scene _scene
| Constructor Detail |
|---|
public AreaSprite.Original(TudeyContext ctx,
Scope parentScope,
AreaConfig.Original config)
| Method Detail |
|---|
public void setConfig(AreaConfig.Original config)
public int getVertexIndex(Model model)
AreaSprite.Implementation
getVertexIndex in class AreaSprite.Implementationpublic int getEdgeIndex(Model model)
AreaSprite.Implementation
getEdgeIndex in class AreaSprite.Implementationpublic void update(TudeySceneModel.AreaEntry entry)
AreaSprite.Implementation
update in class AreaSprite.Implementationpublic void setVisible(boolean visible)
AreaSprite.Implementation
setVisible in class AreaSprite.Implementationpublic void dispose()
SimpleScope
dispose in class SimpleScope
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||