public class VttCue extends Object
Modifier and Type | Class and Description |
---|---|
static class |
VttCue.Alignment |
static class |
VttCue.Vertical |
Constructor and Description |
---|
VttCue(String cueId,
VttTime startTime,
VttTime stopTime,
String text)
Creates a cue with the required arguments
|
Modifier and Type | Method and Description |
---|---|
VttCue.Alignment |
getAlignment()
Gets the alignment of the text
|
String |
getCueId()
Gets the cue id
|
String |
getLine()
Gets the position the text will appear vertically
|
String |
getNote()
Gets the note of the cue
|
String |
getPosition()
Gets the position of the text
|
VttRegion |
getRegion()
Gets the region applied to the cue
|
StringBuilder |
getRepresentation()
Gets the representation as builder
|
String |
getSize()
Gets the size (width of the text area)
|
VttTime |
getStartTime()
Gets the start time
|
VttTime |
getStopTime()
Gets the stop time
|
String |
getText()
Gets the text content
|
VttCue.Vertical |
getVertical()
Gets the vertical behavior
|
String |
getVoiceSpan()
Gets the voice span applied to the cue
|
VttCue |
setAlignment(VttCue.Alignment alignment)
Sets the alignment of the text
|
VttCue |
setLine(String line)
Sets the position the text will appear vertically (number, percentage e.g.
|
VttCue |
setNote(String note)
Sets the note of the cue
|
VttCue |
setPosition(String position)
Sets the position the text will appear horizontally (percentage e.g.
|
VttCue |
setRegion(VttRegion vttRegion)
Sets the region applied to the cue
|
VttCue |
setSize(String size)
Sets the size (width of the text area)
|
VttCue |
setVertical(VttCue.Vertical vertical)
Sets the text to be displayed vertically rather than horizontally, such as in some Asian
languages
|
VttCue |
setVoiceSpan(String voiceSpan)
Sets a voice span applied to the cue
|
public String getLine()
public VttCue setLine(String line)
line
- the position the text will appear verticallypublic String getPosition()
public VttCue setPosition(String position)
position
- the position of the textpublic String getSize()
public VttCue setSize(String size)
size
- the size of the text area (percentage e.g. 40%)public VttCue.Alignment getAlignment()
public VttCue setAlignment(VttCue.Alignment alignment)
alignment
- the alignment of the textpublic VttCue.Vertical getVertical()
public VttCue setVertical(VttCue.Vertical vertical)
vertical
- the vertical behaviorpublic String getVoiceSpan()
public VttCue setVoiceSpan(String voiceSpan)
voiceSpan
- the voice span applied to the cuepublic VttRegion getRegion()
public VttCue setRegion(VttRegion vttRegion)
vttRegion
- the region applied to the cuepublic String getNote()
public VttCue setNote(String note)
note
- the note to be set to the cuepublic String getCueId()
public VttTime getStartTime()
public VttTime getStopTime()
public String getText()
public StringBuilder getRepresentation()
Copyright © 2015. All rights reserved.