Back to index

lightning-sunbird  0.9+nobinonly
Classes | Public Member Functions | Static Package Functions | Static Package Attributes | Private Attributes | Static Private Attributes
com.apple.mrj.internal.awt.PrintingPort Class Reference
Collaboration diagram for com.apple.mrj.internal.awt.PrintingPort:
Collaboration graph
[legend]

List of all members.

Classes

class  PrintingGraphics

Public Member Functions

 PrintingPort (int printingPort, int originX, int originY)
void dispose ()
Graphics getGraphics (Component component)
 Creates a graphics object that wraps the specified printing port.
void graphicsCreated (QDGraphics g) throws OutOfMemoryError
 methods to satisfy GraphicsHost interface.
void graphicsDisposed (QDGraphics g)
RGBColorValue getBackgroundRGB ()
void repaint (RectStruct r)
boolean markInUse ()
void doneUsingIt ()
 PrintingPort (int printingPort, int originX, int originY)
void dispose ()
Graphics getGraphics (Component component)
 Creates a graphics object that wraps the specified printing port.
void graphicsCreated (QDGraphics g) throws OutOfMemoryError
 methods to satisfy GraphicsHost interface.
void graphicsDisposed (QDGraphics g)
RGBColorValue getBackgroundRGB ()
void repaint (RectStruct r)
boolean markInUse ()
void doneUsingIt ()

Static Package Functions

static short pinToShort (int value)
static short pinToShort (int value)

Static Package Attributes

static final short MINSHORT = -32768

Private Attributes

int mPrintingPort
int mOriginX
int mOriginY
PortManager mPortManager
QDPipeline mPipeline
Rectangle mClipping

Static Private Attributes

static final short MAXSHORT = 32767

Detailed Description

Definition at line 52 of file PrintingPort.java.


Constructor & Destructor Documentation

com.apple.mrj.internal.awt.PrintingPort.PrintingPort ( int  printingPort,
int  originX,
int  originY 
) [inline]

Definition at line 60 of file PrintingPort.java.

                                                                       {
              mPrintingPort = printingPort;
              mOriginX = originX;
              mOriginY = originY;
              mPortManager = new PortManager(printingPort, 0, 0, PortManager.kPrinting, 0);
              mPipeline = new QDPipeline();
              mPortManager.setPipeline(mPipeline);
       }
com.apple.mrj.internal.awt.PrintingPort.PrintingPort ( int  printingPort,
int  originX,
int  originY 
) [inline]

Definition at line 61 of file PrintingPort.java.

                                                                       {
              mPrintingPort = printingPort;
              mOriginX = originX;
              mOriginY = originY;
              mPortManager = new PortManager(printingPort, 0, 0, PortManager.kPrinting, 0);
              mPipeline = new QDPipeline();
              mPortManager.setPipeline(mPipeline);
       }

Member Function Documentation

Definition at line 69 of file PrintingPort.java.

                             {
              // dispose of port manager flushes the pipeline.
              if (mPortManager != null) {
                     mPortManager.dispose();
                     mPortManager = null;
              }
              if (mPipeline != null) {
                     mPipeline.dispose();
                     mPipeline = null;
              }
       }

Here is the caller graph for this function:

Definition at line 70 of file PrintingPort.java.

                             {
              // dispose of port manager flushes the pipeline.
              if (mPortManager != null) {
                     mPortManager.dispose();
                     mPortManager = null;
              }
              if (mPipeline != null) {
                     mPipeline.dispose();
                     mPipeline = null;
              }
       }

Definition at line 163 of file PrintingPort.java.

{}

Definition at line 164 of file PrintingPort.java.

{}

Definition at line 160 of file PrintingPort.java.

{ return new RGBColorValue(Color.white); }

Definition at line 161 of file PrintingPort.java.

{ return new RGBColorValue(Color.white); }
Graphics com.apple.mrj.internal.awt.PrintingPort.getGraphics ( Component  component) [inline]

Creates a graphics object that wraps the specified printing port.

Assumes that the underlying port's coordinate system is already set up to have (0, 0) as the upper left corner.

Definition at line 147 of file PrintingPort.java.

                                                        {
              mClipping = component.getBounds();
              mClipping.x = mOriginX; mClipping.y = mOriginY;
              QDGraphics graphics = new PrintingGraphics();
              graphics.initialize(mPrintingPort, this, mPortManager,
                                                 mOriginX, mOriginY, mClipping, component.getForeground(),
                                                 component.getFont());
              return graphics;
       }

Here is the caller graph for this function:

Graphics com.apple.mrj.internal.awt.PrintingPort.getGraphics ( Component  component) [inline]

Creates a graphics object that wraps the specified printing port.

Assumes that the underlying port's coordinate system is already set up to have (0, 0) as the upper left corner.

Definition at line 148 of file PrintingPort.java.

                                                        {
              mClipping = component.getBounds();
              mClipping.x = mOriginX; mClipping.y = mOriginY;
              QDGraphics graphics = new PrintingGraphics();
              graphics.initialize(mPrintingPort, this, mPortManager,
                                                 mOriginX, mOriginY, mClipping, component.getForeground(),
                                                 component.getFont());
              return graphics;
       }
void com.apple.mrj.internal.awt.PrintingPort.graphicsCreated ( QDGraphics  g) throws OutOfMemoryError [inline]

methods to satisfy GraphicsHost interface.

Definition at line 158 of file PrintingPort.java.

{}
void com.apple.mrj.internal.awt.PrintingPort.graphicsCreated ( QDGraphics  g) throws OutOfMemoryError [inline]

methods to satisfy GraphicsHost interface.

Definition at line 159 of file PrintingPort.java.

{}

Definition at line 159 of file PrintingPort.java.

{}

Definition at line 160 of file PrintingPort.java.

{}

Definition at line 162 of file PrintingPort.java.

{ return (mPortManager != null); }

Definition at line 163 of file PrintingPort.java.

{ return (mPortManager != null); }
static short com.apple.mrj.internal.awt.PrintingPort.pinToShort ( int  value) [inline, static, package]

Definition at line 83 of file PrintingPort.java.

                                          {
              if (value > MAXSHORT)
                     return MAXSHORT;
              else if (value < MINSHORT)
                     return MINSHORT;
              return (short) value;
       }

Here is the caller graph for this function:

static short com.apple.mrj.internal.awt.PrintingPort.pinToShort ( int  value) [inline, static, package]

Definition at line 84 of file PrintingPort.java.

                                          {
              if (value > MAXSHORT)
                     return MAXSHORT;
              else if (value < MINSHORT)
                     return MINSHORT;
              return (short) value;
       }

Definition at line 161 of file PrintingPort.java.

{}

Definition at line 162 of file PrintingPort.java.

{}

Member Data Documentation

static final short com.apple.mrj.internal.awt.PrintingPort.MAXSHORT = 32767 [static, private]

Definition at line 81 of file PrintingPort.java.

Definition at line 58 of file PrintingPort.java.

static final short com.apple.mrj.internal.awt.PrintingPort.MINSHORT = -32768 [static, package]

Definition at line 81 of file PrintingPort.java.

Definition at line 54 of file PrintingPort.java.

Definition at line 55 of file PrintingPort.java.

Definition at line 57 of file PrintingPort.java.

Definition at line 56 of file PrintingPort.java.

Definition at line 53 of file PrintingPort.java.


The documentation for this class was generated from the following files: