Interface SpatioTemporalDecomposition
- All Superinterfaces:
XmlElement
- All Known Implementing Classes:
SpatioTemporalDecompositionImpl
Decomposition type for space and time.
-
Method Summary
Modifier and TypeMethodDescriptionaddVideoText(Textual text, Rectangle boundary, MediaTime time) Adds the specified text as aVideoTextelement to the decomposition.voidaddVideoText(VideoText videoText) Adds theVideoTextelement to the decomposition.Returns all the video text elements from this decomposition.getVideoText(String id) Returns theVideoTextelement with the given identifier ornullif there is no such element.booleanhasGap()Returnstrueif the segment has a gap.booleanReturnstrueif the segment overlaps with another one.voidsetGap(boolean hasGap) Set thehasGapproperty indicating that there may be gaps in between the segments.voidsetOverlapping(boolean isOverlapping) Set theisOverlappingproperty indicating that some segments may be overlapping.Methods inherited from interface org.opencastproject.mediapackage.XmlElement
toXml
-
Method Details
-
setGap
void setGap(boolean hasGap) Set thehasGapproperty indicating that there may be gaps in between the segments.- Parameters:
hasGap-trueif there are gaps
-
hasGap
boolean hasGap()Returnstrueif the segment has a gap.- Returns:
trueif the segment has a gap
-
setOverlapping
void setOverlapping(boolean isOverlapping) Set theisOverlappingproperty indicating that some segments may be overlapping.- Parameters:
isOverlapping-trueif elements are overlapping
-
isOverlapping
boolean isOverlapping()Returnstrueif the segment overlaps with another one.- Returns:
trueif the segment overlaps
-
addVideoText
Adds the specified text as aVideoTextelement to the decomposition.- Parameters:
text- the textboundary- the text's bounding boxtime- the time and duration- Returns:
- the new video text element
-
addVideoText
Adds theVideoTextelement to the decomposition.- Parameters:
videoText- the video text
-
getVideoText
VideoText[] getVideoText()Returns all the video text elements from this decomposition.- Returns:
- the video text elements
-
getVideoText
Returns theVideoTextelement with the given identifier ornullif there is no such element.- Parameters:
id- the video text id- Returns:
- the video text element
-