Constructor | Description |
---|---|
Builder() |
Modifier and Type | Method | Description |
---|---|---|
Cue |
build() |
Build the cue.
|
Cue.Builder |
clearWindowColor() |
Sets
Cue.windowColorSet to false. |
Bitmap |
getBitmap() |
Gets the cue image.
|
float |
getBitmapHeight() |
Gets the bitmap height as a fraction of the viewport size.
|
float |
getLine() |
Gets the position of the
lineAnchor of the cue box within the viewport in the
direction orthogonal to the writing direction. |
int |
getLineAnchor() |
Gets the cue box anchor positioned by
line . |
int |
getLineType() |
Gets the type of the value of
getLine() . |
float |
getPosition() |
Gets the fractional position of the
positionAnchor of the cue
box within the viewport in the direction orthogonal to line . |
int |
getPositionAnchor() |
Gets the cue box anchor positioned by
position . |
float |
getSize() |
Gets the size of the cue box in the writing direction specified as a fraction of the viewport
size in that direction.
|
CharSequence |
getText() |
Gets the cue text.
|
Layout.Alignment |
getTextAlignment() |
Gets the alignment of the cue text within the cue box, or null if the alignment is undefined.
|
float |
getTextSize() |
Gets the default text size for this cue's text.
|
int |
getTextSizeType() |
Gets the default text size type for this cue's text.
|
int |
getVerticalType() |
Gets the vertical formatting for this Cue.
|
int |
getWindowColor() |
Gets the fill color of the window.
|
boolean |
isWindowColorSet() |
Returns true if the fill color of the window is set.
|
Cue.Builder |
setBitmap(Bitmap bitmap) |
Sets the cue image.
|
Cue.Builder |
setBitmapHeight(float bitmapHeight) |
Sets the bitmap height as a fraction of the viewport size.
|
Cue.Builder |
setLine(float line,
int lineType) |
Sets the position of the cue box within the viewport in the direction orthogonal to the
writing direction.
|
Cue.Builder |
setLineAnchor(int lineAnchor) |
Sets the cue box anchor positioned by
line . |
Cue.Builder |
setPosition(float position) |
Sets the fractional position of the
positionAnchor of the cue
box within the viewport in the direction orthogonal to line . |
Cue.Builder |
setPositionAnchor(int positionAnchor) |
Sets the cue box anchor positioned by
position . |
Cue.Builder |
setSize(float size) |
Sets the size of the cue box in the writing direction specified as a fraction of the viewport
size in that direction.
|
Cue.Builder |
setText(CharSequence text) |
Sets the cue text.
|
Cue.Builder |
setTextAlignment(Layout.Alignment textAlignment) |
Sets the alignment of the cue text within the cue box.
|
Cue.Builder |
setTextSize(float textSize,
int textSizeType) |
Sets the default text size and type for this cue's text.
|
Cue.Builder |
setVerticalType(int verticalType) |
Sets the vertical formatting for this Cue.
|
Cue.Builder |
setWindowColor(int windowColor) |
Sets the fill color of the window.
|
public Cue.Builder setText(CharSequence text)
Note that text
may be decorated with styling spans.
Cue.text
@Nullable public CharSequence getText()
Cue.text
public Cue.Builder setBitmap(Bitmap bitmap)
Cue.bitmap
@Nullable public Bitmap getBitmap()
Cue.bitmap
public Cue.Builder setTextAlignment(@Nullable Layout.Alignment textAlignment)
Passing null means the alignment is undefined.
Cue.textAlignment
@Nullable public Layout.Alignment getTextAlignment()
Cue.textAlignment
public Cue.Builder setLine(float line, @LineType int lineType)
Cue.line
,
Cue.lineType
public float getLine()
lineAnchor
of the cue box within the viewport in the
direction orthogonal to the writing direction.Cue.line
@LineType public int getLineType()
getLine()
.Cue.lineType
public Cue.Builder setLineAnchor(@AnchorType int lineAnchor)
line
.Cue.lineAnchor
@AnchorType public int getLineAnchor()
line
.Cue.lineAnchor
public Cue.Builder setPosition(float position)
positionAnchor
of the cue
box within the viewport in the direction orthogonal to line
.Cue.position
public float getPosition()
positionAnchor
of the cue
box within the viewport in the direction orthogonal to line
.Cue.position
public Cue.Builder setPositionAnchor(@AnchorType int positionAnchor)
position
.Cue.positionAnchor
@AnchorType public int getPositionAnchor()
position
.Cue.positionAnchor
public Cue.Builder setTextSize(float textSize, @TextSizeType int textSizeType)
Cue.textSize
,
Cue.textSizeType
@TextSizeType public int getTextSizeType()
Cue.textSizeType
public float getTextSize()
Cue.textSize
public Cue.Builder setSize(float size)
Cue.size
public float getSize()
Cue.size
public Cue.Builder setBitmapHeight(float bitmapHeight)
Cue.bitmapHeight
public float getBitmapHeight()
Cue.bitmapHeight
public Cue.Builder setWindowColor(int windowColor)
Also sets Cue.windowColorSet
to true.
Cue.windowColor
,
Cue.windowColorSet
public Cue.Builder clearWindowColor()
Cue.windowColorSet
to false.public boolean isWindowColorSet()
Cue.windowColorSet
public int getWindowColor()
Cue.windowColor
public Cue.Builder setVerticalType(@VerticalType int verticalType)
Cue.verticalType
@VerticalType public int getVerticalType()
Cue.verticalType
public Cue build()