com.threerings.tudey.client.cursor
Class AreaCursor

java.lang.Object
  extended by com.threerings.expr.SimpleScope
      extended by com.threerings.tudey.client.cursor.Cursor
          extended by com.threerings.tudey.client.cursor.EntryCursor
              extended by com.threerings.tudey.client.cursor.AreaCursor
All Implemented Interfaces:
ConfigUpdateListener<AreaConfig>, Scope, ScopeUpdateListener, Compositable, Tickable

public class AreaCursor
extends EntryCursor
implements ConfigUpdateListener<AreaConfig>

Represents an area entry.


Nested Class Summary
static class AreaCursor.Implementation
          The actual cursor implementation.
static class AreaCursor.Original
          An original implementation.
 
Field Summary
 
Fields inherited from interface com.threerings.expr.Scope
EPOCH, NOW
 
Constructor Summary
AreaCursor(TudeyContext ctx, TudeySceneView view, TudeySceneModel.AreaEntry entry)
          Creates a new area cursor.
 
Method Summary
 void composite()
          Adds this object's Dependencys and Enqueueables to the compositor in preparation for rendering.
 void configUpdated(ConfigEvent<AreaConfig> event)
          Called when a configuration has been updated.
 void dispose()
          Releases the resources associated with this scope.
 TudeySceneModel.Entry getEntry()
          Returns a reference to the most recently set entry state.
 Shape getShape()
          Returns a reference to the shape of the entry (or null for none).
 void tick(float elapsed)
          Updates the state of this object based on the elapsed time in seconds.
 void update(TudeySceneModel.Entry entry)
          Updates the cursor with new entry state.
 
Methods inherited from class com.threerings.tudey.client.cursor.Cursor
getScopeName
 
Methods inherited from class com.threerings.expr.SimpleScope
addListener, get, getParentScope, removeListener, scopeUpdated
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AreaCursor

public AreaCursor(TudeyContext ctx,
                  TudeySceneView view,
                  TudeySceneModel.AreaEntry entry)
Creates a new area cursor.

Method Detail

configUpdated

public void configUpdated(ConfigEvent<AreaConfig> event)
Description copied from interface: ConfigUpdateListener
Called when a configuration has been updated.

Specified by:
configUpdated in interface ConfigUpdateListener<AreaConfig>

getEntry

public TudeySceneModel.Entry getEntry()
Description copied from class: EntryCursor
Returns a reference to the most recently set entry state.

Specified by:
getEntry in class EntryCursor

getShape

public Shape getShape()
Description copied from class: EntryCursor
Returns a reference to the shape of the entry (or null for none).

Specified by:
getShape in class EntryCursor

update

public void update(TudeySceneModel.Entry entry)
Description copied from class: EntryCursor
Updates the cursor with new entry state.

Specified by:
update in class EntryCursor

tick

public void tick(float elapsed)
Description copied from interface: Tickable
Updates the state of this object based on the elapsed time in seconds.

Specified by:
tick in interface Tickable
Overrides:
tick in class Cursor

composite

public void composite()
Description copied from interface: Compositable
Adds this object's Dependencys and Enqueueables to the compositor in preparation for rendering.

Specified by:
composite in interface Compositable
Overrides:
composite in class Cursor

dispose

public void dispose()
Description copied from class: SimpleScope
Releases the resources associated with this scope.

Overrides:
dispose in class SimpleScope


Copyright © 2011. All Rights Reserved.