public interface Alignment
| Modifier and Type | Interface and Description |
|---|---|
static class |
Alignment.Horizontal
Horizontal alignments that can be applied.
|
static class |
Alignment.ReadingOrder
ReadingOrder attributes that can be applied.
|
static class |
Alignment.Vertical
Vertical alignments that can be applied.
|
| Modifier and Type | Method and Description |
|---|---|
Alignment.Horizontal |
getHorizontal()
Returns the horizontal alignment
|
int |
getIndent()
Returns the indent
|
Alignment.ReadingOrder |
getReadingOrder()
Returns the reading order.
|
int |
getRelativeIndent()
Returns the relative indent.
|
int |
getTextRotation()
Returns the text rotation
|
Alignment.Vertical |
getVertical()
Returns the vertical alignment
|
boolean |
isJustifyLastLine()
Returns whether enable the justify last line or not
|
boolean |
isShrinkToFit()
Returns whether enable the shrink to fit
|
boolean |
isWrapText()
Returns whether enable the wrap text or not
|
void |
setHorizontal(Alignment.Horizontal horizontal)
Sets the horizontal alignment
|
void |
setIndent(int indent)
Sets the indent
|
void |
setJustifyLastLine(boolean enable)
Sets to enable the justify last line
|
void |
setReadingOrder(Alignment.ReadingOrder readingOrder)
Sets the reading order.
|
void |
setRelativeIndent(int relativeIndent)
Sets the relative indent.
|
void |
setShrinkToFit(boolean enable)
Sets to enable the shrink to fit
|
void |
setTextRotation(int textRotation)
Sets the text rotation
|
void |
setVertical(Alignment.Vertical vertical)
Sets the vertical alignment
|
void |
setWrapText(boolean enable)
enable/disable the wrapped text
|
void setHorizontal(Alignment.Horizontal horizontal)
horizontal - either Alignment.Horizontal.General, Alignment.Horizontal.Left,
Alignment.Horizontal.Center, Alignment.Horizontal.Right, Alignment.Horizontal.Fill,
Alignment.Horizontal.Justify, Alignment.Horizontal.CenterContinuous, or
Alignment.Horizontal.DistributedAlignment.Horizontalvoid setVertical(Alignment.Vertical vertical)
vertical - either Alignment.Vertical.Top, Alignment.Vertical.Center,
Alignment.Vertical.Bottom, Alignment.Vertical.Justify, or Alignment.Vertical.DistributedAlignment.Verticalvoid setTextRotation(int textRotation)
textRotation - void setWrapText(boolean enable)
enable - void setIndent(int indent)
indent - void setRelativeIndent(int relativeIndent)
relativeIndent - void setJustifyLastLine(boolean enable)
enable - void setShrinkToFit(boolean enable)
enable - void setReadingOrder(Alignment.ReadingOrder readingOrder)
readingOrder - either Alignment.ReadingOrder.Context,
Alignment.ReadingOrder.LeftToRight, or Alignment.ReadingOrder.RightToLeftAlignment.Horizontal getHorizontal()
Alignment.HorizontalAlignment.Vertical getVertical()
Alignment.Verticalint getTextRotation()
boolean isWrapText()
int getIndent()
int getRelativeIndent()
boolean isJustifyLastLine()
boolean isShrinkToFit()
Alignment.ReadingOrder getReadingOrder()
Alignment.ReadingOrderCopyright © 2018. All rights reserved.