public final class Padding extends NativeObjectContainer
DataLabelsPlugin.ID
plugin configuration.PaddingCallback
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_PADDING
Default padding, 4.
|
Constructor and Description |
---|
Padding()
Creates new padding element, using the default values options.
|
Modifier and Type | Method and Description |
---|---|
int |
getBottom()
Returns the padding bottom in pixel.
|
int |
getLeft()
Returns the padding left in pixel.
|
int |
getRight()
Returns the padding right in pixel.
|
int |
getTop()
Returns the padding top in pixel.
|
void |
set(int padding)
Sets the padding size to all dimensions.
|
void |
setBottom(int padding)
Sets the padding bottom in pixel.
|
void |
setLeft(int padding)
Sets the padding left in pixel.
|
void |
setRight(int padding)
Sets the padding right in pixel.
|
void |
setTop(int padding)
Sets the padding top in pixel.
|
checkValue, empty, getArrayValue, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, keys, remove, remove, removeIfExists, setArrayValue, setArrayValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
public static final int DEFAULT_PADDING
public Padding()
public void set(int padding)
padding
- padding size to apply to all dimensions.public void setLeft(int padding)
padding
- the padding left in pixel.public int getLeft()
public void setRight(int padding)
padding
- the padding right in pixel.public int getRight()
public void setTop(int padding)
padding
- the padding top in pixel.public int getTop()
public void setBottom(int padding)
padding
- the padding bottom in pixel.public int getBottom()