|
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.XYPlot
public class XYPlot
A general class for plotting data in the form of (x, y) pairs. This plot can
use data from any class that implements the XYDataset interface.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.inet.report.chart.plot.AbstractPlot |
|---|
AbstractPlot.GradientSetting |
| Field Summary | |
|---|---|
static double |
DEFAULT_SIZE_COEFFICIENT
The default bubble size coefficient. |
static XYStyle |
DEFAULT_STYLE
Default chart style with this plot. |
| 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 | |
|---|---|
XYPlot()
Creates a xy plot (e.g. scatter or bubble) with default properties. |
|
XYPlot(XYStyle style)
Creates a xy plot (e.g. scatter or bubble) with defined chart style. |
|
| Method Summary | |
|---|---|
ContinuousNumberAxis |
getCategoryAxis()
Returns the category axis for this plot. |
ContinuousNumberAxis |
getDataAxis()
Returns the data axis for this plot. |
XYDataset |
getDataset()
Returns a dataset of type XYDataset. |
double |
getSizeCoefficient()
Returns the size coefficient of chart items. |
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. |
void |
readProperties(org.w3c.dom.Element element,
Chart2 chart)
Reads the chart properties from the DOMParser Element. |
void |
refreshAutoTitles(Chart2 chart)
Reads out the data column names from dataset and refreshes the chart labels. |
protected void |
saveSubProperties(java.io.PrintWriter out,
int depth)
Writes the intern properties to output. |
void |
setCategoryAxis(ContinuousNumberAxis categoryAxis)
Sets the category axis for this plot. |
void |
setDataAxis(ContinuousNumberAxis dataAxis)
Sets the data axis for this plot. |
void |
setDataset(XYDataset dataset)
Sets the dataset for this plot. |
void |
setSizeCoefficient(double sizeCoefficient)
Sets the size coefficient of the bubbles. |
void |
setStyle(XYStyle style)
Sets the chart style of this plot. |
| Field Detail |
|---|
public static final XYStyle DEFAULT_STYLE
public static final double DEFAULT_SIZE_COEFFICIENT
| Constructor Detail |
|---|
public XYPlot()
public XYPlot(XYStyle style)
style - the chart style (null not permitted)XYStyle| Method Detail |
|---|
public XYDataset getDataset()
XYDataset.
setDataset(XYDataset),
XYForAllRecordsDataset,
XYForEachRecordDataset,
XYOneGroupDatasetpublic void setDataset(XYDataset dataset)
dataset - the dataset to set (null not permitted),getDataset(),
XYDataset,
XYForAllRecordsDataset,
XYForEachRecordDataset,
XYOneGroupDatasetpublic ContinuousNumberAxis getCategoryAxis()
setCategoryAxis(ContinuousNumberAxis),
ContinuousNumberAxispublic void setCategoryAxis(ContinuousNumberAxis categoryAxis)
categoryAxis - the category axis (null not permitted)getCategoryAxis(),
ContinuousNumberAxispublic ContinuousNumberAxis getDataAxis()
setDataAxis(ContinuousNumberAxis),
ContinuousNumberAxispublic void setDataAxis(ContinuousNumberAxis dataAxis)
dataAxis - the data axis (null not permitted)getDataAxis(),
ContinuousNumberAxispublic ChartStyle getStyle()
getStyle in class AbstractPlotBarStyle.BAR2D,
LineStyle.LINE_MARKER,
AreaStyle.AREA2D_STACKEDpublic void setStyle(XYStyle style)
style - the style (null not permitted)getStyle(),
XYStylepublic double getSizeCoefficient()
setSizeCoefficient(double)public void setSizeCoefficient(double sizeCoefficient)
XYStyle.BUBBLE. To set the shape size of scatter chart please use thisAbstractPlot.setItemShape(ItemShape).
sizeCoefficient - the coefficient
java.lang.IllegalArgumentException - if the coefficient is out of range.getSizeCoefficient(),
DEFAULT_SIZE_COEFFICIENTpublic void refreshAutoTitles(Chart2 chart)
refreshAutoTitles in interface ChartPlotrefreshAutoTitles in class AbstractPlotchart - the chartprotected java.lang.StringBuffer getSubProperties(int depth)
getSubProperties in class AbstractPlotdepth - the depth of XML indent
protected void saveSubProperties(java.io.PrintWriter out,
int depth)
PrintWriter without building a StringBuffer.
saveSubProperties in class AbstractPlotout - the outputdepth - the depth of XML indent
public void readProperties(org.w3c.dom.Element element,
Chart2 chart)
readProperties in interface ChartPlotreadProperties in class AbstractPlotelement - 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 | |||||||