Package org.pepstock.charba.client.items
Class PaddingItem
- java.lang.Object
-
- org.pepstock.charba.client.commons.NativeObjectContainer
-
- org.pepstock.charba.client.options.AbstractPadding
-
- org.pepstock.charba.client.items.PaddingItem
-
- All Implemented Interfaces:
IsDefaultPadding
,IsPadding
public final class PaddingItem extends AbstractPadding
Padding options item to use mainly for callbacks.- Author:
- Andrea "Stock" Stocchero
-
-
Constructor Summary
Constructors Constructor Description PaddingItem()
Creates an empty padding to use for chart configuration with global defaults.PaddingItem(int padding)
Creates an padding to use for chart configuration with global defaults and setting the same size for all dimensions.PaddingItem(IsDefaultPadding defaultValues)
Creates an empty padding to use for chart configuration when the font is created by a callback.PaddingItem(IsDefaultPadding defaultValues, int padding)
Creates an empty padding to use for chart configuration when the font is created by a callback and setting the same size for all dimensions.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NativeObject
nativeObject()
Returns the native object instance.-
Methods inherited from class org.pepstock.charba.client.options.AbstractPadding
getBottom, getLeft, getObject, getRight, getTop, setBottom, setLeft, setRight, setTop
-
Methods inherited from class org.pepstock.charba.client.commons.NativeObjectContainer
checkAndGetColor, 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, 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, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.pepstock.charba.client.defaults.IsDefaultPadding
create, create
-
-
-
-
Constructor Detail
-
PaddingItem
public PaddingItem()
Creates an empty padding to use for chart configuration with global defaults.
-
PaddingItem
public PaddingItem(int padding)
Creates an padding to use for chart configuration with global defaults and setting the same size for all dimensions.- Parameters:
padding
- the initial size for all dimensions
-
PaddingItem
public PaddingItem(IsDefaultPadding defaultValues)
Creates an empty padding to use for chart configuration when the font is created by a callback.- Parameters:
defaultValues
- default provider
-
PaddingItem
public PaddingItem(IsDefaultPadding defaultValues, int padding)
Creates an empty padding to use for chart configuration when the font is created by a callback and setting the same size for all dimensions.- Parameters:
defaultValues
- default providerpadding
- the initial size for all dimensions
-
-
Method Detail
-
nativeObject
public NativeObject nativeObject()
Returns the native object instance.- Returns:
- the native object instance.
-
-