net.sf.jasperreports.charts.JRBubblePlot Maven / Gradle / Ivy
/*
* JasperReports - Free Java Reporting Library.
* Copyright (C) 2001 - 2019 TIBCO Software Inc. All rights reserved.
* http://www.jaspersoft.com
*
* Unless you have purchased a commercial license agreement from Jaspersoft,
* the following license terms apply:
*
* This program is part of JasperReports.
*
* JasperReports is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* JasperReports is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with JasperReports. If not, see .
*/
package net.sf.jasperreports.charts;
import net.sf.jasperreports.charts.type.ScaleTypeEnum;
import net.sf.jasperreports.engine.JRChartPlot;
import net.sf.jasperreports.engine.JRExpression;
/**
* 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 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
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 the X
value for each item
* (scaleType="BothAxes"
).
*
* By default, bubbles scale on the range axis.
*
* @author Flavius Sana ([email protected])
*/
public interface JRBubblePlot extends JRChartPlot, JRXAxisFormat, JRYAxisFormat
{
/**
* @return the x axis label expression
*/
public JRExpression getXAxisLabelExpression();
/**
* @return the y axis label expression
*/
public JRExpression getYAxisLabelExpression();
/**
* @return the scale type. Possible values are:
*
* - {@link net.sf.jasperreports.charts.type.ScaleTypeEnum#ON_BOTH_AXES ON_BOTH_AXES}
* - {@link net.sf.jasperreports.charts.type.ScaleTypeEnum#ON_DOMAIN_AXIS ON_DOMAIN_AXIS}
* - {@link net.sf.jasperreports.charts.type.ScaleTypeEnum#ON_RANGE_AXIS ON_RANGE_AXIS}
*
* @see net.sf.jasperreports.charts.type.ScaleTypeEnum
*/
public ScaleTypeEnum getScaleTypeValue();
/**
* Sets the scale type.
* @param scaleType the scale type
*/
public void setScaleType(ScaleTypeEnum scaleType);
/**
* @return the minimum value expression for the domain axis
*/
public JRExpression getDomainAxisMinValueExpression();
/**
* @return the maximum value expression for the domain axis
*/
public JRExpression getDomainAxisMaxValueExpression();
/**
* @return the minimum value expression for the range axis
*/
public JRExpression getRangeAxisMinValueExpression();
/**
* @return the maximum value expression for the range axis
*/
public JRExpression getRangeAxisMaxValueExpression();
}