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 class
ArcBorderRadius.ArcBorderRadiusFactory
Inner class to create arc border radius object by a native object.
-
Field Summary
Fields Modifier and Type Field Description static ArcBorderRadius.ArcBorderRadiusFactory
FACTORY
Public 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 boolean
areValuesEquals()
Returnstrue
if all values of object are equals.int
average()
Returns the average value of all values managed by object.int
getInnerEnd()
Returns the border radius for inner-end corner of the arc, in pixel.int
getInnerStart()
Returns the border radius for inner-start corner of the arc, in pixel.int
getOuterEnd()
Returns the border radius for outer-end corner of the arc, in pixel.int
getOuterStart()
Returns the border radius for outer-start corner of the arc, in pixel.NativeObject
nativeObject()
Returns the native object instance.void
set(int borderRadius)
Sets the border radius size to all corners of the rectangle.void
setInnerEnd(int borderRadius)
Sets the border radius for inner-end corner of the arc, in pixel.void
setInnerStart(int borderRadius)
Sets the border radius for inner-start corner of the arc, in pixel.void
setOuterEnd(int borderRadius)
Sets the border radius for outer-end corner of the arc, in pixel.void
setOuterStart(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()
Returnstrue
if all values of object are equals.- Returns:
true
if 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.
-
-