public class VerticalLayoutHint extends Object implements LayoutHint
VerticalLayout. You may specify margins to define
some extra space around the drawable. If there is still some extra space
available vertically, the alignment decides where to position the drawable.
The reset Y indicates if the Y postion should be reset to
the value before drawing. Be aware that this only applies to the current page
where the remainder of the element has been drawn to. Means, if the elemenent
spawns multiple pages, the position is reset to the begin of the last page.| Modifier and Type | Class and Description |
|---|---|
static class |
VerticalLayoutHint.VerticalLayoutHintBuilder
A builder for creating a
VerticalLayoutHint using a fluent API. |
| Modifier and Type | Field and Description |
|---|---|
static VerticalLayoutHint |
CENTER |
static VerticalLayoutHint |
LEFT |
static VerticalLayoutHint |
RIGHT |
| Constructor and Description |
|---|
VerticalLayoutHint()
Creates a layout hint with
left alignment. |
VerticalLayoutHint(Alignment alignment)
Creates a layout hint with the given alignment.
|
VerticalLayoutHint(Alignment alignment,
float marginLeft,
float marginRight,
float marginTop,
float marginBottom)
Creates a layout hint with the given alignment and margins.
|
VerticalLayoutHint(Alignment alignment,
float marginLeft,
float marginRight,
float marginTop,
float marginBottom,
boolean resetY)
Creates a layout hint with the given alignment and margins.
|
| Modifier and Type | Method and Description |
|---|---|
static VerticalLayoutHint.VerticalLayoutHintBuilder |
builder() |
Alignment |
getAlignment() |
float |
getMarginBottom() |
float |
getMarginLeft() |
float |
getMarginRight() |
float |
getMarginTop() |
boolean |
isResetY() |
String |
toString() |
public static final VerticalLayoutHint LEFT
public static final VerticalLayoutHint CENTER
public static final VerticalLayoutHint RIGHT
public VerticalLayoutHint()
left alignment.public VerticalLayoutHint(Alignment alignment)
alignment - the element alignment.public VerticalLayoutHint(Alignment alignment, float marginLeft, float marginRight, float marginTop, float marginBottom)
alignment - the element alignment.marginLeft - the left alignment.marginRight - the right alignment.marginTop - the top alignment.marginBottom - the bottom alignment.public VerticalLayoutHint(Alignment alignment, float marginLeft, float marginRight, float marginTop, float marginBottom, boolean resetY)
alignment - the element alignment.marginLeft - the left alignment.marginRight - the right alignment.marginTop - the top alignment.marginBottom - the bottom alignment.resetY - if true, the y coordinate will be reset to the
point before layouting the element.public Alignment getAlignment()
public float getMarginLeft()
public float getMarginRight()
public float getMarginTop()
public float getMarginBottom()
public boolean isResetY()
public static VerticalLayoutHint.VerticalLayoutHintBuilder builder()
VerticalLayoutHint.VerticalLayoutHintBuilder for creating a
VerticalLayoutHint using a fluent API.Copyright © 2021. All rights reserved.