Inheritance diagram for SegmentDescriptionDisplayer::

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) |
|
||||||||||||
|
00017 {
00018 _item = i;
00019 _segmentation = segmentation;
00020 _timesList = new TimeSpanList(segmentation.getTimeSpans());
00021 }
|
|
|
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 }
|
|
|
00038 {
00039 return _typeFeature;
00040 }
|
|
|
00043 {
00044 _typeFeature = typeFeature;
00045 }
|
|
|
00048 {
00049 return _descriptionFeature;
00050 }
|
|
|
00053 {
00054 _descriptionFeature = descriptionFeature;
00055 }
|
|
|
00063 {
00064 return seg.getString(_typeFeature);
00065 }
|
|
|
00067 {
00068 return seg.getString(_descriptionFeature);
00069 }
|
1.2.12 written by Dimitri van Heesch,
© 1997-2001