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:
java.io.Serializable
public class BarStyle extends ChartStyle
This class defines the different styles for the bar chart. This style belongs to the plotBarPlot
.- Since:
- 8.0
- See Also:
BAR2D
,BAR2D_PERCENT
,BAR2D_STACKED
,BAR3D
,BAR3D_PERCENT
,BAR3D_STACKED
, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static BarStyle
BAR2D
This is a 2D bar style.static BarStyle
BAR2D_PERCENT
This is a 2D bar style with percent values.static BarStyle
BAR2D_STACKED
This is a 2D bar style with stacked values.static BarStyle
BAR3D
This is a 3D bar style.static BarStyle
BAR3D_PERCENT
This is a 3D bar style with percent values.static BarStyle
BAR3D_STACKED
This is a 3D bar style with stacked values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.util.List
getAllowedDatasets(Chart2 chart)
Returns the list of dataset supported by this chart style.AbstractPlot
getDefaultPlot()
Creates a new bar plot and initializes the plot with default settings.boolean
isPercentBar()
Returns this is a percent 2D or 3D style.boolean
isSimpleBar()
Returns this is a simple 2D or 3D style.boolean
isStackedBar()
Returns this is a stacked 2D or 3D style.-
Methods inherited from class com.inet.report.chart.plot.ChartStyle
hashCode, toString
-
-
-
-
Field Detail
-
BAR2D
public static final BarStyle BAR2D
This is a 2D bar style.
-
BAR2D_STACKED
public static final BarStyle BAR2D_STACKED
This is a 2D bar style with stacked values.
-
BAR2D_PERCENT
public static final BarStyle BAR2D_PERCENT
This is a 2D bar style with percent values.
-
BAR3D
public static final BarStyle BAR3D
This is a 3D bar style.
-
BAR3D_STACKED
public static final BarStyle BAR3D_STACKED
This is a 3D bar style with stacked values.
-
BAR3D_PERCENT
public static final BarStyle BAR3D_PERCENT
This is a 3D bar style with percent values.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classChartStyle
-
getDefaultPlot
public AbstractPlot 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:
AbstractPlot
-
getAllowedDatasets
public java.util.List getAllowedDatasets(Chart2 chart)
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:
Chart2
-
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
-
-