Package org.pepstock.charba.client.items
Class FillColors
- java.lang.Object
-
- org.pepstock.charba.client.commons.NativeObjectContainer
-
- org.pepstock.charba.client.items.FillColors
-
- All Implemented Interfaces:
IsDefaultFillHandler,HasFill
public final class FillColors extends NativeObjectContainer implements HasFill
The object enables to support multiple colors when filling from one dataset.- Author:
- Andrea "Stock" Stocchero
-
-
Constructor Summary
Constructors Constructor Description FillColors()Creates the item.FillColors(OptionsEnvelop<NativeObject> envelop)Creates the object with native object instance to be wrapped.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IsColorgetAboveColor()Returns the above color for filling.StringgetAboveColorAsString()Returns the above color for filling.IsColorgetBelowColor()Returns the below color for filling.StringgetBelowColorAsString()Returns the below color for filling.FillHandlergetFillHandler()Returns a fill handler instance to use in the default methods of this interface.NativeObjectnativeObject()Returns the native object instance.voidsetAboveColor(String color)Sets the above color for filling.voidsetAboveColor(IsColor color)Sets the above color for filling.voidsetBelowColor(String color)Sets the below color for filling.voidsetBelowColor(IsColor color)Sets the below color for filling.-
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
-
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.options.HasFill
getFill, getFillBaseline, getFillColors, setFill, setFill, setFill, setFill, setFillBaseline, setFillBaseline, setFillColors
-
-
-
-
Constructor Detail
-
FillColors
public FillColors()
Creates the item.
-
FillColors
public FillColors(OptionsEnvelop<NativeObject> envelop)
Creates the object with native object instance to be wrapped.- Parameters:
envelop- envelop with native java script object which contains all properties.
-
-
Method Detail
-
getFillHandler
public FillHandler getFillHandler()
Description copied from interface:HasFillReturns a fill handler instance to use in the default methods of this interface.- Specified by:
getFillHandlerin interfaceHasFill- Returns:
- a fill handler instance
-
setAboveColor
public void setAboveColor(IsColor color)
Sets the above color for filling.- Parameters:
color- the above color for filling
-
setAboveColor
public void setAboveColor(String color)
Sets the above color for filling.- Parameters:
color- the above color for filling
-
getAboveColor
public IsColor getAboveColor()
Returns the above color for filling.- Returns:
- the above color for filling
-
getAboveColorAsString
public String getAboveColorAsString()
Returns the above color for filling.- Returns:
- the above color for filling
-
setBelowColor
public void setBelowColor(IsColor color)
Sets the below color for filling.- Parameters:
color- the below color for filling
-
setBelowColor
public void setBelowColor(String color)
Sets the below color for filling.- Parameters:
color- the below color for filling
-
getBelowColor
public IsColor getBelowColor()
Returns the below color for filling.- Returns:
- the below color for filling
-
getBelowColorAsString
public String getBelowColorAsString()
Returns the below color for filling.- Returns:
- the below color for filling
-
nativeObject
public NativeObject nativeObject()
Returns the native object instance.- Returns:
- the native object instance.
-
-