Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
a035c2e2
authored
Dec 17, 2019
by
ibaker
Committed by
Oliver Woodman
Dec 18, 2019
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Reformat some javadoc on Cue
PiperOrigin-RevId: 285964228
parent
dfc15733
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
15 deletions
library/core/src/main/java/com/google/android/exoplayer2/text/Cue.java
library/core/src/main/java/com/google/android/exoplayer2/text/Cue.java
View file @
a035c2e2
...
@@ -142,23 +142,37 @@ public final class Cue {
...
@@ -142,23 +142,37 @@ public final class Cue {
* <p>{@link #LINE_TYPE_FRACTION} indicates that {@link #line} is a fractional position within the
* <p>{@link #LINE_TYPE_FRACTION} indicates that {@link #line} is a fractional position within the
* viewport.
* viewport.
*
*
* <p>{@link #LINE_TYPE_NUMBER} indicates that {@link #line} is a line number, where the size of
* <ul>
* each line is taken to be the size of the first line of the cue. When {@link #line} is greater
* <li>{@link #LINE_TYPE_FRACTION} indicates that {@link #line} is a fractional position within
* than or equal to 0 lines count from the start of the viewport, with 0 indicating zero offset
* the viewport.
* from the start edge. When {@link #line} is negative lines count from the end of the viewport,
* <li>
* with -1 indicating zero offset from the end edge. For horizontal text the line spacing is the
* <ul>
* height of the first line of the cue, and the start and end of the viewport are the top and
* <li>{@link #LINE_TYPE_NUMBER} indicates that {@link #line} is a line number, where the
* bottom respectively.
* size of each line is taken to be the size of the first line of the cue.
* <li>When {@link #line} is greater than or equal to 0 lines count from the start of the
* viewport, with 0 indicating zero offset from the start edge. When {@link #line} is
* negative lines count from the end of the viewport, with -1 indicating zero offset
* from the end edge.
* <li>For horizontal text the line spacing is the height of the first line of the cue,
* and the start and end of the viewport are the top and bottom respectively.
* </ul>
* </ul>
*
*
* <p>Note that it's particularly important to consider the effect of {@link #lineAnchor} when
* <p>Note that it's particularly important to consider the effect of {@link #lineAnchor} when
* using {@link #LINE_TYPE_NUMBER}. {@code (line == 0 && lineAnchor == ANCHOR_TYPE_START)}
* using {@link #LINE_TYPE_NUMBER}.
* positions a (potentially multi-line) cue at the very top of the viewport. {@code (line == -1 &&
*
* lineAnchor == ANCHOR_TYPE_END)} positions a (potentially multi-line) cue at the very bottom of
* <ul>
* the viewport. {@code (line == 0 && lineAnchor == ANCHOR_TYPE_END)} and {@code (line == -1 &&
* <li>{@code (line == 0 && lineAnchor == ANCHOR_TYPE_START)} positions a (potentially
* lineAnchor == ANCHOR_TYPE_START)} position cues entirely outside of the viewport. {@code (line
* multi-line) cue at the very start of the viewport.
* == 1 && lineAnchor == ANCHOR_TYPE_END)} positions a cue so that only the last line is visible
* <li>{@code (line == -1 && lineAnchor == ANCHOR_TYPE_END)} positions a (potentially
* at the top of the viewport. {@code (line == -2 && lineAnchor == ANCHOR_TYPE_START)} position a
* multi-line) cue at the very end of the viewport.
* cue so that only its first line is visible at the bottom of the viewport.
* <li>{@code (line == 0 && lineAnchor == ANCHOR_TYPE_END)} and {@code (line == -1 && lineAnchor
* == ANCHOR_TYPE_START)} position cues entirely outside of the viewport.
* <li>{@code (line == 1 && lineAnchor == ANCHOR_TYPE_END)} positions a cue so that only the
* last line is visible at the start of the viewport.
* <li>{@code (line == -2 && lineAnchor == ANCHOR_TYPE_START)} position a cue so that only its
* first line is visible at the end of the viewport.
* </ul>
*/
*/
public
final
@LineType
int
lineType
;
public
final
@LineType
int
lineType
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment