Interface VideoText

All Superinterfaces:
MovingRegion, org.opencastproject.mediapackage.XmlElement
All Known Implementing Classes:
VideoTextImpl

public interface VideoText extends MovingRegion
The VideoText element represents parts of the video with superimposed text. It is a subtype of a moving region (mpeg7:MovingRegionType).
 <complexType name="VideoTextType">
   <complexContent>
     <extension base="mpeg7:MovingRegionType">
       <sequence>
         <element name="Text" type="mpeg7:TextualType" minOccurs="0"/>
       </sequence>
       <attribute name="textType" use="optional">
         <simpleType>
           <union>
             <simpleType>
               <restriction base="NMTOKEN">
                 <enumeration value="superimposed"/>
                 <enumeration value="scene"/>
               </restriction>
             </simpleType>
             <simpleType>
               <restriction base="mpeg7:termAliasReferenceType"/>
             </simpleType>
             <simpleType>
               <restriction base="mpeg7:termURIReferenceType"/>
             </simpleType>
           </union>
         </simpleType>
       </attribute>
       <attribute name="fontSize" type="positiveInteger" use="optional"/>
       <attribute name="fontType" type="string" use="optional"/>
     </extension>
   </complexContent>
 </complexType>
 
  • Method Details

    • setIdentifier

      void setIdentifier(String id)
      Sets the segment identifier.
      Parameters:
      id - the identifier
    • getIdentifier

      String getIdentifier()
      Returns the segment identifier.
      Returns:
      the identifier
    • setText

      void setText(Textual text)
      Sets the text.
      Parameters:
      text - the text
    • getText

      Textual getText()
      Returns the text.
      Returns:
      the text
    • setType

      void setType(VideoText.Type type)
      Sets the videotext type.
      Parameters:
      type - the type
    • getType

      VideoText.Type getType()
      Rerturns the videotext type.
      Returns:
      the type
    • setFontType

      void setFontType(String fontType)
      Sets the optional font type.
      Parameters:
      fontType - the font type
    • getFontType

      String getFontType()
      Returns the font type.
      Returns:
      the font type
    • setFontSize

      void setFontSize(int size)
      Sets the optional font size.
      Parameters:
      size - the font size
    • getFontSize

      int getFontSize()
      Returns the font size.
      Returns:
      the font size
    • setBoundary

      void setBoundary(Rectangle rectangle)
      Sets the text's bounding box.
      Parameters:
      rectangle - the bounding box
    • getBoundary

      Rectangle getBoundary()
      Returns the text's bounding box.
      Returns:
      the bounding box