Class Padding
- java.lang.Object
-
- org.pepstock.charba.client.commons.NativeObjectContainer
-
- org.pepstock.charba.client.commons.AbstractNode
-
- org.pepstock.charba.client.options.Padding
-
- All Implemented Interfaces:
IsDefaultPadding,IsPadding
public final class Padding extends AbstractNode implements IsPadding
Maps the additional space to apply to the sides of elements (left, top, right, bottom), in pixels.- Author:
- Andrea "Stock" Stocchero
-
-
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.intgetRight()Returns the padding right in pixel.intgetTop()Returns the padding top in pixel.voidsetBottom(int padding)Sets the padding bottom in pixel.voidsetLeft(int padding)Sets the padding left in pixel.voidsetRight(int padding)Sets the padding right in pixel.voidsetTop(int padding)Sets the padding top in pixel.-
Methods inherited from class org.pepstock.charba.client.commons.AbstractNode
checkAndAddToParent, getChildKey, getParentNode, getRootNode, retrieveRoot, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setElementAndAddToParent, setInternalCallbackToModel, setInternalCallbackToModel, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent
-
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, 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
-
-
-
-
Method Detail
-
setLeft
public void setLeft(int padding)
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 padding)
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 padding)
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 padding)
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.
-
-