Klasse XYPlot
java.lang.Object
com.inet.report.chart.plot.AbstractPlot
com.inet.report.chart.plot.XYPlot
- Alle implementierten Schnittstellen:
ChartPlot, Serializable
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.- 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 bubble size coefficient.static final XYStyleDefault chart style with this plot. -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifikator und TypMethodeBeschreibungReturns the category axis for this plot.Returns the data axis for this plot.Returns a dataset of typeXYDataset.doubleReturns the size coefficient of chart items.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.voidreadProperties(Element element, Chart2 chart) Reads the chart properties from the DOMParser Element.voidrefreshAutoTitles(Chart2 chart) Reads out the data column names from dataset and refreshes the chart labels.protected voidsaveSubProperties(PrintWriter out, int depth) Writes the intern properties to output.voidsetCategoryAxis(ContinuousNumberAxis categoryAxis) Sets the category axis for this plot.voidsetDataAxis(ContinuousNumberAxis dataAxis) Sets the data axis for this plot.voidsetDataset(XYDataset dataset) Sets the dataset for this plot.voidsetSizeCoefficient(double sizeCoefficient) Sets the size coefficient of the bubbles.voidSets the chart style of this plot.Von 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. -
DEFAULT_SIZE_COEFFICIENT
public static final double DEFAULT_SIZE_COEFFICIENTThe default bubble size coefficient.- Siehe auch:
-
-
Konstruktordetails
-
XYPlot
public XYPlot()Creates a xy plot (e.g. scatter or bubble) with default properties.- Seit:
- 8.0
-
XYPlot
Creates a xy plot (e.g. scatter or bubble) with defined chart style. Initializes all properties with default values.- Parameter:
style- the chart style (nullnot permitted)- Seit:
- 8.0
- Siehe auch:
-
-
Methodendetails
-
getDataset
-
setDataset
Sets the dataset for this plot.- Parameter:
dataset- the dataset to set (nullnot permitted),- Seit:
- 8.0
- Siehe auch:
-
getCategoryAxis
Returns the category axis for this plot.- Gibt zurück:
- the categoryAxis
- Seit:
- 8.0
- Siehe auch:
-
setCategoryAxis
Sets the category axis for this plot.- Parameter:
categoryAxis- the category axis (nullnot permitted)- Seit:
- 8.0
- Siehe auch:
-
getDataAxis
Returns the data axis for this plot.- Gibt zurück:
- the dataAxis
- Seit:
- 8.0
- Siehe auch:
-
setDataAxis
Sets the data axis for this plot.- 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 KlasseAbstractPlot- Gibt zurück:
- the style
- Siehe auch:
-
setStyle
Sets the chart style of this plot.- Parameter:
style- the style (nullnot permitted)- Seit:
- 8.0
- Siehe auch:
-
getSizeCoefficient
public double getSizeCoefficient()Returns the size coefficient of chart items. The value is expressed as a coefficient of the available range.- Gibt zurück:
- the coefficient.
- Seit:
- 8.0
- Siehe auch:
-
setSizeCoefficient
public void setSizeCoefficient(double sizeCoefficient) Sets the size coefficient of the bubbles. The value is expressed as a coefficient of the available range. Allowed value are between 0 and 1. This property works only with the chart typeXYStyle.BUBBLE. To set the shape size of scatter chart please use thisAbstractPlot.setItemShape(ItemShape).- Parameter:
sizeCoefficient- the coefficient- Löst aus:
IllegalArgumentException- if the coefficient is out of range.- Seit:
- 8.0
- Siehe auch:
-
refreshAutoTitles
Reads out the data column names from dataset and refreshes the chart labels. Please use this function to refresh the chart labels if the data was be changed.- Angegeben von:
refreshAutoTitlesin SchnittstelleChartPlot- Angegeben von:
refreshAutoTitlesin KlasseAbstractPlot- Parameter:
chart- the chart
-
getSubProperties
Returns the serialized simple properties of subclasses.- Setzt außer Kraft:
getSubPropertiesin KlasseAbstractPlot- Parameter:
depth- the depth of XML indent- Gibt zurück:
- the properties.
-
saveSubProperties
Writes the intern properties to output. Overwrites this to save intern properties direct toPrintWriterwithout building aStringBuilder.- Setzt außer Kraft:
saveSubPropertiesin KlasseAbstractPlot- Parameter:
out- the outputdepth- the depth of XML indent
-
readProperties
Reads the chart properties from the DOMParser Element.- Angegeben von:
readPropertiesin SchnittstelleChartPlot- Setzt außer Kraft:
readPropertiesin KlasseAbstractPlot- Parameter:
element- the DOMParser Elementchart- the chart
-
getReferencedObject
- Angegeben von:
getReferencedObjectin SchnittstelleChartPlot- Setzt außer Kraft:
getReferencedObjectin KlasseAbstractPlot- Gibt zurück:
- the list of objects.
-