Klasse BarPlot
java.lang.Object
com.inet.report.chart.plot.AbstractPlot
com.inet.report.chart.plot.StandardPlot
com.inet.report.chart.plot.BarPlot
- Alle implementierten Schnittstellen:
ChartPlot, Serializable
A general class for plotting data of groups of values. This plot can
use data from any class that implements the
BaseDataset interface.- Seit:
- 8.0
- Siehe auch:
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen AbstractPlot
AbstractPlot.GradientSetting -
Feldübersicht
FelderModifikator und TypFeldBeschreibungstatic final doubleThe default bar margin percentage.static final doubleThe default bar width.static final BarStyleDefault chart style with this plot.static final intA auto label alignment, is default.static final intA horizontal label alignment.static final intA vertical label alignment.Von Klasse geerbte Felder StandardPlot
ITEM_LABEL_POSITION_BASE, ITEM_LABEL_POSITION_CENTER, ITEM_LABEL_POSITION_INSIDE_OF_MAX, ITEM_LABEL_POSITION_OUTSIDE_OF_MAX -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifikator und TypMethodeBeschreibungdoubleReturns the bar margin in percent where 0.10 is 10 percent.doubleReturns the maximum bar width in percent where 0.10 is 10 percent.intReturns the label alignment displayed on the items of this plot.getStyle()Returns the style of this chart, ie. the general category this plot belongs to.protected StringBuildergetSubProperties(int depth) Returns the serialized simple properties of subclasses.booleanReturns the flag that controls whether or not the totals will be showed for each bar.voidreadProperties(Element element, Chart2 chart) Reads the chart properties from the DOMParser Element.voidsetBarMarginPercent(double barMarginPercent) Sets the bar margin (space between the bars).voidsetBarWidth(double barWidth) Sets the maximum bar width, which is specified as a percentage of the available space for all bars,voidsetCategoryAxis(GroupAxis categoryAxis) Sets the axis for categories of this plot.voidsetDataAxis(ContinuousNumberAxis dataAxis) Sets the axis for data of this plot.voidsetItemLabelAlignment(int itemLabelAlignment) Sets the item label alignment.voidsetShowTotal(boolean showTotal) Sets the flag that controls whether or not the totals will be showed for each bar.
Note: this property works only for stacked chart with showing absolute values.voidSets a chart style of this bar plot.Von Klasse geerbte Methoden StandardPlot
getCategoryAxis, getDataAxis, getDataset, getItemLabelPosition, getReferencedObject, isShowCumulativeValues, refreshAutoTitles, saveSubProperties, setCategoryAxis, setDataAxis, setDataset, setItemLabelPosition, setShowCumulativeValuesVon Klasse geerbte Methoden AbstractPlot
getBackColor, getColorFormula, getColorSequence, getForegroundAlpha, getGradientSetting, getItemLabelColor, getItemLabelFont, getItemLabelFormat, getItemLabelFormatFormula, getItemShape, getOutlineColor, getOutlineStyle, getOutlineWidth, isColorBySeries, isDrawOutline, isSameColorsForSameGroups, isShowLabel, isShowValue, saveProperties, setBackColor, setColorBySeries, setColorFormula, setColorSequence, setDrawOutline, setForegroundAlpha, setGradientSetting, setItemLabelColor, setItemLabelFont, setItemLabelFormat, setItemLabelFormatFormula, setItemShape, setOutlineColor, setOutlineStyle, setOutlineWidth, setSameColorsForSameGroups, setShowLabel, setShowValue
-
Felddetails
-
DEFAULT_STYLE
Default chart style with this plot. -
ITEM_LABEL_ALIGNMENT_AUTO
public static final int ITEM_LABEL_ALIGNMENT_AUTOA auto label alignment, is default.- Siehe auch:
-
ITEM_LABEL_ALIGNMENT_VERTICAL
public static final int ITEM_LABEL_ALIGNMENT_VERTICALA vertical label alignment.- Siehe auch:
-
ITEM_LABEL_ALIGNMENT_HORIZONTAL
public static final int ITEM_LABEL_ALIGNMENT_HORIZONTALA horizontal label alignment.- Siehe auch:
-
DEFAULT_BAR_MARGIN_PERCENT
public static final double DEFAULT_BAR_MARGIN_PERCENTThe default bar margin percentage.- Siehe auch:
-
DEFAULT_BAR_WIDTH
public static final double DEFAULT_BAR_WIDTHThe default bar width.- Siehe auch:
-
-
Konstruktordetails
-
BarPlot
public BarPlot()Creates a bar plot with default properties.- Seit:
- 8.0
-
BarPlot
Creates a bar plot with defined chart style. Initializes all properties with default values.- Parameter:
style- the chart style (nullnot permitted)- Seit:
- 8.0
- Siehe auch:
-
-
Methodendetails
-
setCategoryAxis
Sets the axis for categories of this plot. The category axis shows the values of the first group field.- Parameter:
categoryAxis- the category axis (nullnot permitted)- Seit:
- 8.0
- Siehe auch:
-
setDataAxis
Sets the axis for data of this plot. The data axis shows the summarized values of the data fields.- Parameter:
dataAxis- the data axis (nullnot permitted)- Seit:
- 8.0
- Siehe auch:
-
getStyle
Returns the style of this chart, ie. the general category this plot belongs to.- Angegeben von:
getStylein KlasseStandardPlot- Gibt zurück:
- the style
- Siehe auch:
-
setStyle
Sets a chart style of this bar plot.- Parameter:
style- the bar style (nullnot permitted)- Seit:
- 8.0
- Siehe auch:
-
getItemLabelAlignment
public int getItemLabelAlignment()Returns the label alignment displayed on the items of this plot.- Gibt zurück:
- the alignment.
- Seit:
- 8.0
- Siehe auch:
-
setItemLabelAlignment
public void setItemLabelAlignment(int itemLabelAlignment) Sets the item label alignment. An item label is a label with name and value on each chart item. Default alignment isITEM_LABEL_ALIGNMENT_AUTO.- Parameter:
itemLabelAlignment- the item label alignment- Löst aus:
IllegalArgumentException- by unknown alignment.- Seit:
- 8.0
- Siehe auch:
-
isShowTotal
public boolean isShowTotal()Returns the flag that controls whether or not the totals will be showed for each bar.- Gibt zurück:
- the flag.
- Seit:
- 8.0
- Siehe auch:
-
setShowTotal
public void setShowTotal(boolean showTotal) Sets the flag that controls whether or not the totals will be showed for each bar.
Note: this property works only for stacked chart with showing absolute values.- Parameter:
showTotal- the flag- Seit:
- 8.0
- Siehe auch:
-
getBarMarginPercent
public double getBarMarginPercent()Returns the bar margin in percent where 0.10 is 10 percent.- Gibt zurück:
- the margin
- Seit:
- 14.1
- Siehe auch:
-
setBarMarginPercent
public void setBarMarginPercent(double barMarginPercent) Sets the bar margin (space between the bars). The value is expressed as a percentage of the available plot width.- Parameter:
barMarginPercent- the margin (where 0.10 is ten percent)- Seit:
- 14.1
-
getBarWidth
public double getBarWidth()Returns the maximum bar width in percent where 0.10 is 10 percent.- Gibt zurück:
- the bar width
- Seit:
- 11.0
- Siehe auch:
-
setBarWidth
public void setBarWidth(double barWidth) Sets the maximum bar width, which is specified as a percentage of the available space for all bars,- Parameter:
barWidth- the width (where 0.10 is ten percent)- Seit:
- 11.0
- Siehe auch:
-
getSubProperties
Returns the serialized simple properties of subclasses.- Setzt außer Kraft:
getSubPropertiesin KlasseStandardPlot- Parameter:
depth- the depth of XML indent- Gibt zurück:
- the properties.
-
readProperties
Reads the chart properties from the DOMParser Element.- Angegeben von:
readPropertiesin SchnittstelleChartPlot- Setzt außer Kraft:
readPropertiesin KlasseStandardPlot- Parameter:
element- the DOMParser Elementchart- the chart
-