Class VideoTextImpl
java.lang.Object
org.opencastproject.metadata.mpeg7.VideoTextImpl
- All Implemented Interfaces:
org.opencastproject.mediapackage.XmlElement,MovingRegion,VideoText
Default implementation of the video text element.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opencastproject.metadata.mpeg7.VideoText
VideoText.Type -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected RectangleThe text's bounding boxprotected intThe font sizeprotected StringThe font's nameprotected StringThe segment identifierprotected SpatioTemporalLocatorThe text' time and durationprotected TextualThe textprotected VideoText.TypeThe video text type -
Constructor Summary
ConstructorsConstructorDescriptionVideoTextImpl(String id) Creates a newVideoTextelement with the given id, text and text boundary.VideoTextImpl(String id, Textual text, Rectangle boundary, MediaTime time) Creates a newVideoTextelement with the given id, text and text boundary. -
Method Summary
Modifier and TypeMethodDescriptionReturns the text's bounding box.intReturns the font size.Returns the font type.Returns the segment identifier.Returns the spatio temporal locator.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 spatio temporal locator.voidSets the text.voidsetType(VideoText.Type type) Sets the videotext type.
-
Field Details
-
type
The video text type -
id
The segment identifier -
text
The text -
boundary
The text's bounding box -
locator
The text' time and duration -
fontType
The font's name -
fontSize
protected int fontSizeThe font size
-
-
Constructor Details
-
VideoTextImpl
Creates a newVideoTextelement with the given id, text and text boundary.- Parameters:
id- the text identifier
-
VideoTextImpl
Creates a newVideoTextelement with the given id, text and text boundary.- Parameters:
id- the text identifiertext- the textboundary- the text's bounding boxtime- the media time
-
-
Method Details
-
setIdentifier
Sets the segment identifier.- Specified by:
setIdentifierin interfaceVideoText- Parameters:
id- the identifier- See Also:
-
getIdentifier
Returns the segment identifier.- Specified by:
getIdentifierin interfaceVideoText- Returns:
- the identifier
- See Also:
-
setType
Sets the videotext type. -
getType
Rerturns the videotext type. -
setText
Sets the text. -
getText
Returns the text. -
setBoundary
Sets the text's bounding box.- Specified by:
setBoundaryin interfaceVideoText- Parameters:
rectangle- the bounding box- See Also:
-
getBoundary
Returns the text's bounding box.- Specified by:
getBoundaryin interfaceVideoText- Returns:
- the bounding box
- See Also:
-
setFontSize
public void setFontSize(int size) Sets the optional font size.- Specified by:
setFontSizein interfaceVideoText- Parameters:
size- the font size- See Also:
-
getFontSize
public int getFontSize()Returns the font size.- Specified by:
getFontSizein interfaceVideoText- Returns:
- the font size
- See Also:
-
setFontType
Sets the optional font type.- Specified by:
setFontTypein interfaceVideoText- Parameters:
fontType- the font type- See Also:
-
getFontType
Returns the font type.- Specified by:
getFontTypein interfaceVideoText- Returns:
- the font type
- See Also:
-
setSpatioTemporalLocator
Sets the spatio temporal locator.- Specified by:
setSpatioTemporalLocatorin interfaceMovingRegion- Parameters:
locator- the region locator- See Also:
-
getSpatioTemporalLocator
Returns the spatio temporal locator.- Specified by:
getSpatioTemporalLocatorin interfaceMovingRegion- Returns:
- the locator
- See Also:
-
toXml
- Specified by:
toXmlin interfaceorg.opencastproject.mediapackage.XmlElement- See Also:
-