public interface HasBarDatasetOptions extends IsDefaultBarDatasets
Modifier and Type | Method and Description |
---|---|
default double |
getBarPercentage()
Returns the percent (0-1) of the available width each bar should be within the category width.
|
default int |
getBarThickness()
Returns the width of each bar in pixels.
|
default double |
getCategoryPercentage()
Returns the percent (0-1) of the available width each category should be within the sample width.
|
BarDatasetOptionsHandler |
getDatasetOptionsHandler()
Returns the instance of bar dataset options handler.
|
default int |
getMaxBarThickness()
Returns the maximum bar thickness.
|
default int |
getMinBarLength()
Returns a minimum length in pixels.
|
default boolean |
isGrouped()
When
true , all the data sets at same index value will be placed next to each other centering on that index value.When false , each bar is placed on its actual index-axis value. |
default void |
setBarPercentage(double barPercentage)
Sets the percent (0-1) of the available width each bar should be within the category width.
|
default void |
setBarThickness(int barThickness)
Sets the width of each bar in pixels.
|
default void |
setCategoryPercentage(double categoryPercentage)
Sets the percent (0-1) of the available width each category should be within the sample width.
|
default void |
setGrouped(boolean grouped)
When
true , all the data sets at same index value will be placed next to each other centering on that index value.When false , each bar is placed on its actual index-axis value. |
default void |
setMaxBarThickness(int maxBarThickness)
Sets the maximum bar thickness, to ensure that bars are not sized thicker than this
|
default void |
setMinBarLength(int minBarLength)
Set this to ensure that bars have a minimum length in pixels.
|
BarDatasetOptionsHandler getDatasetOptionsHandler()
default void setBarPercentage(double barPercentage)
barPercentage
- percent (0-1) of the available width each bar should be within the category width. 1.0 will take the whole category width and put the bars right next to
each other.default double getBarPercentage()
getBarPercentage
in interface IsDefaultBarDatasets
default void setCategoryPercentage(double categoryPercentage)
categoryPercentage
- percent (0-1) of the available width each category should be within the sample width.default double getCategoryPercentage()
getCategoryPercentage
in interface IsDefaultBarDatasets
default void setBarThickness(int barThickness)
barThickness
- width of each bar in pixels. If not set, the base sample widths are calculated automatically so that they take the full available widths without overlap.
Then, the bars are sized using barPercentage and categoryPercentage.default int getBarThickness()
getBarThickness
in interface IsDefaultBarDatasets
default void setMaxBarThickness(int maxBarThickness)
maxBarThickness
- the maximum bar thickness.default int getMaxBarThickness()
getMaxBarThickness
in interface IsDefaultBarDatasets
default void setMinBarLength(int minBarLength)
minBarLength
- a minimum length in pixels.default int getMinBarLength()
getMinBarLength
in interface IsDefaultBarDatasets
default void setGrouped(boolean grouped)
true
, all the data sets at same index value will be placed next to each other centering on that index value.false
, each bar is placed on its actual index-axis value.grouped
- if true
, all the data sets at same index value will be placed next to each other centering on that index valuedefault boolean isGrouped()
true
, all the data sets at same index value will be placed next to each other centering on that index value.false
, each bar is placed on its actual index-axis value.isGrouped
in interface IsDefaultBarDatasets
true
, all the data sets at same index value will be placed next to each other centering on that index value