anvil.annot
Class SpanTrackElement

java.lang.Object
  |
  +--anvil.annot.AnnotationElement
        |
        +--anvil.annot.TrackElement
              |
              +--anvil.annot.SecondaryTrackElement
                    |
                    +--anvil.annot.SpanTrackElement

public class SpanTrackElement
extends SecondaryTrackElement


Field Summary
protected  TrackElement endEl
           
protected  TrackElement startEl
           
 
Fields inherited from class anvil.annot.TrackElement
color, END_TIME, nextInGroup, prevInGroup, START_TIME
 
Fields inherited from class anvil.annot.AnnotationElement
avField, comment, container, index
 
Constructor Summary
SpanTrackElement(SpanTrack tr, TrackElement startEl, TrackElement endEl)
           
 
Method Summary
 void changeEndElement(TrackElement newEnd)
          Changes end element to new one.
 void changeStartElement(TrackElement newStart)
          Changes start element to new one.
 TrackElement getEndElement()
           
 javax.media.Time getEndTime()
          Returns end time of the element.
 TrackElement[] getSpannedElements()
          Returns the sequence of elements that is spanned by this secondary element.
 TrackElement getStartElement()
           
 javax.media.Time getStartTime()
          Returns start time of the element.
 java.lang.String toString()
           
protected  void writeAnvilFile(kipp.io.MyBufferedWriter f)
          Writes the chunk to the Anvil file (including outer tags).
 
Methods inherited from class anvil.annot.TrackElement
getColor, getColorString, getDuration, getGroupStartTime, getLinkDistance, getNiceSeconds, getTrack, updateColor
 
Methods inherited from class anvil.annot.AnnotationElement
addAttributeLinkValue, addAttributeLinkValueOnce, addDependent, ascii2xml, clearAttribute, clearExtraObjects, clearInlinks, findAllDependents, findElementInLinks, getAttribute, getBoolValue, getClonedDependents, getComment, getContainer, getDependents, getExtraObject, getInlinks, getInlinkTracks, getLinkedElements, getLinkNames, getListValue, getNumberValue, getOutlinks, getShowLabel, hasComment, isAttribute, meetsConstraints, putAttribute, putExtraObject, removeDependent, removeElementFromLinks, removeMeFromInlinks, setComment, setDependents, setInlinks, writeContents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

startEl

protected TrackElement startEl

endEl

protected TrackElement endEl
Constructor Detail

SpanTrackElement

public SpanTrackElement(SpanTrack tr,
                        TrackElement startEl,
                        TrackElement endEl)
Method Detail

getStartElement

public TrackElement getStartElement()

getEndElement

public TrackElement getEndElement()

changeStartElement

public void changeStartElement(TrackElement newStart)
                        throws TrackElementException
Changes start element to new one. Takes care of dependencies.

TrackElementException

changeEndElement

public void changeEndElement(TrackElement newEnd)
                      throws TrackElementException
Changes end element to new one. Takes care of dependencies.

TrackElementException

getSpannedElements

public TrackElement[] getSpannedElements()
Returns the sequence of elements that is spanned by this secondary element.


getStartTime

public javax.media.Time getStartTime()
Description copied from class: TrackElement
Returns start time of the element.

Specified by:
getStartTime in class TrackElement

getEndTime

public javax.media.Time getEndTime()
Description copied from class: TrackElement
Returns end time of the element.

Specified by:
getEndTime in class TrackElement

toString

public java.lang.String toString()
Overrides:
toString in class TrackElement

writeAnvilFile

protected void writeAnvilFile(kipp.io.MyBufferedWriter f)
                       throws java.io.IOException
Description copied from class: AnnotationElement
Writes the chunk to the Anvil file (including outer tags).

Overrides:
writeAnvilFile in class AnnotationElement
java.io.IOException