Style Intelligence v12.0

inetsoft.report.io
Class PSGenerator

java.lang.Object
  extended by inetsoft.report.io.AbstractGenerator
      extended by inetsoft.report.io.PSGenerator
All Implemented Interfaces:
Generator

public class PSGenerator
extends AbstractGenerator

PSGenerator is a PostScript generator that supports generation of report in PostScript.


Field Summary
 
Fields inherited from class inetsoft.report.io.AbstractGenerator
docInfo
 
Constructor Summary
PSGenerator()
          Create a generator.
PSGenerator(OutputStream out)
          Create a generator to the specified output.
 
Method Summary
 void cancel()
          Cancel the generation if one if on going.
 void generate(Enumeration pages)
          Generate PostScript file from a collection of StylePage objects.
 void generate(ReportSheet report)
          Generate PostScript file.
 void generate(ReportSheet sheet, Enumeration pages)
          Write a collection of pages to text.
protected  Graphics getGraphics()
          Get the graphics object for a new page.
protected  Dimension getPageDimension()
          Get the graphics object for a new page.
 Size getPageSize()
          Get the output page size.
 PSPrinter getPrinter()
          Get the PSPrinter used inside this generator.
 void setPageSize(Size pgsize)
          Set the output page size.
 
Methods inherited from class inetsoft.report.io.AbstractGenerator
addProgressListener, fireProgressEvent, getCachePages, getOutput, getReportCache, getReportId, removeProgressListener, setDocumentInfo, setOutput, setReportCache, setReportId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PSGenerator

public PSGenerator()
Create a generator. The setOutput() method must be called before generating the PostScript file.


PSGenerator

public PSGenerator(OutputStream out)
Create a generator to the specified output.

Method Detail

generate

public void generate(ReportSheet sheet,
                     Enumeration pages)
              throws IOException
Write a collection of pages to text.

Throws:
IOException

generate

public void generate(ReportSheet report)
Generate PostScript file.

Parameters:
report - report object.

generate

public void generate(Enumeration pages)
Generate PostScript file from a collection of StylePage objects.


cancel

public void cancel()
Cancel the generation if one if on going.


getPrinter

public PSPrinter getPrinter()
Get the PSPrinter used inside this generator.


getGraphics

protected Graphics getGraphics()
Get the graphics object for a new page.


getPageDimension

protected Dimension getPageDimension()
Get the graphics object for a new page.


setPageSize

public void setPageSize(Size pgsize)
Set the output page size.

Parameters:
pgsize - page size in inches.

getPageSize

public Size getPageSize()
Get the output page size.


Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.