media/docs/doc/reference-v1/com/google/android/exoplayer/text/Cue.html
2021-04-20 17:32:19 +01:00

603 lines
29 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_101) on Wed Dec 14 17:18:28 GMT 2016 -->
<title>Cue (ExoPlayer library)</title>
<meta name="date" content="2016-12-14">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Cue (ExoPlayer library)";
}
}
catch(err) {
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../com/google/android/exoplayer/text/CaptionStyleCompat.html" title="class in com.google.android.exoplayer.text"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../com/google/android/exoplayer/text/Subtitle.html" title="interface in com.google.android.exoplayer.text"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?com/google/android/exoplayer/text/Cue.html" target="_top">Frames</a></li>
<li><a href="Cue.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#methods.inherited.from.class.java.lang.Object">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li>Method</li>
</ul>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">com.google.android.exoplayer.text</div>
<h2 title="Class Cue" class="title">Class Cue</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li>com.google.android.exoplayer.text.Cue</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public class <span class="typeNameLabel">Cue</span>
extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre>
<div class="block">Contains information about a specific cue, including textual content and formatting data.</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/text/Cue.html#ANCHOR_TYPE_END">ANCHOR_TYPE_END</a></span></code>
<div class="block">Anchors the right (for horizontal positions) or bottom (for vertical positions) edge of the cue
box.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/text/Cue.html#ANCHOR_TYPE_MIDDLE">ANCHOR_TYPE_MIDDLE</a></span></code>
<div class="block">Anchors the middle of the cue box.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/text/Cue.html#ANCHOR_TYPE_START">ANCHOR_TYPE_START</a></span></code>
<div class="block">Anchors the left (for horizontal positions) or top (for vertical positions) edge of the cue
box.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static float</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/text/Cue.html#DIMEN_UNSET">DIMEN_UNSET</a></span></code>
<div class="block">An unset position or width.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>float</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/text/Cue.html#line">line</a></span></code>
<div class="block">The position of the <a href="../../../../../com/google/android/exoplayer/text/Cue.html#lineAnchor"><code>lineAnchor</code></a> of the cue box within the viewport in the direction
orthogonal to the writing direction, or <a href="../../../../../com/google/android/exoplayer/text/Cue.html#DIMEN_UNSET"><code>DIMEN_UNSET</code></a>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/text/Cue.html#LINE_TYPE_FRACTION">LINE_TYPE_FRACTION</a></span></code>
<div class="block">Value for <a href="../../../../../com/google/android/exoplayer/text/Cue.html#lineType"><code>lineType</code></a> when <a href="../../../../../com/google/android/exoplayer/text/Cue.html#line"><code>line</code></a> is a fractional position.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/text/Cue.html#LINE_TYPE_NUMBER">LINE_TYPE_NUMBER</a></span></code>
<div class="block">Value for <a href="../../../../../com/google/android/exoplayer/text/Cue.html#lineType"><code>lineType</code></a> when <a href="../../../../../com/google/android/exoplayer/text/Cue.html#line"><code>line</code></a> is a line number.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/text/Cue.html#lineAnchor">lineAnchor</a></span></code>
<div class="block">The cue box anchor positioned by <a href="../../../../../com/google/android/exoplayer/text/Cue.html#line"><code>line</code></a>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/text/Cue.html#lineType">lineType</a></span></code>
<div class="block">The type of the <a href="../../../../../com/google/android/exoplayer/text/Cue.html#line"><code>line</code></a> value.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>float</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/text/Cue.html#position">position</a></span></code>
<div class="block">The fractional position of the <a href="../../../../../com/google/android/exoplayer/text/Cue.html#positionAnchor"><code>positionAnchor</code></a> of the cue box within the viewport in
the direction orthogonal to <a href="../../../../../com/google/android/exoplayer/text/Cue.html#line"><code>line</code></a>, or <a href="../../../../../com/google/android/exoplayer/text/Cue.html#DIMEN_UNSET"><code>DIMEN_UNSET</code></a>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/text/Cue.html#positionAnchor">positionAnchor</a></span></code>
<div class="block">The cue box anchor positioned by <a href="../../../../../com/google/android/exoplayer/text/Cue.html#position"><code>position</code></a>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>float</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/text/Cue.html#size">size</a></span></code>
<div class="block">The size of the cue box in the writing direction specified as a fraction of the viewport size
in that direction, or <a href="../../../../../com/google/android/exoplayer/text/Cue.html#DIMEN_UNSET"><code>DIMEN_UNSET</code></a>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/CharSequence.html?is-external=true" title="class or interface in java.lang">CharSequence</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/text/Cue.html#text">text</a></span></code>
<div class="block">The cue text.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="https://developer.android.com/reference/android/text/Layout.Alignment.html?is-external=true" title="class or interface in android.text">Layout.Alignment</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/text/Cue.html#textAlignment">textAlignment</a></span></code>
<div class="block">The alignment of the cue text within the cue box.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/text/Cue.html#TYPE_UNSET">TYPE_UNSET</a></span></code>
<div class="block">An unset anchor or line type value.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/text/Cue.html#Cue--">Cue</a></span>()</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/text/Cue.html#Cue-java.lang.CharSequence-">Cue</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/CharSequence.html?is-external=true" title="class or interface in java.lang">CharSequence</a>&nbsp;text)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/text/Cue.html#Cue-java.lang.CharSequence-android.text.Layout.Alignment-float-int-int-float-int-float-">Cue</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/CharSequence.html?is-external=true" title="class or interface in java.lang">CharSequence</a>&nbsp;text,
<a href="https://developer.android.com/reference/android/text/Layout.Alignment.html?is-external=true" title="class or interface in android.text">Layout.Alignment</a>&nbsp;textAlignment,
float&nbsp;line,
int&nbsp;lineType,
int&nbsp;lineAnchor,
float&nbsp;position,
int&nbsp;positionAnchor,
float&nbsp;size)</code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a name="DIMEN_UNSET">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DIMEN_UNSET</h4>
<pre>public static final&nbsp;float DIMEN_UNSET</pre>
<div class="block">An unset position or width.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../constant-values.html#com.google.android.exoplayer.text.Cue.DIMEN_UNSET">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="TYPE_UNSET">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>TYPE_UNSET</h4>
<pre>public static final&nbsp;int TYPE_UNSET</pre>
<div class="block">An unset anchor or line type value.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../constant-values.html#com.google.android.exoplayer.text.Cue.TYPE_UNSET">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="ANCHOR_TYPE_START">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ANCHOR_TYPE_START</h4>
<pre>public static final&nbsp;int ANCHOR_TYPE_START</pre>
<div class="block">Anchors the left (for horizontal positions) or top (for vertical positions) edge of the cue
box.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../constant-values.html#com.google.android.exoplayer.text.Cue.ANCHOR_TYPE_START">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="ANCHOR_TYPE_MIDDLE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ANCHOR_TYPE_MIDDLE</h4>
<pre>public static final&nbsp;int ANCHOR_TYPE_MIDDLE</pre>
<div class="block">Anchors the middle of the cue box.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../constant-values.html#com.google.android.exoplayer.text.Cue.ANCHOR_TYPE_MIDDLE">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="ANCHOR_TYPE_END">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ANCHOR_TYPE_END</h4>
<pre>public static final&nbsp;int ANCHOR_TYPE_END</pre>
<div class="block">Anchors the right (for horizontal positions) or bottom (for vertical positions) edge of the cue
box.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../constant-values.html#com.google.android.exoplayer.text.Cue.ANCHOR_TYPE_END">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="LINE_TYPE_FRACTION">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>LINE_TYPE_FRACTION</h4>
<pre>public static final&nbsp;int LINE_TYPE_FRACTION</pre>
<div class="block">Value for <a href="../../../../../com/google/android/exoplayer/text/Cue.html#lineType"><code>lineType</code></a> when <a href="../../../../../com/google/android/exoplayer/text/Cue.html#line"><code>line</code></a> is a fractional position.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../constant-values.html#com.google.android.exoplayer.text.Cue.LINE_TYPE_FRACTION">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="LINE_TYPE_NUMBER">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>LINE_TYPE_NUMBER</h4>
<pre>public static final&nbsp;int LINE_TYPE_NUMBER</pre>
<div class="block">Value for <a href="../../../../../com/google/android/exoplayer/text/Cue.html#lineType"><code>lineType</code></a> when <a href="../../../../../com/google/android/exoplayer/text/Cue.html#line"><code>line</code></a> is a line number.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../constant-values.html#com.google.android.exoplayer.text.Cue.LINE_TYPE_NUMBER">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="text">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>text</h4>
<pre>public final&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/CharSequence.html?is-external=true" title="class or interface in java.lang">CharSequence</a> text</pre>
<div class="block">The cue text. Note the <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/CharSequence.html?is-external=true" title="class or interface in java.lang"><code>CharSequence</code></a> may be decorated with styling spans.</div>
</li>
</ul>
<a name="textAlignment">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>textAlignment</h4>
<pre>public final&nbsp;<a href="https://developer.android.com/reference/android/text/Layout.Alignment.html?is-external=true" title="class or interface in android.text">Layout.Alignment</a> textAlignment</pre>
<div class="block">The alignment of the cue text within the cue box.</div>
</li>
</ul>
<a name="line">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>line</h4>
<pre>public final&nbsp;float line</pre>
<div class="block">The position of the <a href="../../../../../com/google/android/exoplayer/text/Cue.html#lineAnchor"><code>lineAnchor</code></a> of the cue box within the viewport in the direction
orthogonal to the writing direction, or <a href="../../../../../com/google/android/exoplayer/text/Cue.html#DIMEN_UNSET"><code>DIMEN_UNSET</code></a>. When set, the interpretation of
the value depends on the value of <a href="../../../../../com/google/android/exoplayer/text/Cue.html#lineType"><code>lineType</code></a>.
<p>
For horizontal text and <a href="../../../../../com/google/android/exoplayer/text/Cue.html#lineType"><code>lineType</code></a> equal to <a href="../../../../../com/google/android/exoplayer/text/Cue.html#LINE_TYPE_FRACTION"><code>LINE_TYPE_FRACTION</code></a>, this is the
fractional vertical position relative to the top of the viewport.</div>
</li>
</ul>
<a name="lineType">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>lineType</h4>
<pre>public final&nbsp;int lineType</pre>
<div class="block">The type of the <a href="../../../../../com/google/android/exoplayer/text/Cue.html#line"><code>line</code></a> value.
<p>
<a href="../../../../../com/google/android/exoplayer/text/Cue.html#LINE_TYPE_FRACTION"><code>LINE_TYPE_FRACTION</code></a> indicates that <a href="../../../../../com/google/android/exoplayer/text/Cue.html#line"><code>line</code></a> is a fractional position within the
viewport.
<p>
<a href="../../../../../com/google/android/exoplayer/text/Cue.html#LINE_TYPE_NUMBER"><code>LINE_TYPE_NUMBER</code></a> indicates that <a href="../../../../../com/google/android/exoplayer/text/Cue.html#line"><code>line</code></a> is a line number, where the size of each
line is taken to be the size of the first line of the cue. When <a href="../../../../../com/google/android/exoplayer/text/Cue.html#line"><code>line</code></a> is greater than
or equal to 0, lines count from the start of the viewport (the first line is numbered 0). When
<a href="../../../../../com/google/android/exoplayer/text/Cue.html#line"><code>line</code></a> is negative, lines count from the end of the viewport (the last line is numbered
-1). For horizontal text the size of the first line of the cue is its height, and the start
and end of the viewport are the top and bottom respectively.</div>
</li>
</ul>
<a name="lineAnchor">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>lineAnchor</h4>
<pre>public final&nbsp;int lineAnchor</pre>
<div class="block">The cue box anchor positioned by <a href="../../../../../com/google/android/exoplayer/text/Cue.html#line"><code>line</code></a>. One of <a href="../../../../../com/google/android/exoplayer/text/Cue.html#ANCHOR_TYPE_START"><code>ANCHOR_TYPE_START</code></a>,
<a href="../../../../../com/google/android/exoplayer/text/Cue.html#ANCHOR_TYPE_MIDDLE"><code>ANCHOR_TYPE_MIDDLE</code></a>, <a href="../../../../../com/google/android/exoplayer/text/Cue.html#ANCHOR_TYPE_END"><code>ANCHOR_TYPE_END</code></a> and <a href="../../../../../com/google/android/exoplayer/text/Cue.html#TYPE_UNSET"><code>TYPE_UNSET</code></a>.
<p>
For the normal case of horizontal text, <a href="../../../../../com/google/android/exoplayer/text/Cue.html#ANCHOR_TYPE_START"><code>ANCHOR_TYPE_START</code></a>, <a href="../../../../../com/google/android/exoplayer/text/Cue.html#ANCHOR_TYPE_MIDDLE"><code>ANCHOR_TYPE_MIDDLE</code></a>
and <a href="../../../../../com/google/android/exoplayer/text/Cue.html#ANCHOR_TYPE_END"><code>ANCHOR_TYPE_END</code></a> correspond to the top, middle and bottom of the cue box
respectively.</div>
</li>
</ul>
<a name="position">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>position</h4>
<pre>public final&nbsp;float position</pre>
<div class="block">The fractional position of the <a href="../../../../../com/google/android/exoplayer/text/Cue.html#positionAnchor"><code>positionAnchor</code></a> of the cue box within the viewport in
the direction orthogonal to <a href="../../../../../com/google/android/exoplayer/text/Cue.html#line"><code>line</code></a>, or <a href="../../../../../com/google/android/exoplayer/text/Cue.html#DIMEN_UNSET"><code>DIMEN_UNSET</code></a>.
<p>
For horizontal text, this is the horizontal position relative to the left of the viewport. Note
that positioning is relative to the left of the viewport even in the case of right-to-left
text.</div>
</li>
</ul>
<a name="positionAnchor">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>positionAnchor</h4>
<pre>public final&nbsp;int positionAnchor</pre>
<div class="block">The cue box anchor positioned by <a href="../../../../../com/google/android/exoplayer/text/Cue.html#position"><code>position</code></a>. One of <a href="../../../../../com/google/android/exoplayer/text/Cue.html#ANCHOR_TYPE_START"><code>ANCHOR_TYPE_START</code></a>,
<a href="../../../../../com/google/android/exoplayer/text/Cue.html#ANCHOR_TYPE_MIDDLE"><code>ANCHOR_TYPE_MIDDLE</code></a>, <a href="../../../../../com/google/android/exoplayer/text/Cue.html#ANCHOR_TYPE_END"><code>ANCHOR_TYPE_END</code></a> and <a href="../../../../../com/google/android/exoplayer/text/Cue.html#TYPE_UNSET"><code>TYPE_UNSET</code></a>.
<p>
For the normal case of horizontal text, <a href="../../../../../com/google/android/exoplayer/text/Cue.html#ANCHOR_TYPE_START"><code>ANCHOR_TYPE_START</code></a>, <a href="../../../../../com/google/android/exoplayer/text/Cue.html#ANCHOR_TYPE_MIDDLE"><code>ANCHOR_TYPE_MIDDLE</code></a>
and <a href="../../../../../com/google/android/exoplayer/text/Cue.html#ANCHOR_TYPE_END"><code>ANCHOR_TYPE_END</code></a> correspond to the left, middle and right of the cue box
respectively.</div>
</li>
</ul>
<a name="size">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>size</h4>
<pre>public final&nbsp;float size</pre>
<div class="block">The size of the cue box in the writing direction specified as a fraction of the viewport size
in that direction, or <a href="../../../../../com/google/android/exoplayer/text/Cue.html#DIMEN_UNSET"><code>DIMEN_UNSET</code></a>.</div>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="Cue--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Cue</h4>
<pre>public&nbsp;Cue()</pre>
</li>
</ul>
<a name="Cue-java.lang.CharSequence-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Cue</h4>
<pre>public&nbsp;Cue(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/CharSequence.html?is-external=true" title="class or interface in java.lang">CharSequence</a>&nbsp;text)</pre>
</li>
</ul>
<a name="Cue-java.lang.CharSequence-android.text.Layout.Alignment-float-int-int-float-int-float-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>Cue</h4>
<pre>public&nbsp;Cue(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/CharSequence.html?is-external=true" title="class or interface in java.lang">CharSequence</a>&nbsp;text,
<a href="https://developer.android.com/reference/android/text/Layout.Alignment.html?is-external=true" title="class or interface in android.text">Layout.Alignment</a>&nbsp;textAlignment,
float&nbsp;line,
int&nbsp;lineType,
int&nbsp;lineAnchor,
float&nbsp;position,
int&nbsp;positionAnchor,
float&nbsp;size)</pre>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../com/google/android/exoplayer/text/CaptionStyleCompat.html" title="class in com.google.android.exoplayer.text"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../com/google/android/exoplayer/text/Subtitle.html" title="interface in com.google.android.exoplayer.text"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?com/google/android/exoplayer/text/Cue.html" target="_top">Frames</a></li>
<li><a href="Cue.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#methods.inherited.from.class.java.lang.Object">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li>Method</li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>