T
- type of scriptable contextpublic abstract class AbstractScriptablePadding<T extends ChartContext> extends AbstractPadding
PaddingCallback
if the
IsScriptablePaddingProvider
instance has been set with a PaddingCallback
.Modifier | Constructor and Description |
---|---|
protected |
AbstractScriptablePadding(IsScriptablePaddingProvider<T> scriptablePaddingProvider,
IsDefaultPadding defaultValues)
Creates an empty padding to use for chart configuration.
|
protected |
AbstractScriptablePadding(IsScriptablePaddingProvider<T> scriptablePaddingProvider,
IsDefaultPadding defaultValues,
NativeObject nativeObject)
Creates a padding to use for chart configuration, wrapping a native object instance.
|
Modifier and Type | Method and Description |
---|---|
protected void |
resetCallback()
Invokes when any property of the padding is being set, in order to reset the
PaddingCallback if exists |
void |
setBottom(int value)
Sets the padding bottom in pixel.
|
void |
setLeft(int value)
Sets the padding left in pixel.
|
void |
setRight(int value)
Sets the padding right in pixel.
|
void |
setTop(int value)
Sets the padding top in pixel.
|
getBottom, getLeft, getObject, getRight, getTop
checkDefaultValuesArgument, empty, getArrayValue, getElement, getIncrementalId, getNativeChart, getNativeEvent, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, isType, keys, loadNativeObject, remove, remove, setArrayValue, setArrayValue, setArrayValue, setElement, setEmptyValue, setNewIncrementalId, setNewIncrementalId, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
create, create
protected AbstractScriptablePadding(IsScriptablePaddingProvider<T> scriptablePaddingProvider, IsDefaultPadding defaultValues)
scriptablePaddingProvider
- the provider of padding callbackdefaultValues
- default providerprotected AbstractScriptablePadding(IsScriptablePaddingProvider<T> scriptablePaddingProvider, IsDefaultPadding defaultValues, NativeObject nativeObject)
scriptablePaddingProvider
- the provider of padding callbackdefaultValues
- default providernativeObject
- native object to map java script propertiespublic void setLeft(int value)
AbstractPadding
setLeft
in interface IsPadding
setLeft
in class AbstractPadding
value
- the padding left in pixel.public void setRight(int value)
AbstractPadding
setRight
in interface IsPadding
setRight
in class AbstractPadding
value
- the padding right in pixel.public void setTop(int value)
AbstractPadding
setTop
in interface IsPadding
setTop
in class AbstractPadding
value
- the padding top in pixel.public void setBottom(int value)
AbstractPadding
setBottom
in interface IsPadding
setBottom
in class AbstractPadding
value
- the padding bottom in pixel.protected void resetCallback()
PaddingCallback
if exists