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,Padding,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 protectedAbstractPadding(AbstractNode parent, IsDefaultPadding defaultValues, NativeObject nativeObject)Creates a padding to use for chart configuration, wrapping a native object instance.protectedAbstractPadding(IsDefaultPadding defaultValues)Creates an empty padding to use for chart configuration.protectedAbstractPadding(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 intgetBottom()Returns the padding bottom in pixel.intgetLeft()Returns the padding left in pixel.protected NativeObjectgetObject()Returns the native object instance.intgetRight()Returns the padding right in pixel.intgetTop()Returns the padding top in pixel.voidsetBottom(int value)Sets the padding bottom in pixel.voidsetLeft(int value)Sets the padding left in pixel.voidsetRight(int value)Sets the padding right in pixel.voidsetTop(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
-
AbstractPadding
protected AbstractPadding(AbstractNode parent, IsDefaultPadding defaultValues, NativeObject nativeObject)
Creates a padding to use for chart configuration, wrapping a native object instance.- Parameters:
parent- the native object container which font belongs to.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:
getLeftin 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:
getRightin 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:
getTopin 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:
getBottomin interfaceIsDefaultPadding- Returns:
- the padding bottom in pixel.
-
getObject
protected final NativeObject getObject()
Returns the native object instance.- Returns:
- the native object instance.
-
-