Package com.inet.report.chart.plot
Class BarStyle
java.lang.Object
com.inet.report.chart.plot.ChartStyle
com.inet.report.chart.plot.BarStyle
- All Implemented Interfaces:
Serializable
This class defines the different styles for the bar chart.
This style belongs to the plot
BarPlot
.- Since:
- 8.0
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final BarStyle
This is a 2D bar style.static final BarStyle
This is a 2D bar style with boxed values.static final BarStyle
This is a 2D bar style with percent values.static final BarStyle
This is a 2D bar style with stacked values.static final BarStyle
This is a 3D bar style.static final BarStyle
This is a 3D bar style with percent values.static final BarStyle
This is a 3D bar style with stacked values. -
Method Summary
Modifier and TypeMethodDescriptionboolean
getAllowedDatasets
(Chart2 chart) Returns the list of dataset supported by this chart style.Creates a new bar plot and initializes the plot with default settings.boolean
Returns this is a percent 2D or 3D style.boolean
Returns this is a simple 2D or 3D style.boolean
Returns this is a stacked 2D or 3D style.Methods inherited from class com.inet.report.chart.plot.ChartStyle
hashCode, toString
-
Field Details
-
BAR2D
This is a 2D bar style. -
BAR2D_STACKED
This is a 2D bar style with stacked values. -
BAR2D_BOXED
This is a 2D bar style with boxed values. -
BAR2D_PERCENT
This is a 2D bar style with percent values. -
BAR3D
This is a 3D bar style. -
BAR3D_STACKED
This is a 3D bar style with stacked values. -
BAR3D_PERCENT
This is a 3D bar style with percent values.
-
-
Method Details
-
equals
- Overrides:
equals
in classChartStyle
-
getDefaultPlot
Creates a new bar plot and initializes the plot with default settings.- Specified by:
getDefaultPlot
in classChartStyle
- Returns:
- the plot of type
BarPlot
. - Since:
- 8.0
- See Also:
-
getAllowedDatasets
Returns the list of dataset supported by this chart style.- Specified by:
getAllowedDatasets
in classChartStyle
- Parameters:
chart
- the chart- Returns:
- the list of datasets.
- See Also:
-
isSimpleBar
public boolean isSimpleBar()Returns this is a simple 2D or 3D style.- Returns:
- is a simple style.
- Since:
- 8.0
-
isStackedBar
public boolean isStackedBar()Returns this is a stacked 2D or 3D style.- Returns:
- is a stacked style.
- Since:
- 8.0
-
isPercentBar
public boolean isPercentBar()Returns this is a percent 2D or 3D style.- Returns:
- is a percent style.
- Since:
- 8.0
-