📄 itemcolumnquotientfunction.java
字号:
/**
* ========================================
* JFreeReport : a free Java report library
* ========================================
*
* Project Info: http://www.jfree.org/jfreereport/index.html
* Project Lead: Thomas Morgner;
*
* (C) Copyright 2000-2003, by Simba Management Limited and Contributors.
*
* This library 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 2.1 of the License, or (at your option) any later version.
*
* This library 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 this
* library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307, USA.
*
* -------------------------------
* ItemColumnQuotientFunction.java
* -------------------------------
* (C)opyright 2002, 2003, by Heiko Evermann and Contributors.
*
* Original Author: Heiko Evermann (for Hawesko GmbH & Co KG);
* Contributor(s): David Gilbert (for Simba Management Limited);
*
* $Id: ItemColumnQuotientFunction.java,v 1.8.2.1 2003/08/24 14:18:08 taqua Exp $
*
* Changes
* -------
* 23-Dec-2002 : Initial version
*
*/
package com.jrefinery.report.function;
import java.io.Serializable;
import com.jrefinery.report.event.ReportEvent;
import com.jrefinery.report.util.Log;
/**
* A report function that calculates the quotient of two fields (columns)
* from the current row.
* <p>
* This function expects its input values to be either java.lang.Number instances or Strings
* that can be parsed to java.lang.Number instances using a java.text.DecimalFormat.
* <p>
* The function undestands two parameters.
* The <code>dividend</code> parameter is required and denotes the name of an ItemBand-field
* which is used as dividend. The <code>divisor</code> parameter is required and denotes
* the name of an ItemBand-field which is uses as divisor.
* <p>
*
* @author Heiko Evermann
* @deprecated use ItemColumnQuotientExpression instead
*/
public class ItemColumnQuotientFunction extends ItemColumnQuotientExpression
implements Serializable, Function
{
/**
* Default Constructor.
*/
public ItemColumnQuotientFunction()
{
Log.warn("The use of the 'ItemColumnQuotientFunction' is deprecated. " +
"Please use the 'ItemColumnQuotientExpression' instead.");
}
/**
* Receives notification that report generation initializes the current run.
* <P>
* The event carries a ReportState.Started state. Use this to initialize the report.
*
* @param event The event.
*/
public void reportInitialized(final ReportEvent event)
{
}
/**
* Receives notification that report generation has started.
* <P>
* The event carries a ReportState.Started state.
* Use this to prepare the report header.
*
* @param event The event.
*/
public void reportStarted(final ReportEvent event)
{
}
/**
* Receives notification that report generation has finished (the last record is read and all
* groups are closed).
*
* @param event The event.
*/
public void reportFinished(final ReportEvent event)
{
}
/**
* Receives notification that report generation has completed, the report footer was printed,
* no more output is done. This is a helper event to shut down the output service.
*
* @param event The event.
*/
public void reportDone(final ReportEvent event)
{
}
/**
* Receives notification that a new page is being started.
*
* @param event The event.
*/
public void pageStarted(final ReportEvent event)
{
}
/**
* Receives notification that a page is completed.
*
* @param event The event.
*/
public void pageFinished(final ReportEvent event)
{
}
/**
* Receives notification that a new group has started.
* <P>
* The group can be determined by the report state's getCurrentGroup() function.
*
* @param event The event.
*/
public void groupStarted(final ReportEvent event)
{
}
/**
* Receives notification that a group is finished.
* <P>
* The group can be determined by the report state's getCurrentGroup() function.
*
* @param event The event.
*/
public void groupFinished(final ReportEvent event)
{
}
/**
* Receives notification that a group of item bands is about to be processed.
* <P>
* The next events will be itemsAdvanced events until the itemsFinished event is raised.
*
* @param event The event.
*/
public void itemsStarted(final ReportEvent event)
{
}
/**
* Receives notification that a group of item bands has been completed.
* <P>
* The itemBand is finished, the report starts to close open groups.
*
* @param event The event.
*/
public void itemsFinished(final ReportEvent event)
{
}
/**
* Receives notification that a new row has been read.
* <P>
* This event is raised before an ItemBand is printed.
*
* @param event The event.
*/
public void itemsAdvanced(final ReportEvent event)
{
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -