public class MarginsBuilder extends Object
| Constructor and Description |
|---|
MarginsBuilder()
Main constructor
|
| Modifier and Type | Method and Description |
|---|---|
MarginsBuilder |
all(Length size)
Set the margin at the top, bottom, left and right.
|
MarginsBuilder |
bottom(Length size)
Set the bottom margin. margin is a length value
|
Margins |
build() |
MarginsBuilder |
left(Length size)
Set the left margin.
|
MarginsBuilder |
right(Length size)
Set the right margin.
|
MarginsBuilder |
top(Length size)
Set the top margin.
|
public MarginsBuilder all(Length size)
size - the margin sizepublic MarginsBuilder bottom(Length size)
size - the margin sizepublic Margins build()
public MarginsBuilder left(Length size)
size - the margin sizepublic MarginsBuilder right(Length size)
size - the margin sizepublic MarginsBuilder top(Length size)
size - the margin sizeCopyright © 2016–2021. All rights reserved.