Package net.sf.jasperreports.charts
Interface JRBubblePlot
-
- All Superinterfaces:
Cloneable
,JRChartPlot
,JRCloneable
,JRXAxisFormat
,JRYAxisFormat
- All Known Implementing Classes:
JRBaseBubblePlot
,JRDesignBubblePlot
,JRFillBubblePlot
public interface JRBubblePlot extends JRChartPlot, JRXAxisFormat, JRYAxisFormat
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 theZ
value in that chart item. However, the plot needs to know whether theZ
value is proportional to its correspondingX
value or to its correspondingY
value in order to calculate the actual size of the bubble.
The type of bubble scaling is specified by thescaleType
attribute that the plot exposes:- Range axis scaling: The bubble is a circle with the radius proportional to the
Y
value for each item (scaleType="RangeAxis"
). - Domain axis scaling: The bubble is a circle with the radius proportional to the
X
value for each item (scaleType="DomainAxis"
). - Scaling on both axes: The bubble is an ellipse with the height proportional to
the
Y
value and the width proportional to theX
value 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JRExpression
getDomainAxisMaxValueExpression()
JRExpression
getDomainAxisMinValueExpression()
JRExpression
getRangeAxisMaxValueExpression()
JRExpression
getRangeAxisMinValueExpression()
ScaleTypeEnum
getScaleType()
JRExpression
getXAxisLabelExpression()
JRExpression
getYAxisLabelExpression()
void
setScaleType(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, setSeriesColors
-
Methods inherited from interface net.sf.jasperreports.engine.JRCloneable
clone
-
Methods inherited from interface net.sf.jasperreports.charts.JRXAxisFormat
getOwnXAxisLabelColor, getOwnXAxisLineColor, getOwnXAxisTickLabelColor, getXAxisLabelColor, getXAxisLabelFont, getXAxisLineColor, getXAxisTickLabelColor, getXAxisTickLabelFont, getXAxisTickLabelMask, getXAxisVerticalTickLabels
-
Methods inherited from interface net.sf.jasperreports.charts.JRYAxisFormat
getOwnYAxisLabelColor, getOwnYAxisLineColor, getOwnYAxisTickLabelColor, getYAxisLabelColor, getYAxisLabelFont, getYAxisLineColor, getYAxisTickLabelColor, getYAxisTickLabelFont, getYAxisTickLabelMask, getYAxisVerticalTickLabels
-
-
-
-
Method Detail
-
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:
ScaleTypeEnum
-
setScaleType
void setScaleType(ScaleTypeEnum scaleType)
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
-
-