Package net.sf.jasperreports.charts
Interface JRBubblePlot
- All Superinterfaces:
Cloneable,JRChartPlot,JRCloneable,JRXAxisFormat,JRYAxisFormat
- All Known Implementing Classes:
JRBaseBubblePlot,JRDesignBubblePlot,JRFillBubblePlot
Only Bubble charts use this type of plot. Like all other two-axis plots, it lets users control
the labels displayed for each axis.
The plot draws an ellipse for each item present in the dataset for a given series. Usually this is a circle whose radius is specified by the
The type of bubble scaling is specified by the
The plot draws an ellipse for each item present in the dataset for a given series. Usually this is a circle whose radius is specified by the
Z value in that chart item. However, the
plot needs to know whether the Z value is proportional to its corresponding X value or to
its corresponding Y value in order to calculate the actual size of the bubble.
The type of bubble scaling is specified by the
scaleType attribute that the plot exposes:
- Range axis scaling: The bubble is a circle with the radius proportional to the
Yvalue for each item (scaleType="RangeAxis"). - Domain axis scaling: The bubble is a circle with the radius proportional to the
Xvalue for each item (scaleType="DomainAxis"). - Scaling on both axes: The bubble is an ellipse with the height proportional to
the
Yvalue and the width proportional to theXvalue for each item (scaleType="BothAxes").
- Author:
- Flavius Sana (flavius_sana@users.sourceforge.net)
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.sf.jasperreports.charts.JRChartPlot
JRChartPlot.JRSeriesColor -
Method Summary
Modifier and TypeMethodDescriptionvoidsetScaleType(ScaleTypeEnum scaleType) Sets the scale type.Methods inherited from interface net.sf.jasperreports.charts.JRChartPlot
addSeriesColor, clearSeriesColors, clone, collectExpressions, getBackcolor, getBackgroundAlpha, getChart, getForegroundAlpha, getLabelRotation, getOrientation, getOwnBackcolor, getSeriesColors, setBackcolor, setBackgroundAlpha, setForegroundAlpha, setLabelRotation, setOrientation, setSeriesColorsMethods inherited from interface net.sf.jasperreports.engine.JRCloneable
cloneMethods inherited from interface net.sf.jasperreports.charts.JRXAxisFormat
getOwnXAxisLabelColor, getOwnXAxisLineColor, getOwnXAxisTickLabelColor, getXAxisLabelColor, getXAxisLabelFont, getXAxisLineColor, getXAxisTickLabelColor, getXAxisTickLabelFont, getXAxisTickLabelMask, getXAxisVerticalTickLabelsMethods inherited from interface net.sf.jasperreports.charts.JRYAxisFormat
getOwnYAxisLabelColor, getOwnYAxisLineColor, getOwnYAxisTickLabelColor, getYAxisLabelColor, getYAxisLabelFont, getYAxisLineColor, getYAxisTickLabelColor, getYAxisTickLabelFont, getYAxisTickLabelMask, getYAxisVerticalTickLabels
-
Method Details
-
getXAxisLabelExpression
JRExpression getXAxisLabelExpression()- Returns:
- the x axis label expression
-
getYAxisLabelExpression
JRExpression getYAxisLabelExpression()- Returns:
- the y axis label expression
-
getScaleType
ScaleTypeEnum getScaleType()- Returns:
- the scale type. Possible values are:
- See Also:
-
setScaleType
Sets the scale type.- Parameters:
scaleType- the scale type
-
getDomainAxisMinValueExpression
JRExpression getDomainAxisMinValueExpression()- Returns:
- the minimum value expression for the domain axis
-
getDomainAxisMaxValueExpression
JRExpression getDomainAxisMaxValueExpression()- Returns:
- the maximum value expression for the domain axis
-
getRangeAxisMinValueExpression
JRExpression getRangeAxisMinValueExpression()- Returns:
- the minimum value expression for the range axis
-
getRangeAxisMaxValueExpression
JRExpression getRangeAxisMaxValueExpression()- Returns:
- the maximum value expression for the range axis
-