Package org.pepstock.charba.client.data
Class BarBorderRadius
- java.lang.Object
- 
- org.pepstock.charba.client.commons.NativeObjectContainer
- 
- org.pepstock.charba.client.data.BarBorderRadius
 
 
- 
 public final class BarBorderRadius extends NativeObjectContainer Defines the border radius for BAR data set element, applies the corner radius to all corners of the rectangle (topLeft, topRight, bottomLeft, bottomRight).- Author:
- Andrea "Stock" Stocchero
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classBarBorderRadius.BarBorderRadiusFactoryInner class to create bar border radius object by a native object.
 - 
Field SummaryFields Modifier and Type Field Description static BarBorderRadius.BarBorderRadiusFactoryFACTORYPublic factory to create a border radius object from a native object.
 - 
Constructor SummaryConstructors Constructor Description BarBorderRadius()Creates the object with an empty native object instance.BarBorderRadius(int borderRadius)Creates the object using the argument to set the border radius size to all corners of the rectangle.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanareValuesEquals()Returnstrueif all values of object are equals.intaverage()Returns the average value of all values managed by object.intgetBottomLeft()Returns the border radius for bottom-left corner of the rectangle, in pixel.intgetBottomRight()Returns the border radius for bottom-right corner of the rectangle, in pixel.intgetTopLeft()Returns the border radius for top-left corner of the rectangle, in pixel.intgetTopRight()Returns the border radius for top-right corner of the rectangle, in pixel.NativeObjectnativeObject()Returns the native object instance.voidset(int borderRadius)Sets the border radius size to all corners of the rectangle.voidsetBottomLeft(int borderRadius)Sets the border radius for bottom-left corner of the rectangle, in pixel.voidsetBottomRight(int borderRadius)Sets the border radius for bottom-right corner of the rectangle, in pixel.voidsetTopLeft(int borderRadius)Sets the border radius for top-left corner of the rectangle, in pixel.voidsetTopRight(int borderRadius)Sets the border radius for top-right corner of the rectangle, in pixel.- 
Methods inherited from class org.pepstock.charba.client.commons.NativeObjectContainercheckDefaultValuesArgument, 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
 
- 
 
- 
- 
- 
Field Detail- 
FACTORYpublic static final BarBorderRadius.BarBorderRadiusFactory FACTORY Public factory to create a border radius object from a native object.
 
- 
 - 
Constructor Detail- 
BarBorderRadiuspublic BarBorderRadius() Creates the object with an empty native object instance.
 - 
BarBorderRadiuspublic BarBorderRadius(int borderRadius) Creates the object using the argument to set the border radius size to all corners of the rectangle.- Parameters:
- borderRadius- border radius to apply to all corners of the rectangle.
 
 
- 
 - 
Method Detail- 
setpublic 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.
 
 - 
setTopLeftpublic 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
 
 - 
getTopLeftpublic 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.
 
 - 
setTopRightpublic 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
 
 - 
getTopRightpublic 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.
 
 - 
setBottomLeftpublic 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
 
 - 
getBottomLeftpublic 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.
 
 - 
setBottomRightpublic 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
 
 - 
getBottomRightpublic 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.
 
 - 
areValuesEqualspublic final boolean areValuesEquals() Returnstrueif all values of object are equals.- Returns:
- trueif all values of object are equals
 
 - 
averagepublic final int average() Returns the average value of all values managed by object.- Returns:
- the average value of all values managed by object
 
 - 
nativeObjectpublic final NativeObject nativeObject() Returns the native object instance.- Returns:
- the native object instance.
 
 
- 
 
-