Package org.pepstock.charba.client.items
Class BorderRadiusItem
- java.lang.Object
-
- org.pepstock.charba.client.commons.NativeObjectContainer
-
- org.pepstock.charba.client.commons.AbstractNode
-
- org.pepstock.charba.client.items.BorderRadiusItem
-
public final class BorderRadiusItem extends AbstractNode
Defines the border radius for legend item element, applies the corner radius to all corners of the rectangle (topLeft, topRight, bottomLeft, bottomRight).- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getBottomLeft()
Returns the border radius for bottom-left corner of the rectangle, in pixel.int
getBottomRight()
Returns the border radius for bottom-right corner of the rectangle, in pixel.int
getTopLeft()
Returns the border radius for top-left corner of the rectangle, in pixel.int
getTopRight()
Returns the border radius for top-right corner of the rectangle, in pixel.void
set(int borderRadius)
Sets the border radius size to all corners of the rectangle.void
setBottomLeft(int borderRadius)
Sets the border radius for bottom-left corner of the rectangle, in pixel.void
setBottomRight(int borderRadius)
Sets the border radius for bottom-right corner of the rectangle, in pixel.void
setTopLeft(int borderRadius)
Sets the border radius for top-left corner of the rectangle, in pixel.void
setTopRight(int borderRadius)
Sets the border radius for top-right corner of the rectangle, in pixel.-
Methods inherited from class org.pepstock.charba.client.commons.AbstractNode
checkAndAddToParent, getChildKey, getParentNode, getRootNode, getUpdateListener, retrieveRoot, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setElementAndAddToParent, setInternalCallbackToModel, setInternalCallbackToModel, setUpdateListener, 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, 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
-
-
-
-
Method Detail
-
set
public void set(int borderRadius)
Sets the border radius size to all corners of the rectangle.- Parameters:
borderRadius
- border radius to apply to all corners of the rectangle.
-
setTopLeft
public void setTopLeft(int borderRadius)
Sets the border radius for top-left corner of the rectangle, in pixel.- Parameters:
borderRadius
- the border radius for top-left corner of the rectangle, in pixel
-
getTopLeft
public int getTopLeft()
Returns the border radius for top-left corner of the rectangle, in pixel.- Returns:
- the border radius for top-left corner of the rectangle, in pixel.
-
setTopRight
public void setTopRight(int borderRadius)
Sets the border radius for top-right corner of the rectangle, in pixel.- Parameters:
borderRadius
- the border radius for top-right corner of the rectangle, in pixel
-
getTopRight
public int getTopRight()
Returns the border radius for top-right corner of the rectangle, in pixel.- Returns:
- the border radius for top-right corner of the rectangle, in pixel.
-
setBottomLeft
public void setBottomLeft(int borderRadius)
Sets the border radius for bottom-left corner of the rectangle, in pixel.- Parameters:
borderRadius
- the border radius for bottom-left corner of the rectangle, in pixel
-
getBottomLeft
public int getBottomLeft()
Returns the border radius for bottom-left corner of the rectangle, in pixel.- Returns:
- the border radius for bottom-left corner of the rectangle, in pixel.
-
setBottomRight
public void setBottomRight(int borderRadius)
Sets the border radius for bottom-right corner of the rectangle, in pixel.- Parameters:
borderRadius
- the border radius for bottom-right corner of the rectangle, in pixel
-
getBottomRight
public int getBottomRight()
Returns the border radius for bottom-right corner of the rectangle, in pixel.- Returns:
- the border radius for bottom-right corner of the rectangle, in pixel.
-
-