Class AbstractPadding
- java.lang.Object
-
- org.pepstock.charba.client.commons.NativeObjectContainer
-
- org.pepstock.charba.client.options.AbstractPadding
-
- All Implemented Interfaces:
IsDefaultPadding
,IsPadding
- Direct Known Subclasses:
AbstractScriptablePadding
,PaddingItem
public abstract class AbstractPadding extends NativeObjectContainer implements IsPadding
Base class to map the padding properties of an element.- Author:
- Andrea "Stock" Stocchero
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractPadding(IsDefaultPadding defaultValues)
Creates an empty padding to use for chart configuration.protected
AbstractPadding(IsDefaultPadding defaultValues, NativeObject nativeObject)
Creates a padding to use for chart configuration, wrapping a native object instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getBottom()
Returns the padding bottom in pixel.int
getLeft()
Returns the padding left in pixel.protected NativeObject
getObject()
Returns the native object instance.int
getRight()
Returns the padding right in pixel.int
getTop()
Returns the padding top in pixel.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.-
Methods inherited from class org.pepstock.charba.client.commons.NativeObjectContainer
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
-
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
-
AbstractPadding
protected AbstractPadding(IsDefaultPadding defaultValues)
Creates an empty padding to use for chart configuration.- Parameters:
defaultValues
- default provider
-
AbstractPadding
protected AbstractPadding(IsDefaultPadding defaultValues, NativeObject nativeObject)
Creates a padding to use for chart configuration, wrapping a native object instance.- Parameters:
defaultValues
- default providernativeObject
- native object to map java script properties
-
-
Method Detail
-
setLeft
public void setLeft(int value)
Sets the padding left in pixel.
-
getLeft
public int getLeft()
Returns the padding left in pixel.- Specified by:
getLeft
in interfaceIsDefaultPadding
- Returns:
- the padding left in pixel.
-
setRight
public void setRight(int value)
Sets the padding right in pixel.
-
getRight
public int getRight()
Returns the padding right in pixel.- Specified by:
getRight
in interfaceIsDefaultPadding
- Returns:
- the padding right in pixel.
-
setTop
public void setTop(int value)
Sets the padding top in pixel.
-
getTop
public int getTop()
Returns the padding top in pixel.- Specified by:
getTop
in interfaceIsDefaultPadding
- Returns:
- the padding top in pixel.
-
setBottom
public void setBottom(int value)
Sets the padding bottom in pixel.
-
getBottom
public int getBottom()
Returns the padding bottom in pixel.- Specified by:
getBottom
in interfaceIsDefaultPadding
- Returns:
- the padding bottom in pixel.
-
getObject
protected final NativeObject getObject()
Returns the native object instance.- Returns:
- the native object instance.
-
-