|
Style Intelligence v12.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Graphics
java.awt.Graphics2D
inetsoft.report.internal.PSGraphics
inetsoft.report.PSPrinter
public class PSPrinter
PSPrinter is a Graphics subclass that can be used to print a report to a postscript file. This class is normally used to generate output that can be send to a postscript printer. For portable document output, use PDF instead. It is more compact and accurate.
| Field Summary |
|---|
| Fields inherited from class inetsoft.report.internal.PSGraphics |
|---|
pageheight, pagewidth, RESOLUTION, sfactor, writer |
| Fields inherited from interface inetsoft.report.internal.CustomGraphics |
|---|
G_DASH_LINE, JPEG_EXPORT |
| Constructor Summary | |
|---|---|
protected |
PSPrinter()
PSPrinter should not be created directly. |
|
PSPrinter(File outf)
Construct a PSPrinter graphics content. |
|
PSPrinter(OutputStream o)
Constructs a new PSPrinter Object. |
|
PSPrinter(String cmd)
Constructs a new PSPrinter Object. |
|
PSPrinter(String[] cmd)
Constructs a new PSPrinter Object. |
| Method Summary | |
|---|---|
int |
getOrientation()
Returns the orientation of this PageFormat. |
Dimension |
getPageDimension()
Returns the dimensions of the page in pixels. |
Size |
getPageSize()
Get the page size in inches. |
PrintJob |
getPrintJob()
Get the printjob object associated with this object, which contains the page size and resolution information. |
boolean |
isCompressImage()
Check if compression is on. |
void |
setCompressImage(boolean comp)
Set whether to compress the image object and streams in the PS. |
void |
setOrientation(int orientation)
Sets the page orientation. |
void |
setOutput(OutputStream os)
Set the output of this print job. |
void |
setPageSize(double width,
double height)
Set the page size in inches. |
void |
setPageSize(Size size)
Set the page size in inches. |
| Methods inherited from class inetsoft.report.internal.PSGraphics |
|---|
addRenderingHints, clearRect, clearRect, clip, clipRect, clipRect, close, copyArea, create, create, dispose, doImage, doImage, draw, draw3DRect, draw3DRect, drawArc, drawArc, drawBytes, drawChars, drawGlyphVector, drawImage, drawImage, drawImage, drawImage, drawImage, drawImage, drawImage, drawImage, drawLine, drawLine, drawOval, drawOval, drawPolygon, drawPolygon, drawPolyline, drawPolyline, drawRect, drawRect, drawRenderableImage, drawRenderedImage, drawRoundRect, drawRoundRect, drawString, drawString, drawString, drawString, drawString, emit, escapeString, fill, fill3DRect, fill3DRect, fillArc, fillArc, fillOval, fillOval, fillPolygon, fillPolygon, fillRect, fillRect, fillRoundRect, fillRoundRect, finalize, flush, getBackground, getClip, getClipBounds, getColor, getComposite, getDeviceConfiguration, getFont, getFontMetrics, getFontMetrics, getFontName, getFontRenderContext, getPaint, getPrinterJob, getRenderingHint, getRenderingHints, getStroke, getTransform, grestore, gsave, hit, isCompleted, isSupported, putFontName, reset, rotate, rotate, rtransformX, rtransformY, scale, setBackground, setClip, setClip, setClip, setColor, setCompleted, setComposite, setFont, setPaint, setPaintMode, setPrinterJob, setRenderingHint, setRenderingHints, setStroke, setTransform, setXORMode, shear, startDoc, startDoc, startPage, toString, transform, transformX, transformY, translate, translate |
| Methods inherited from class java.awt.Graphics |
|---|
getClipBounds, getClipRect, hitClip |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PSPrinter(File outf)
throws IOException
outf - output file.
IOException
public PSPrinter(String cmd)
throws IOException
cmd - print command.
IOException
public PSPrinter(String[] cmd)
throws IOException
cmd - print command.
IOExceptionpublic PSPrinter(OutputStream o)
o - Output stream for PostScript outputPSGraphics.create()protected PSPrinter()
| Method Detail |
|---|
public void setOutput(OutputStream os)
setOutput in class inetsoft.report.internal.PSGraphicspublic void setCompressImage(boolean comp)
setCompressImage in class inetsoft.report.internal.PSGraphicscomp - compression option.public boolean isCompressImage()
isCompressImage in class inetsoft.report.internal.PSGraphics
public void setPageSize(double width,
double height)
setPageSize in class inetsoft.report.internal.PSGraphicswidth - page width.height - page height.public void setPageSize(Size size)
size - Size object in inches.public Size getPageSize()
public Dimension getPageDimension()
getPageDimension in class inetsoft.report.internal.PSGraphicspublic void setOrientation(int orientation)
orientation must be
one of the constants: PORTRAIT, LANDSCAPE.
setOrientation in interface inetsoft.report.internal.CustomGraphicssetOrientation in class inetsoft.report.internal.PSGraphicsorientation - the new orientation for the pagepublic int getOrientation()
PageFormat.
getOrientation in class inetsoft.report.internal.PSGraphicsPageFormat object's orientation.public PrintJob getPrintJob()
getPrintJob in interface PrintGraphics
|
Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||