com.e1.mxdublin.evlist
Class TrailEventList

java.lang.Object
  extended by com.e1.mxdublin.core.SeqEvent
      extended by com.e1.mxdublin.Trail
          extended by com.e1.mxdublin.evlist.TrailEventList
All Implemented Interfaces:
Runnable

public class TrailEventList
extends Trail

Used to play events within a EvList. If the list content has changed since the last event was played it will re-adapt it self from the new content of the associated list. If the trail has played all the event into the list it will simply loop to the first event; like any another trails.


Field Summary
 
Fields inherited from class com.e1.mxdublin.Trail
clocked, globalStart, globalStop, last, quantizeCtrl, started, view
 
Fields inherited from class com.e1.mxdublin.core.SeqEvent
mandatory
 
Constructor Summary
TrailEventList()
           
TrailEventList(EvList list)
           
TrailEventList(EvList list, String name)
           
 
Method Summary
protected  TrailView factoryView(DublinProject project)
          Trails must returns a Swing TrailView object if they want to provide a gui editor to this trail.
 EvList getList()
          Returns the associated list
 int getLoopPoint()
           
protected  void loadElement(Element e)
          Called when the trail is instantiated from fromXML(Element).
 void reposition()
          Reposition is called when the list is modified.
 void setList(EvList list)
          Sets a new list to play.
 void start(int tm)
          Starts trail now + tm.
 void tick()
          Method to be called by the sequencer that has been sync by event() and next().
 Element toXML()
          Returns the XML representation of this Trail.
 
Methods inherited from class com.e1.mxdublin.Trail
dispose, event, eventf, fromXML, getName, getTime, isRunning, next, nextf, reset, run, showView, start, stop, toBaseXML, toggle, toString
 
Methods inherited from class com.e1.mxdublin.core.SeqEvent
cancel, eventDebug
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TrailEventList

public TrailEventList()

TrailEventList

public TrailEventList(EvList list)

TrailEventList

public TrailEventList(EvList list,
                      String name)
Method Detail

start

public void start(int tm)
Description copied from class: Trail
Starts trail now + tm.

Overrides:
start in class Trail
Parameters:
tm - time to start from now

tick

public void tick()
Description copied from class: Trail
Method to be called by the sequencer that has been sync by event() and next().

Specified by:
tick in class Trail

reposition

public void reposition()
Reposition is called when the list is modified. It is used to reposition the time pointer based on the new list.


setList

public void setList(EvList list)
Sets a new list to play.

This method will reset the trail

Parameters:
list - EvList to play

getList

public EvList getList()
Returns the associated list

Returns:
the associated list

getLoopPoint

public int getLoopPoint()

loadElement

protected void loadElement(Element e)
Description copied from class: Trail
Called when the trail is instantiated from fromXML(Element). Trails that support this feature should override this method to read extra definition from the XML element.

Overrides:
loadElement in class Trail
Parameters:
e - the original generic trail definition

toXML

public Element toXML()
Description copied from class: Trail
Returns the XML representation of this Trail. Returns null if the trail doesn't support serialization (the default).

Overrides:
toXML in class Trail
Returns:
the Trail representation in XML

factoryView

protected TrailView factoryView(DublinProject project)
Description copied from class: Trail
Trails must returns a Swing TrailView object if they want to provide a gui editor to this trail.

Overrides:
factoryView in class Trail
Returns:
trail view of this trail.