Class 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
    • 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 from data package.
        Parameters:
        parent - model which contains the fill handler.
        defaultValues - default value of FILL to use when the property does not exist
        envelop - 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, otherwise false.
      • 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.