📄 logicalpage.java
字号:
/**
* ========================================
* JFreeReport : a free Java report library
* ========================================
*
* Project Info: http://www.jfree.org/jfreereport/index.html
* Project Lead: Thomas Morgner;
*
* (C) Copyright 2000-2002, 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.
*
* ----------------
* LogicalPage.java
* ----------------
* (C)opyright 2002, by Thomas Morgner and Contributors.
*
* Original Author: Thomas Morgner;
* Contributor(s): David Gilbert (for Simba Management Limited);
*
* $Id: LogicalPage.java,v 1.3 2003/08/24 15:03:52 taqua Exp $
*
* Changes
* -------
* 03-Dec-2002 : Javadocs (DG);
*
*/
package org.jfree.report.modules.output.pageable.base;
import java.awt.geom.Rectangle2D;
import java.awt.print.PageFormat;
import org.jfree.report.Band;
/**
* An interface that defines a logical page. A logical page is responsible for
* distributing the received bands so that they can be printed. Don't make any
* assumptions how the content gets distributed.
*
* @see org.jfree.report.modules.output.pageable.base.physicals.LogicalPageImpl
* @author Thomas Morgner.
*/
public interface LogicalPage
{
/**
* Returns the page width.
*
* @return the page width.
*/
public float getWidth();
/**
* Returns the page height.
*
* @return the page height.
*/
public float getHeight();
/**
* Returns true if the page is open, and false otherwise.
*
* @return true or false.
*/
public boolean isOpen();
/**
* Returns true if the page is empty, and false otherwise.
*
* @return true or false.
*/
public boolean isEmpty();
/**
* Closes the page.
*/
public void close();
/**
* Opens the page.
*/
public void open();
/**
* Replays a spool.A spool is a collection of previously prepared content which
* should be printed later.
*
* @param operations the spool that should be replayed.
*/
public void replaySpool(Spool operations);
/**
* Generate a spool. A spool is a collection (or macro) of lowlevel processing instruction
* on how to distribute a band and its contents. When a spool is recorded, all operations
* needed to replay the spool later are created and stored within the spool object.
* <p>
* The spool can be saved, cloned and replayed at a later time.
*
* @param bounds the bounds.
* @param band the band.
*
* @throws OutputTargetException if there is a problem with the output target.
*
* @return a spool.
*/
public Spool spoolBand(Rectangle2D bounds, Band band) throws OutputTargetException;
/**
* Adds a band to the logical page.
*
* @param bounds the bounds.
* @param band the band.
*
* @throws OutputTargetException if there is a problem with the output target.
*/
public void addBand(Rectangle2D bounds, Band band) throws OutputTargetException;
/**
* Returns the physical page format.
* todo: Find a better way of handling this. Support different pageformats in one
* logical Page (BookStyle).
*
* @return the physical page format.
*/
public PageFormat getPhysicalPageFormat();
/**
* Gets the output target.
*
* @return the output target.
*/
public OutputTarget getOutputTarget();
/**
* Sets the output target for the page.
*
* @param target the output target.
*/
public void setOutputTarget(OutputTarget target);
/**
* Creates a new instance of a logical page.
*
* @return a logical page.
*/
public LogicalPage newInstance();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -