|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.inet.report.chart.plot.AbstractPlot
com.inet.report.chart.plot.StandardPlot
com.inet.report.chart.plot.BarPlot
public class BarPlot
A general class for plotting data of groups of values. This plot can
use data from any class that implements the BaseDataset interface.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.inet.report.chart.plot.AbstractPlot |
|---|
AbstractPlot.GradientSetting |
| Field Summary | |
|---|---|
static double |
DEFAULT_BAR_MARGIN_PERCENT
Deprecated. As of i-net Clear Reports 11.0, replaced by DEFAULT_BAR_WIDTH |
static double |
DEFAULT_BAR_WIDTH
The default bar width. |
static BarStyle |
DEFAULT_STYLE
Default chart style with this plot. |
static int |
ITEM_LABEL_ALIGNMENT_AUTO
A auto label alignment, is default. |
static int |
ITEM_LABEL_ALIGNMENT_HORIZONTAL
A horizontal label alignment. |
static int |
ITEM_LABEL_ALIGNMENT_VERTICAL
A vertical label alignment. |
| Fields inherited from class com.inet.report.chart.plot.StandardPlot |
|---|
ITEM_LABEL_POSITION_BASE, ITEM_LABEL_POSITION_CENTER, ITEM_LABEL_POSITION_INSIDE_OF_MAX, ITEM_LABEL_POSITION_OUTSIDE_OF_MAX |
| Fields inherited from class com.inet.report.chart.plot.AbstractPlot |
|---|
DEFAULT_COLOR_SEQUENCE, DEFAULT_FOREGROUND_ALPHA, DEFAULT_ITEM_LABEL_COLOR, DEFAULT_ITEM_LABEL_FONT, DEFAULT_OUTLINE_COLOR, DEFAULT_OUTLINE_STYLE, DEFAULT_OUTLINE_WIDTH, TOKEN_PLOT |
| Constructor Summary | |
|---|---|
BarPlot()
Creates a bar plot with default properties. |
|
BarPlot(BarStyle style)
Creates a bar plot with defined chart style. |
|
| Method Summary | |
|---|---|
double |
getBarMarginPercent()
Deprecated. As of i-net Clear Reports 11.0, replaced by getBarWidth() |
double |
getBarWidth()
Returns the maximum bar width in percent where 0.10 is 10 percent. |
int |
getItemLabelAlignment()
Returns the label alignment displayed on the items of this plot. |
ChartStyle |
getStyle()
Returns the style of this chart, ie. the general category this plot belongs to. |
protected java.lang.StringBuffer |
getSubProperties(int depth)
Returns the serialized simple properties of subclasses. |
boolean |
isShowTotal()
Returns the flag that controls whether or not the totals will be showed for each bar. |
void |
readProperties(org.w3c.dom.Element element,
Chart2 chart)
Reads the chart properties from the DOMParser Element. |
void |
setBarMarginPercent(double barMarginPercent)
Deprecated. As of i-net Clear Reports 11.0, replaced by setBarWidth(double) |
void |
setBarWidth(double barWidth)
Sets the maximum bar width, which is specified as a percentage of the available space for all bars, |
void |
setCategoryAxis(GroupAxis categoryAxis)
Sets the axis for categories of this plot. |
void |
setDataAxis(ContinuousNumberAxis dataAxis)
Sets the axis for data of this plot. |
void |
setItemLabelAlignment(int itemLabelAlignment)
Sets the item label alignment. |
void |
setShowTotal(boolean showTotal)
Sets the flag that controls whether or not the totals will be showed for each bar. |
void |
setStyle(BarStyle style)
Sets a chart style of this bar plot. |
| Methods inherited from class com.inet.report.chart.plot.StandardPlot |
|---|
getCategoryAxis, getDataAxis, getDataset, getItemLabelPosition, isShowCumulativeValues, refreshAutoTitles, saveSubProperties, setCategoryAxis, setDataAxis, setDataset, setItemLabelPosition, setShowCumulativeValues |
| Field Detail |
|---|
public static final BarStyle DEFAULT_STYLE
public static final int ITEM_LABEL_ALIGNMENT_AUTO
public static final int ITEM_LABEL_ALIGNMENT_VERTICAL
public static final int ITEM_LABEL_ALIGNMENT_HORIZONTAL
@Deprecated public static final double DEFAULT_BAR_MARGIN_PERCENT
DEFAULT_BAR_WIDTH
public static final double DEFAULT_BAR_WIDTH
| Constructor Detail |
|---|
public BarPlot()
public BarPlot(BarStyle style)
style - the chart style (null not permitted)BarStyle| Method Detail |
|---|
public void setCategoryAxis(GroupAxis categoryAxis)
categoryAxis - the category axis (null not permitted)StandardPlot.getCategoryAxis(),
GroupAxispublic void setDataAxis(ContinuousNumberAxis dataAxis)
dataAxis - the data axis (null not permitted)StandardPlot.getDataAxis(),
ContinuousNumberAxispublic ChartStyle getStyle()
getStyle in class StandardPlotBarStyle.BAR2D,
LineStyle.LINE_MARKER,
AreaStyle.AREA2D_STACKEDpublic void setStyle(BarStyle style)
style - the bar style (null not permitted)getStyle(),
BarStylepublic int getItemLabelAlignment()
setItemLabelAlignment(int),
ITEM_LABEL_ALIGNMENT_AUTO,
ITEM_LABEL_ALIGNMENT_HORIZONTAL,
ITEM_LABEL_ALIGNMENT_VERTICALpublic void setItemLabelAlignment(int itemLabelAlignment)
ITEM_LABEL_ALIGNMENT_AUTO.
itemLabelAlignment - the item label alignment
java.lang.IllegalArgumentException - by unknown alignment.getItemLabelAlignment(),
ITEM_LABEL_ALIGNMENT_AUTO,
ITEM_LABEL_ALIGNMENT_HORIZONTAL,
ITEM_LABEL_ALIGNMENT_VERTICALpublic boolean isShowTotal()
setShowTotal(boolean)public void setShowTotal(boolean showTotal)
showTotal - the flagisShowTotal(),
BarStyle.BAR2D_STACKED,
StandardPlot.setShowCumulativeValues(boolean)@Deprecated public double getBarMarginPercent()
getBarWidth()
setBarMarginPercent(double)@Deprecated public void setBarMarginPercent(double barMarginPercent)
setBarWidth(double)
barMarginPercent - the margin (where 0.10 is ten percent)getBarMarginPercent()public double getBarWidth()
setBarWidth(double)public void setBarWidth(double barWidth)
barWidth - the width (where 0.10 is ten percent)getBarWidth()protected java.lang.StringBuffer getSubProperties(int depth)
getSubProperties in class StandardPlotdepth - the depth of XML indent
public void readProperties(org.w3c.dom.Element element,
Chart2 chart)
readProperties in interface ChartPlotreadProperties in class StandardPlotelement - the DOMParser Elementchart - the chart
|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||