Package org.pepstock.charba.client.data
Class ArcBorderRadius
- java.lang.Object
-
- org.pepstock.charba.client.commons.NativeObjectContainer
-
- org.pepstock.charba.client.data.ArcBorderRadius
-
public final class ArcBorderRadius extends NativeObjectContainer
Defines the border radius for ARC data set element, applies the corner radius to all corners of the arc (outerStart, outerEnd, innerStart, and innerEnd).- Author:
- Andrea "Stock" Stocchero
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classArcBorderRadius.ArcBorderRadiusFactoryInner class to create arc border radius object by a native object.
-
Field Summary
Fields Modifier and Type Field Description static ArcBorderRadius.ArcBorderRadiusFactoryFACTORYPublic factory to create a border radius object from a native object.
-
Constructor Summary
Constructors Constructor Description ArcBorderRadius()Creates the object with an empty native object instance.ArcBorderRadius(int borderRadius)Creates the object using the argument to set the border radius size to all corners of the rectangle.
-
Method Summary
All 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.intgetInnerEnd()Returns the border radius for inner-end corner of the arc, in pixel.intgetInnerStart()Returns the border radius for inner-start corner of the arc, in pixel.intgetOuterEnd()Returns the border radius for outer-end corner of the arc, in pixel.intgetOuterStart()Returns the border radius for outer-start corner of the arc, in pixel.NativeObjectnativeObject()Returns the native object instance.voidset(int borderRadius)Sets the border radius size to all corners of the rectangle.voidsetInnerEnd(int borderRadius)Sets the border radius for inner-end corner of the arc, in pixel.voidsetInnerStart(int borderRadius)Sets the border radius for inner-start corner of the arc, in pixel.voidsetOuterEnd(int borderRadius)Sets the border radius for outer-end corner of the arc, in pixel.voidsetOuterStart(int borderRadius)Sets the border radius for outer-start corner of the arc, in pixel.-
Methods inherited from class org.pepstock.charba.client.commons.NativeObjectContainer
checkAndGetColor, 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, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
-
-
-
-
Field Detail
-
FACTORY
public static final ArcBorderRadius.ArcBorderRadiusFactory FACTORY
Public factory to create a border radius object from a native object.
-
-
Constructor Detail
-
ArcBorderRadius
public ArcBorderRadius()
Creates the object with an empty native object instance.
-
ArcBorderRadius
public ArcBorderRadius(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
-
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.
-
setOuterStart
public void setOuterStart(int borderRadius)
Sets the border radius for outer-start corner of the arc, in pixel.- Parameters:
borderRadius- the border radius for outer-start corner of the arc, in pixel
-
getOuterStart
public int getOuterStart()
Returns the border radius for outer-start corner of the arc, in pixel.- Returns:
- the border radius for outer-start corner of the arc, in pixel
-
setOuterEnd
public void setOuterEnd(int borderRadius)
Sets the border radius for outer-end corner of the arc, in pixel.- Parameters:
borderRadius- the border radius for outer-end corner of the arc, in pixel
-
getOuterEnd
public int getOuterEnd()
Returns the border radius for outer-end corner of the arc, in pixel.- Returns:
- the border radius for outer-end corner of the arc, in pixel
-
setInnerStart
public void setInnerStart(int borderRadius)
Sets the border radius for inner-start corner of the arc, in pixel.- Parameters:
borderRadius- the border radius for inner-start corner of the arc, in pixel
-
getInnerStart
public int getInnerStart()
Returns the border radius for inner-start corner of the arc, in pixel.- Returns:
- the border radius for inner-start corner of the arc, in pixel
-
setInnerEnd
public void setInnerEnd(int borderRadius)
Sets the border radius for inner-end corner of the arc, in pixel.- Parameters:
borderRadius- the border radius for inner-end corner of the arc, in pixel
-
getInnerEnd
public int getInnerEnd()
Returns the border radius for inner-end corner of the arc, in pixel.- Returns:
- the border radius for inner-end corner of the arc, in pixel
-
areValuesEquals
public final boolean areValuesEquals()
Returnstrueif all values of object are equals.- Returns:
trueif all values of object are equals
-
average
public final int average()
Returns the average value of all values managed by object.- Returns:
- the average value of all values managed by object
-
nativeObject
public final NativeObject nativeObject()
Returns the native object instance.- Returns:
- the native object instance.
-
-