All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sf.jasperreports.charts.JRBubblePlot Maven / Gradle / Ivy

The newest version!
/*
 * JasperReports - Free Java Reporting Library.
 * Copyright (C) 2001 - 2023 Cloud Software Group, 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 com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;

import net.sf.jasperreports.charts.design.JRDesignBubblePlot;
import net.sf.jasperreports.charts.type.ScaleTypeEnum;
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]) */ @JsonTypeName("bubble") @JsonDeserialize(as = JRDesignBubblePlot.class) 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 */ @JacksonXmlProperty(isAttribute = true) public ScaleTypeEnum getScaleType(); /** * 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(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy