Package com.brightcove.player.model
Class Block
- java.lang.Object
-
- com.brightcove.player.model.Element
-
- com.brightcove.player.model.StyledElement
-
- com.brightcove.player.model.Block
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
BrightcoveClosedCaption
public class Block extends StyledElement
Represents a single timed-text element.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.brightcove.player.model.StyledElement
StyledElement.FontStyle, StyledElement.FontWeight, StyledElement.TextAlign, StyledElement.TextDecoration, StyledElement.Unit
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.IntegerbeginTimeDeprecated.protected longbeginTimeLongprotected java.lang.IntegerendTimeDeprecated.protected longendTimeLongprotected java.lang.Stringregion-
Fields inherited from class com.brightcove.player.model.StyledElement
backgroundColor, color, fontFamily, fontSize, fontStyle, fontWeight, styleName, textAlign, textDecoration
-
-
Constructor Summary
Constructors Constructor Description Block()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intgetBeginTime()Deprecated.longgetBeginTimeLong()The starting time of the element in milliseconds.intgetEndTime()Deprecated.longgetEndTimeLong()The ending time of the element in milliseconds.java.lang.StringgetRegion()The region name for this timed-text element.voidsetBeginTime(int beginTime)Deprecated.voidsetBeginTime(long beginTime)The starting time of the element in milliseconds.voidsetEndTime(int endTime)Deprecated.voidsetEndTime(long endTime)The ending time of the element in milliseconds.voidsetRegion(java.lang.String region)The region name for this timed-text element.-
Methods inherited from class com.brightcove.player.model.StyledElement
getBackgroundColor, getColor, getFontFamily, getFontSize, getFontStyle, getFontWeight, getStyleName, getTextAlign, getTextDecoration, setBackgroundColor, setColor, setFontFamily, setFontSize, setFontStyle, setFontWeight, setStyleName, setTextAlign, setTextDecoration
-
-
-
-
Method Detail
-
getBeginTime
@Deprecated public int getBeginTime()
Deprecated.Deprecated. Instead use {getBeginTimeLong()}
-
getBeginTimeLong
public long getBeginTimeLong()
The starting time of the element in milliseconds.- Returns:
- the starting time in milliseconds
-
setBeginTime
@Deprecated public void setBeginTime(int beginTime)
Deprecated.Deprecated. Instead use {setBeginTime(long)}
-
setBeginTime
public void setBeginTime(long beginTime)
The starting time of the element in milliseconds.- Parameters:
beginTime- the starting time in milliseconds
-
getEndTime
@Deprecated public int getEndTime()
Deprecated.Deprecated. Instead use {getBeginTimeLong()}
-
getEndTimeLong
public long getEndTimeLong()
The ending time of the element in milliseconds.- Returns:
- the ending time in milliseconds
-
setEndTime
@Deprecated public void setEndTime(int endTime)
Deprecated.Deprecated. Instead use {setEndTime(long)}
-
setEndTime
public void setEndTime(long endTime)
The ending time of the element in milliseconds.- Parameters:
endTime- the ending time in milliseconds
-
getRegion
public java.lang.String getRegion()
The region name for this timed-text element.- Returns:
- the name of the
Region
-
setRegion
public void setRegion(java.lang.String region)
The region name for this timed-text element.- Parameters:
region- the name of theRegion
-
-