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
public PrinterDevice(Graphics g) throws DeviceException;
Creates a printer device object.
Parameter | Description |
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.
public Dimension getPhysicalOffset();
Retrieves the physical offset of the printer device.
Return Value:
Returns the Dimension of the offset.
public Dimension getPhysicalSize ();
Retrieves the physical size of the device.
Return Value:
Returns the Dimension of the device.
public Dimension getScalingFactor();
Retrieves the scaling factor.
Return Value:
Returns the scaling factor.