2.2.4 - Printer Graphics - JdlPrinterGraphics

John W. Campbell

2.2.4.1 Introduction

This class has a single static method to get a Graphics object for a printer for determining rendering sizes e.g. for scaling prior to setting up a printer job. Basically just does a dummy print to get hold of the Graphics context. No object is constructed.

Class and method:

Class Details
Accessible Fields
Methods

2.2.4.2 Class Details

Package:
Jdl.JdlLib;
Class name:
JdlPrinterGraphics
Class definition:
public class JdlPrinterGraphics
Extends:
Object
Implements:
Printable
Actions:
none

2.2.4.3 Accessible Fields

No fields with public, package or protected access defined.

2.2.4.4 Methods

2.2.4.4.1 Introduction

The single method returns a graphics object with its parameters set for a printer job.

Methods:

Get graphics object - getGraphics

2.2.4.4.2 Get graphics object - getGraphics

This method returns a Graphics object for a printer.

Method Definition:
public static Graphics getGraphics(PrinterJob pjob)
Parameters List:
none
Method Return:
Returns the required Graphics object.

⇑ Up 2   ⇑ Up 1   ⇑ Top of this