Interface SpatioTemporalDecomposition

All Superinterfaces:
XmlElement
All Known Implementing Classes:
SpatioTemporalDecompositionImpl

public interface SpatioTemporalDecomposition extends XmlElement
Decomposition type for space and time.
  • Method Summary

    Modifier and Type
    Method
    Description
    addVideoText(Textual text, Rectangle boundary, MediaTime time)
    Adds the specified text as a VideoText element to the decomposition.
    void
    Adds the VideoText element to the decomposition.
    Returns all the video text elements from this decomposition.
    Returns the VideoText element with the given identifier or null if there is no such element.
    boolean
    Returns true if the segment has a gap.
    boolean
    Returns true if the segment overlaps with another one.
    void
    setGap(boolean hasGap)
    Set the hasGap property indicating that there may be gaps in between the segments.
    void
    setOverlapping(boolean isOverlapping)
    Set the isOverlapping property indicating that some segments may be overlapping.

    Methods inherited from interface org.opencastproject.mediapackage.XmlElement

    toXml
  • Method Details

    • setGap

      void setGap(boolean hasGap)
      Set the hasGap property indicating that there may be gaps in between the segments.
      Parameters:
      hasGap - true if there are gaps
    • hasGap

      boolean hasGap()
      Returns true if the segment has a gap.
      Returns:
      true if the segment has a gap
    • setOverlapping

      void setOverlapping(boolean isOverlapping)
      Set the isOverlapping property indicating that some segments may be overlapping.
      Parameters:
      isOverlapping - true if elements are overlapping
    • isOverlapping

      boolean isOverlapping()
      Returns true if the segment overlaps with another one.
      Returns:
      true if the segment overlaps
    • addVideoText

      VideoText addVideoText(Textual text, Rectangle boundary, MediaTime time)
      Adds the specified text as a VideoText element to the decomposition.
      Parameters:
      text - the text
      boundary - the text's bounding box
      time - the time and duration
      Returns:
      the new video text element
    • addVideoText

      void addVideoText(VideoText videoText)
      Adds the VideoText element 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

      VideoText getVideoText(String id)
      Returns the VideoText element with the given identifier or null if there is no such element.
      Parameters:
      id - the video text id
      Returns:
      the video text element