| 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 |
setShearDegrees(float shearDegrees) |
Sets the shear angle for this Cue.
|
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.textpublic Cue.Builder setBitmap(Bitmap bitmap)
Cue.bitmap@Nullable public Bitmap getBitmap()
Cue.bitmappublic Cue.Builder setTextAlignment(@Nullable Layout.Alignment textAlignment)
Passing null means the alignment is undefined.
Cue.textAlignment@Nullable public Layout.Alignment getTextAlignment()
Cue.textAlignmentpublic Cue.Builder setLine(float line, @LineType int lineType)
Cue.line,
Cue.lineTypepublic 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.lineTypepublic Cue.Builder setLineAnchor(@AnchorType int lineAnchor)
line.Cue.lineAnchor@AnchorType public int getLineAnchor()
line.Cue.lineAnchorpublic Cue.Builder setPosition(float position)
positionAnchor of the cue
box within the viewport in the direction orthogonal to line.Cue.positionpublic float getPosition()
positionAnchor of the cue
box within the viewport in the direction orthogonal to line.Cue.positionpublic Cue.Builder setPositionAnchor(@AnchorType int positionAnchor)
position.Cue.positionAnchor@AnchorType public int getPositionAnchor()
position.Cue.positionAnchorpublic Cue.Builder setTextSize(float textSize, @TextSizeType int textSizeType)
Cue.textSize,
Cue.textSizeType@TextSizeType public int getTextSizeType()
Cue.textSizeTypepublic float getTextSize()
Cue.textSizepublic Cue.Builder setSize(float size)
Cue.sizepublic float getSize()
Cue.sizepublic Cue.Builder setBitmapHeight(float bitmapHeight)
Cue.bitmapHeightpublic float getBitmapHeight()
Cue.bitmapHeightpublic Cue.Builder setWindowColor(int windowColor)
Also sets Cue.windowColorSet to true.
Cue.windowColor,
Cue.windowColorSetpublic Cue.Builder clearWindowColor()
Cue.windowColorSet to false.public boolean isWindowColorSet()
Cue.windowColorSetpublic int getWindowColor()
Cue.windowColorpublic Cue.Builder setVerticalType(@VerticalType int verticalType)
Cue.verticalTypepublic Cue.Builder setShearDegrees(float shearDegrees)
@VerticalType public int getVerticalType()
Cue.verticalTypepublic Cue build()