anvil.annot
Class SecondaryTrack

java.lang.Object
  |
  +--java.util.Observable
        |
        +--anvil.annot.AnvilAnnotationNode
              |
              +--anvil.annot.AnnotationContainer
                    |
                    +--anvil.annot.AnvilTrack
                          |
                          +--anvil.annot.SecondaryTrack
All Implemented Interfaces:
AnnotationNode, GraphicalTrack, Track
Direct Known Subclasses:
SingletonTrack, SpanTrack

public abstract class SecondaryTrack
extends AnvilTrack

Track that depends on another track.


Field Summary
protected  Track refTrack
           
 
Fields inherited from class anvil.annot.AnvilTrack
PER_MINUTE, PER_SECOND, typeName
 
Fields inherited from class anvil.annot.AnnotationContainer
elements, index2el
 
Fields inherited from class anvil.annot.AnvilAnnotationNode
annotation, name, open, parent, spec, visible
 
Constructor Summary
SecondaryTrack(Annotation annot, GroupNode parent, NodeSpec spec)
           
 
Method Summary
 java.util.List findTrackAncestry()
          Returns list of tracks that this track depends on.
 Track getRefTrack()
          Returns track this one is pointing to (the reference track).
 
Methods inherited from class anvil.annot.AnvilTrack
elementChanged, findContainedElements, findElement, findElement, findNextAfter, findNextBefore, firstElement, getElementCoverage, getElementRate, getElements, getHeightFactor, getMaxEndTime, getTypeArray, getTypeName, lastElement, nextElement, previousElement, print, toString
 
Methods inherited from class anvil.annot.AnnotationContainer
addElement, getAnnotation, getAttributeNames, getAttributeType, getElementCollection, getNumOfElements, getReciprocalLinkAttributes, getSpec, indexElements, isEmpty, query, removeElement, replaceAttributeValue, setName, unlinkElement, writeAnvilFile
 
Methods inherited from class anvil.annot.AnvilAnnotationNode
getFirstHidden, getName, getParent, getShortName, isOpen, isVisible, setOpen, setVisible
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface anvil.annot.Track
addElement, addObserver, getAnnotation, getAttributeNames, getAttributeType, getNumOfElements, getSpec, isEmpty, removeElement, replaceAttributeValue
 
Methods inherited from interface anvil.annot.AnnotationNode
getFirstHidden, getName, getParent, getShortName, isOpen, isVisible, setOpen, setVisible
 

Field Detail

refTrack

protected Track refTrack
Constructor Detail

SecondaryTrack

public SecondaryTrack(Annotation annot,
                      GroupNode parent,
                      NodeSpec spec)
Method Detail

findTrackAncestry

public java.util.List findTrackAncestry()
Description copied from interface: Track
Returns list of tracks that this track depends on. If this track is primary then the list is empty. If it is secondary it contains all "higher level" track up to a primary track which occupies the first place in the list.

Specified by:
findTrackAncestry in interface Track
Specified by:
findTrackAncestry in class AnvilTrack

getRefTrack

public Track getRefTrack()
Returns track this one is pointing to (the reference track).