Package svs_demogame :: Module timebasedviews :: Class TimeCursorController
[show private | hide private]
[frames | no frames]

Class TimeCursorController

Listenable --+
             |
            TimeCursorController


Coordinating class for cursors indicating current, or selected time. Used to synchronise multiple views.
Method Summary
  __init__(self)
  addView(self, view)
Connects view to time cursor.
  removeView(self, view)
Removes view from time cursor.
  selectItem(self, selectedItem)
Selects specified item if present within view.
  setCursorTime(self, newTime)
Sets the diplayed time and notifies listeners.
  start(self, startTime)
Sets starts time to specified value, or current time if no value given.
  synchViews(self)
Sends cursor time to views for display or synchronisation.
    Inherited from Listenable
  addListener(self, listener, listenFor)
Adds new listener to avatar.
  handleListenRequest(self, listenRequest)
Deals with listen request from another client.
  notifyListeners(self, listenFor, dataPacket)
Forward data to listeners.
  removeListener(self, listener, listenFor)
Removes listener from avatar.

Method Details

addView(self, view)

Connects view to time cursor.

removeView(self, view)

Removes view from time cursor.

selectItem(self, selectedItem)

Selects specified item if present within view.

This method is used to synchronise selesctions between the different tracker views.

setCursorTime(self, newTime=None)

Sets the diplayed time and notifies listeners.

If no time value is given, sets it to the current time.
Parameters:
newTime
           (type=float)

start(self, startTime=None)

Sets starts time to specified value, or current time if no value given.
Parameters:
startTime
           (type=float)

synchViews(self)

Sends cursor time to views for display or synchronisation.

Generated by Epydoc 2.1 on Thu Oct 20 15:30:30 2005 http://epydoc.sf.net