Interface VideoText
- All Superinterfaces:
MovingRegion,org.opencastproject.mediapackage.XmlElement
- All Known Implementing Classes:
VideoTextImpl
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>
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionReturns the text's bounding box.intReturns the font size.Returns the font type.Returns the segment identifier.getText()Returns the text.getType()Rerturns the videotext type.voidsetBoundary(Rectangle rectangle) Sets the text's bounding box.voidsetFontSize(int size) Sets the optional font size.voidsetFontType(String fontType) Sets the optional font type.voidsetIdentifier(String id) Sets the segment identifier.voidSets the text.voidsetType(VideoText.Type type) Sets the videotext type.Methods inherited from interface org.opencastproject.metadata.mpeg7.MovingRegion
getSpatioTemporalLocator, setSpatioTemporalLocatorMethods inherited from interface org.opencastproject.mediapackage.XmlElement
toXml
-
Method Details
-
setIdentifier
Sets the segment identifier.- Parameters:
id- the identifier
-
getIdentifier
String getIdentifier()Returns the segment identifier.- Returns:
- the identifier
-
setText
Sets the text.- Parameters:
text- the text
-
getText
Textual getText()Returns the text.- Returns:
- the text
-
setType
Sets the videotext type.- Parameters:
type- the type
-
getType
VideoText.Type getType()Rerturns the videotext type.- Returns:
- the type
-
setFontType
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
Sets the text's bounding box.- Parameters:
rectangle- the bounding box
-
getBoundary
Rectangle getBoundary()Returns the text's bounding box.- Returns:
- the bounding box
-