Packages
 In this topic

*Constructors

*Methods

 

Packages   PreviousThis PackageNext
Package com.ms.awt   Previous This
Package
Next

 


Class PrinterDevice

public class PrinterDevice extends Device
{
  // Constructors
  public PrinterDevice(Graphics g) throws DeviceException;

  // Methods
  public Dimension getPhysicalOffset();
  public Dimension getPhysicalSize ();
  public Dimension getScalingFactor();
}

This class handles printer devices.

Device
  |
  +--PrinterDevice

Constructors

PrinterDevice

public PrinterDevice(Graphics g) throws DeviceException;

Creates a printer device object.

ParameterDescription
g The graphics object that the device is created for.

Exceptions:

com.ms.awt.DeviceException if the graphics object is not an instance of the FxGraphics or the GraphicsX extended graphics class.

Methods

getPhysicalOffset

public Dimension getPhysicalOffset();

Retrieves the physical offset of the printer device.

Return Value:

Returns the Dimension of the offset.

getPhysicalSize

public Dimension getPhysicalSize ();

Retrieves the physical size of the device.

Return Value:

Returns the Dimension of the device.

getScalingFactor

public Dimension getScalingFactor();

Retrieves the scaling factor.

Return Value:

Returns the scaling factor.

upnrm.gif © 1998 Microsoft Corporation. All rights reserved. Terms of use.