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 int
getBottom()
Returns the padding bottom in pixel.int
getLeft()
Returns the padding left in pixel.int
getRight()
Returns the padding right in pixel.int
getTop()
Returns the padding top in pixel.void
setBottom(int padding)
Sets the padding bottom in pixel.void
setLeft(int padding)
Sets the padding left in pixel.void
setRight(int padding)
Sets the padding right in pixel.void
setTop(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, 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, 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:
getLeft
in 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:
getRight
in 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:
getTop
in 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:
getBottom
in interfaceIsDefaultPadding
- Returns:
- the padding bottom in pixel.
-
-