Interface HasBarDatasetOptions
- 
- All Superinterfaces:
- IsDefaultBarDatasets
 - All Known Implementing Classes:
- BarDataset,- ChoroplethDataset,- HorizontalBarDataset,- StackedBarDataset,- StackedHorizontalBarDataset,- TimeSeriesBarDataset,- TimeSeriesHorizontalBarDataset,- TypedDataset
 
 public interface HasBarDatasetOptions extends IsDefaultBarDatasets Defines a BAR dataset properties of options in order to use the same logic between datasets and options/configuration.- Author:
- Andrea "Stock" Stocchero
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default doublegetBarPercentage()Returns the percent (0-1) of the available width each bar should be within the category width.default intgetBarThickness()Returns the width of each bar in pixels.default doublegetCategoryPercentage()Returns the percent (0-1) of the available width each category should be within the sample width.BarDatasetOptionsHandlergetDatasetOptionsHandler()Returns the instance of bar dataset options handler.default intgetMaxBarThickness()Returns the maximum bar thickness.default intgetMinBarLength()Returns a minimum length in pixels.default booleanisGrouped()Whentrue, all the data sets at same index value will be placed next to each other centering on that index value.
 Whenfalse, each bar is placed on its actual index-axis value.default voidsetBarPercentage(double barPercentage)Sets the percent (0-1) of the available width each bar should be within the category width.default voidsetBarThickness(int barThickness)Sets the width of each bar in pixels.default voidsetCategoryPercentage(double categoryPercentage)Sets the percent (0-1) of the available width each category should be within the sample width.default voidsetGrouped(boolean grouped)Whentrue, all the data sets at same index value will be placed next to each other centering on that index value.
 Whenfalse, each bar is placed on its actual index-axis value.default voidsetMaxBarThickness(int maxBarThickness)Sets the maximum bar thickness, to ensure that bars are not sized thicker than thisdefault voidsetMinBarLength(int minBarLength)Set this to ensure that bars have a minimum length in pixels.
 
- 
- 
- 
Method Detail- 
getDatasetOptionsHandlerBarDatasetOptionsHandler getDatasetOptionsHandler() Returns the instance of bar dataset options handler.- Returns:
- the instance of bar dataset options handler
 
 - 
setBarPercentagedefault void setBarPercentage(double barPercentage) Sets the 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.- Parameters:
- 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.
 
 - 
getBarPercentagedefault double getBarPercentage() Returns the 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.- Specified by:
- getBarPercentagein interface- IsDefaultBarDatasets
- Returns:
- 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.
 
 - 
setCategoryPercentagedefault void setCategoryPercentage(double categoryPercentage) Sets the percent (0-1) of the available width each category should be within the sample width.- Parameters:
- categoryPercentage- percent (0-1) of the available width each category should be within the sample width.
 
 - 
getCategoryPercentagedefault double getCategoryPercentage() Returns the percent (0-1) of the available width each category should be within the sample width.- Specified by:
- getCategoryPercentagein interface- IsDefaultBarDatasets
- Returns:
- the percent (0-1) of the available width each category should be within the sample width.
 
 - 
setBarThicknessdefault void setBarThickness(int barThickness) Sets the width of each bar in pixels. If set to 'flex', it computes "optimal" sample widths that globally arrange bars side by side. 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.- Parameters:
- 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.
 
 - 
getBarThicknessdefault int getBarThickness() Returns the width of each bar in pixels. If set to 'flex', it computes "optimal" sample widths that globally arrange bars side by side. 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.- Specified by:
- getBarThicknessin interface- IsDefaultBarDatasets
- Returns:
- 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.
 
 - 
setMaxBarThicknessdefault void setMaxBarThickness(int maxBarThickness) Sets the maximum bar thickness, to ensure that bars are not sized thicker than this- Parameters:
- maxBarThickness- the maximum bar thickness.
 
 - 
getMaxBarThicknessdefault int getMaxBarThickness() Returns the maximum bar thickness.- Specified by:
- getMaxBarThicknessin interface- IsDefaultBarDatasets
- Returns:
- the maximum bar thickness.
 
 - 
setMinBarLengthdefault void setMinBarLength(int minBarLength) Set this to ensure that bars have a minimum length in pixels.- Parameters:
- minBarLength- a minimum length in pixels.
 
 - 
getMinBarLengthdefault int getMinBarLength() Returns a minimum length in pixels.- Specified by:
- getMinBarLengthin interface- IsDefaultBarDatasets
- Returns:
- a minimum length in pixels.
 
 - 
setGroupeddefault void setGrouped(boolean grouped) Whentrue, all the data sets at same index value will be placed next to each other centering on that index value.
 Whenfalse, each bar is placed on its actual index-axis value.- Parameters:
- grouped- if- true, all the data sets at same index value will be placed next to each other centering on that index value
 
 - 
isGroupeddefault boolean isGrouped() Whentrue, all the data sets at same index value will be placed next to each other centering on that index value.
 Whenfalse, each bar is placed on its actual index-axis value.- Specified by:
- isGroupedin interface- IsDefaultBarDatasets
- Returns:
- if true, all the data sets at same index value will be placed next to each other centering on that index value
 
 
- 
 
-