anvil.annot
Class PrimaryTrackElement

java.lang.Object
  |
  +--anvil.annot.AnnotationElement
        |
        +--anvil.annot.TrackElement
              |
              +--anvil.annot.PrimaryTrackElement

public class PrimaryTrackElement
extends TrackElement

Primary track elements have a start and end time which refer directly to the video track.


Field Summary
protected  javax.media.Time endTime
           
protected  javax.media.Time startTime
           
 
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
PrimaryTrackElement(PrimaryTrack tr, javax.media.Time start, javax.media.Time end)
          Constructor
 
Method Summary
 javax.media.Time getEndTime()
          Returns end time of the element.
 javax.media.Time getStartTime()
          Returns start time of the element.
 void setEndTime(javax.media.Time time)
          Sets end time of the element.
 void setStartTime(javax.media.Time time)
          Sets 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

startTime

protected javax.media.Time startTime

endTime

protected javax.media.Time endTime
Constructor Detail

PrimaryTrackElement

public PrimaryTrackElement(PrimaryTrack tr,
                           javax.media.Time start,
                           javax.media.Time end)
                    throws CantAddException
Constructor

Method Detail

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

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

setStartTime

public void setStartTime(javax.media.Time time)
                  throws TrackElementException
Sets start time of the element.

TrackElementException

setEndTime

public void setEndTime(javax.media.Time time)
                throws TrackElementException
Sets end time of the element.

TrackElementException

toString

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