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
      • 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 from items 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.
      • 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.