anvil.annot
Class SingletonTrack

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

public class SingletonTrack
extends SecondaryTrack

Every element refers to exactly one element in the reference track.


Field Summary
 
Fields inherited from class anvil.annot.SecondaryTrack
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
SingletonTrack(Annotation annotation, GroupNode parent, ContainerSpec ts)
           
 
Method Summary
 boolean removeElement(AnnotationElement el)
          Removing a singleton element.
 
Methods inherited from class anvil.annot.SecondaryTrack
findTrackAncestry, getRefTrack
 
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, 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, replaceAttributeValue
 
Methods inherited from interface anvil.annot.AnnotationNode
getFirstHidden, getName, getParent, getShortName, isOpen, isVisible, setOpen, setVisible
 

Constructor Detail

SingletonTrack

public SingletonTrack(Annotation annotation,
                      GroupNode parent,
                      ContainerSpec ts)
Method Detail

removeElement

public boolean removeElement(AnnotationElement el)
Removing a singleton element.

Specified by:
removeElement in interface Track
Specified by:
removeElement in class AnnotationContainer
Parameters:
el - element to be removed
Returns:
true if operation was successful