public class VttRegion extends Object
Modifier and Type | Class and Description |
---|---|
static class |
VttRegion.Scroll |
Constructor and Description |
---|
VttRegion(String id,
String width,
int lines,
String regionAnchor,
String viewportAnchor,
VttRegion.Scroll scroll)
Creates a region based on the required arguments
|
Modifier and Type | Method and Description |
---|---|
String |
getId() |
int |
getLines() |
String |
getRegionAnchor() |
StringBuilder |
getRepresentation()
Gets the representation as StringBuilder
|
VttRegion.Scroll |
getScroll() |
String |
getViewportAnchor() |
String |
getWidth() |
public VttRegion(String id, String width, int lines, String regionAnchor, String viewportAnchor, VttRegion.Scroll scroll)
id
- the id of the regionwidth
- A number giving the width of the box within which the text of each line of the
containing cues is to be rendered, to be interpreted as a percentage of the video
width. Defaults to 100.lines
- A number giving the number of lines of the box within which the text of each line
of the containing cues is to be rendered. Defaults to 3.regionAnchor
- Two numbers giving the x and y coordinates within the region which is anchored to
the video viewport and does not change location even when the region does, e.g.
because of font size changes. Defaults to (0,100), i.e. the bottom left corner of
the region.viewportAnchor
- Two numbers giving the x and y coordinates within the video viewport to which the
region anchor point is anchored. Defaults to (0,100), i.e. the bottom left corner
of the viewport.scroll
- none: Indicates that the cues in the region are not to scroll and instead
stay fixed at the location they were first painted in. up Indicates that
the cues in the region will be added at the bottom of the region and push any
already displayed cues in the region up until all lines of the new cue are visible
in the region.public String getId()
public String getWidth()
public int getLines()
public String getRegionAnchor()
public String getViewportAnchor()
public VttRegion.Scroll getScroll()
public StringBuilder getRepresentation()
Copyright © 2015. All rights reserved.