Interface IsDefaultBarDatasets
-
- All Known Subinterfaces:
HasBarDatasetOptions,IsDefaultTypedDataset
- All Known Implementing Classes:
BarDataset,ChoroplethDataset,DefaultChartTypedDatasets,DefaultTypedDataset,HorizontalBarDataset,StackedBarDataset,StackedHorizontalBarDataset,TimeSeriesBarDataset,TimeSeriesHorizontalBarDataset,TypedDataset
public interface IsDefaultBarDatasetsInterface to define BAR datasets object defaults.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description doublegetBarPercentage()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.intgetBarThickness()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.doublegetCategoryPercentage()Returns the percent (0-1) of the available width each category should be within the sample width.intgetMaxBarThickness()Returns the maximum bar thickness.intgetMinBarLength()Returns a minimum length in pixels.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.
-
-
-
Method Detail
-
getBarPercentage
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.- 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.
-
getCategoryPercentage
double getCategoryPercentage()
Returns the percent (0-1) of the available width each category should be within the sample width.- Returns:
- the percent (0-1) of the available width each category should be within the sample width.
-
getBarThickness
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.- 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.
-
getMaxBarThickness
int getMaxBarThickness()
Returns the maximum bar thickness.- Returns:
- the maximum bar thickness.
-
getMinBarLength
int getMinBarLength()
Returns a minimum length in pixels.- Returns:
- a minimum length in pixels.
-
isGrouped
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.- Returns:
- if
true, all the data sets at same index value will be placed next to each other centering on that index value.
-
-