|
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.j2d.Win32Graphics2D
inetsoft.report.Win32Printer
public class Win32Printer
Win32Printer is a Graphics subclass that can be used to print to a printer on a Win32 (Win95, Win98, Win NT ...) platform.
| Field Summary | |
|---|---|
static int |
CREATE_DEFAULT
Create a printer object for the default printer. |
static int |
CREATE_NEW
Create a printer object for any available printer. |
| Fields inherited from class inetsoft.report.internal.j2d.Win32Graphics2D |
|---|
wing |
| Fields inherited from interface inetsoft.report.internal.CustomGraphics |
|---|
G_DASH_LINE, JPEG_EXPORT |
| Constructor Summary | |
|---|---|
protected |
Win32Printer()
Win32Printer should not be created directly. |
| Method Summary | |
|---|---|
protected int |
create0(int opt)
Create the device context. |
protected int |
create1(String printername)
Create the device context. |
String |
getJobName()
Gets the name of the document to be printed. |
int |
getOrientation()
Returns the orientation of this PageFormat. |
static Win32Printer |
getPrinter(int opt)
Create a Win32 printer object. |
static Win32Printer |
getPrinter(String printername)
Create a Win32 printer object of the named printer. |
static Win32Printer |
getPrinter(String printername,
String jobname)
Create a Win32 printer object of the named printer. |
PrintJob |
getPrintJob()
Get the printjob object associated with this object, which contains the page size and resolution information. |
protected int |
getResolution()
Return the page resolution. |
protected void |
init()
Initialize printer parameters. |
boolean |
isDuplex()
Returns the duplex setting of this printer. |
protected void |
nextPage()
Start printing of a new page. |
void |
setDuplex(boolean dup)
Sets the duplex setting of this printer. |
void |
setJobName(String jobName)
Sets the name of the document to be printed. |
void |
setOrientation(int orientation)
Sets the page orientation. |
void |
setTray(int tray)
Set the paper source on printer. |
protected int |
startDoc0(String jobname)
Starting printing. |
| Methods inherited from class inetsoft.report.internal.j2d.Win32Graphics2D |
|---|
addRenderingHints, clearRect, clip, clipRect, clipRect, close, copyArea, create, dispose, doImage, doImage, doImage, draw, drawArc, drawGlyphVector, drawImage, drawImage, drawImage, drawImage, drawImage, drawImage, drawImage, drawImage, drawLine, drawOval, drawPolygon, drawPolyline, drawRect, drawRenderableImage, drawRenderedImage, drawRoundRect, drawString, drawString, drawString, drawString, fill, fillArc, fillOval, fillPolygon, fillRect, fillRoundRect, getBackground, getClip, getClipBounds, getColor, getComposite, getCopies, getDeviceConfiguration, getFont, getFontMetrics, getFontRenderContext, getFromPage, getGraphics, getPageSize, getPaint, getPrinterJob, getRenderingHint, getRenderingHints, getStroke, getToPage, getTransform, hit, isPages, isSupported, printDialog, rotate, rotate, scale, setBackground, setClip, setClip, setClip, setColor, setComposite, setCopies, setFont, setPaint, setPaintMode, setPrinterJob, setRenderingHint, setRenderingHints, setStroke, setTransform, setXORMode, shear, startDoc, startPage, transform, translate, translate |
| Methods inherited from class java.awt.Graphics2D |
|---|
draw3DRect, fill3DRect |
| Methods inherited from class java.awt.Graphics |
|---|
create, drawBytes, drawChars, drawPolygon, fillPolygon, finalize, getClipBounds, getClipRect, getFontMetrics, hitClip, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int CREATE_DEFAULT
public static final int CREATE_NEW
| Constructor Detail |
|---|
protected Win32Printer()
| Method Detail |
|---|
public static Win32Printer getPrinter(int opt)
opt - CREATE_NEW or CREATE_DEFAULT.
public static Win32Printer getPrinter(String printername)
printername - system printer name.
public static Win32Printer getPrinter(String printername,
String jobname)
printername - system printer name.jobname - printer job name.
protected int create0(int opt)
opt - option.
protected int create1(String printername)
printername - system printer name.
protected int startDoc0(String jobname)
protected void init()
protected void nextPage()
protected int getResolution()
public void setJobName(String jobName)
null.
jobName - the name of the document to be printedpublic String getJobName()
public 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.j2d.Win32Graphics2Dorientation - the new orientation for the pagepublic int getOrientation()
PageFormat.
getOrientation in class inetsoft.report.internal.j2d.Win32Graphics2DPageFormat object's orientation.public void setTray(int tray)
setTray in class inetsoft.report.internal.j2d.Win32Graphics2Dtray - one of the tray selector defined in StyleConstants or
an user defined tray.public void setDuplex(boolean dup)
setDuplex in class inetsoft.report.internal.j2d.Win32Graphics2Ddup - true to enable duplex printing.public boolean isDuplex()
isDuplex in class inetsoft.report.internal.j2d.Win32Graphics2Dpublic 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 | ||||||||