Horus Doc || Java GUI Reference || Doxygen's quick Index  

SegmentDescriptionDisplayer Class Reference

Inheritance diagram for SegmentDescriptionDisplayer::

PlayingAdapter PlayingObserver List of all members.

Public Methods

 SegmentDescriptionDisplayer (SegmentDescriptionItem i, HxCorba.VxSegmentationOperations segmentation)
void updateNewFrame (int frameNr)
String getTypeFeature ()
void setTypeFeature (String typeFeature)
String getDescriptionFeature ()
void setDescriptionFeature (String descriptionFeature)

Protected Methods

String getSegmentType (HxCorba.VxSegment seg)
String getSegmentDescription (HxCorba.VxSegment seg)

Constructor & Destructor Documentation

SegmentDescriptionDisplayer::SegmentDescriptionDisplayer SegmentDescriptionItem    i,
HxCorba.VxSegmentationOperations    segmentation
[inline]
 

00017 {
00018     _item = i;
00019     _segmentation = segmentation;
00020     _timesList = new TimeSpanList(segmentation.getTimeSpans());
00021 }


Member Function Documentation

void SegmentDescriptionDisplayer::updateNewFrame int    frameNr [inline]
 

Reimplemented from PlayingAdapter.

00024 {
00025     if(_item.isDisplaying(frameNr)) return;
00026     _item.clearSegmentInfo();
00027 
00028     int index = _timesList.searchSegmentOfFrame(frameNr);
00029     if(index == -1) return;
00030 
00031     HxCorba.VxSegment seg = _segmentation.getSegment(index);
00032     String type = getSegmentType(seg);
00033     String desc = getSegmentDescription(seg);
00034     _item.updateSegmentInfo(type, seg.start(), seg.end(), desc);
00035 }

String SegmentDescriptionDisplayer::getTypeFeature   [inline]
 

00038 {
00039     return _typeFeature;
00040 }

void SegmentDescriptionDisplayer::setTypeFeature String    typeFeature [inline]
 

00043 {
00044     _typeFeature = typeFeature;
00045 }

String SegmentDescriptionDisplayer::getDescriptionFeature   [inline]
 

00048 {
00049     return _descriptionFeature;
00050 }

void SegmentDescriptionDisplayer::setDescriptionFeature String    descriptionFeature [inline]
 

00053 {
00054     _descriptionFeature = descriptionFeature;
00055 }

String SegmentDescriptionDisplayer::getSegmentType HxCorba.VxSegment    seg [inline, protected]
 

00063                                                        {
00064     return seg.getString(_typeFeature);
00065 }

String SegmentDescriptionDisplayer::getSegmentDescription HxCorba.VxSegment    seg [inline, protected]
 

00067                                                               {
00068     return seg.getString(_descriptionFeature);
00069 }


The documentation for this class was generated from the following file:
Generated on Mon Jan 27 15:11:26 2003 for JavaReference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001