Interface HasFill
-
- All Superinterfaces:
IsDefaultFillHandler
- All Known Implementing Classes:
AreaDataset,FillColors,Line,LineDataset,LiningDataset,RadarDataset,RegressionDataset,ScatterDataset,StackedAreaDataset,StackedLineDataset,StackedVerticalLineDataset,TimeSeriesLineDataset,VerticalLineDataset
public interface HasFill extends IsDefaultFillHandler
Defines a configuration element which is managing the FILL property.
It has being used in the options and datasets instances where FILL is required.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default IsFillgetFill()Returns how to fill the area under the line.default FillBaselinegetFillBaseline()Retunrs the baseline value to use for filling.default FillColorsgetFillColors()Returns the above and below color of baseline to use for filling.FillHandlergetFillHandler()Returns a fill handler instance to use in the default methods of this interface.default voidsetFill(boolean fill)Sets how to fill the area under the line.default voidsetFill(int index)Sets how to fill the area under the line, by absolute dataset index.default voidsetFill(String index)Sets how to fill the area under the line, by relative dataset index.default voidsetFill(IsFill fill)Sets how to fill the area under the line.default voidsetFillBaseline(double baseline)Sets the baseline value to use for filling.default voidsetFillBaseline(FillBaseline baseline)Sets the baseline value to use for filling.default voidsetFillColors(FillColors colors)Sets the above and below color of baseline to use for filling.
-
-
-
Method Detail
-
getFillHandler
FillHandler getFillHandler()
Returns a fill handler instance to use in the default methods of this interface.- Returns:
- a fill handler instance
-
setFill
default void setFill(boolean fill)
Sets how to fill the area under the line.- Parameters:
fill-trueto fill, otherwisefalse.
-
setFill
default void setFill(int index)
Sets how to fill the area under the line, by absolute dataset index.- Parameters:
index- absolute dataset index of the chart.
-
setFill
default void setFill(String index)
Sets how to fill the area under the line, by relative dataset index.- Parameters:
index- relative dataset index of the chart.
-
setFill
default void setFill(IsFill fill)
Sets how to fill the area under the line.- Parameters:
fill- how to fill the area under the line.
-
getFill
default IsFill getFill()
Returns how to fill the area under the line.- Specified by:
getFillin interfaceIsDefaultFillHandler- Returns:
- how to fill the area under the line.
-
setFillBaseline
default void setFillBaseline(double baseline)
Sets the baseline value to use for filling.- Parameters:
baseline- the baseline value to use for filling
-
setFillBaseline
default void setFillBaseline(FillBaseline baseline)
Sets the baseline value to use for filling.- Parameters:
baseline- the baseline value to use for filling
-
getFillBaseline
default FillBaseline getFillBaseline()
Retunrs the baseline value to use for filling.- Specified by:
getFillBaselinein interfaceIsDefaultFillHandler- Returns:
- the baseline value to use for filling
-
setFillColors
default 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
default FillColors getFillColors()
Returns the above and below color of baseline to use for filling.- Specified by:
getFillColorsin interfaceIsDefaultFillHandler- Returns:
- the above and below color of baseline to use for filling.
-
-