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.
-
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 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.-
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
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, 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
-
-
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.
-
-