Class FillHandler
- java.lang.Object
-
- org.pepstock.charba.client.commons.NativeObjectContainer
-
- org.pepstock.charba.client.commons.PropertyHandler<IsFill>
-
- org.pepstock.charba.client.options.FillHandler
-
public class FillHandler extends PropertyHandler<IsFill>
Manages the FILL property of options in order to use the same logic between line datasets and options/configuration.- Author:
- Andrea "Stock" Stocchero
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
FillHandler.Property
Name of properties of native object.
-
Constructor Summary
Constructors Modifier Constructor Description protected
FillHandler(AbstractNode parent, IsFill defaultValues, DataEnvelop<NativeObject> envelop)
Creates a fill handler with the native object where FILL property must be managed and the default value to use when the property does not exist.
This is called fromdata
package.protected
FillHandler(AbstractNode parent, IsFill defaultValues, ItemsEnvelop<NativeObject> envelop)
Creates a fill handler with the native object where FILL property must be managed and the default value to use when the property does not exist.
This is called fromitems
package.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IsFill
getFill()
Returns how to fill the area under the line.protected FillBaseline
getFillBaseline()
Returns the baseline value to use for filling.protected FillColors
getFillColors()
Returns the above and below color of baseline to use for filling.protected void
setFill(boolean fill)
Sets how to fill the area under the line.protected void
setFill(IsFill fill)
Sets how to fill the area under the line.protected void
setFillBaseline(double baseline)
Sets the baseline value to use for filling.protected void
setFillBaseline(FillBaseline baseline)
Sets the baseline value to use for filling.protected void
setFillColors(FillColors colors)
Sets the above and below color of baseline to use for filling.-
Methods inherited from class org.pepstock.charba.client.commons.PropertyHandler
getDefaultValues, getParent, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setArrayValueAndAddToParent, 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
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, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
-
-
-
-
Constructor Detail
-
FillHandler
protected FillHandler(AbstractNode parent, IsFill defaultValues, DataEnvelop<NativeObject> envelop)
Creates a fill handler with the native object where FILL property must be managed and the default value to use when the property does not exist.
This is called fromdata
package.- Parameters:
parent
- model which contains the fill handler.defaultValues
- default value of FILL to use when the property does not existenvelop
- envelop of native object where FILL property must be managed
-
FillHandler
protected FillHandler(AbstractNode parent, IsFill defaultValues, ItemsEnvelop<NativeObject> envelop)
Creates a fill handler with the native object where FILL property must be managed and the default value to use when the property does not exist.
This is called fromitems
package.- Parameters:
parent
- model which contains the fill handler.defaultValues
- default value of FILL to use when the property does not existenvelop
- envelop of native object where FILL property must be managed
-
-
Method Detail
-
setFill
protected void setFill(boolean fill)
Sets how to fill the area under the line.- Parameters:
fill
-true
to fill, otherwisefalse
.
-
setFill
protected void setFill(IsFill fill)
Sets how to fill the area under the line.- Parameters:
fill
- how to fill the area under the line.
-
getFill
protected IsFill getFill()
Returns how to fill the area under the line.- Returns:
- how to fill the area under the line.
-
setFillBaseline
protected void setFillBaseline(double baseline)
Sets the baseline value to use for filling.- Parameters:
baseline
- the baseline value to use for filling
-
setFillBaseline
protected void setFillBaseline(FillBaseline baseline)
Sets the baseline value to use for filling.- Parameters:
baseline
- the baseline value to use for filling
-
getFillBaseline
protected FillBaseline getFillBaseline()
Returns the baseline value to use for filling.- Returns:
- the baseline value to use for filling
-
setFillColors
protected void setFillColors(FillColors colors)
Sets the above and below color of baseline to use for filling.- Parameters:
colors
- the above and below color of baseline to use for filling.
-
getFillColors
protected FillColors getFillColors()
Returns the above and below color of baseline to use for filling.- Returns:
- the above and below color of baseline to use for filling.
-
-