Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Package Functions
com.apple.mrj.internal.awt.PrintingPort.PrintingGraphics Class Reference

List of all members.

Public Member Functions

 PrintingGraphics ()
 Creates a new PrintingGraphics.
synchronized Graphics create ()
synchronized Graphics create (int x, int y, int width, int height)
 PrintingGraphics ()
 Creates a new PrintingGraphics.
synchronized Graphics create ()
synchronized Graphics create (int x, int y, int width, int height)

Package Functions

void restore ()
 Override QDGraphics.restore(), to reset origin and clipping during drawing.
void restore ()
 Override QDGraphics.restore(), to reset origin and clipping during drawing.

Detailed Description

Definition at line 91 of file PrintingPort.java.


Constructor & Destructor Documentation

Creates a new PrintingGraphics.

You must call initialize on it next.

Definition at line 93 of file PrintingPort.java.

                                        {
                     super();
              }

Here is the caller graph for this function:

Creates a new PrintingGraphics.

You must call initialize on it next.

Definition at line 94 of file PrintingPort.java.

                                        {
                     super();
              }

Member Function Documentation

Definition at line 97 of file PrintingPort.java.

                                                 {
                     if( !internalMarkHostInUse ( ) )
                            throw new AWTError("Using invalid Graphics object");
                     try {
                     return (new PrintingGraphics()).initialize(this,fXoff,fYoff,fClip);
              } finally {
                            internalDoneUsingHost ( );
                     }
           }

Here is the call graph for this function:

Definition at line 98 of file PrintingPort.java.

                                                 {
                     if( !internalMarkHostInUse ( ) )
                            throw new AWTError("Using invalid Graphics object");
                     try {
                     return (new PrintingGraphics()).initialize(this,fXoff,fYoff,fClip);
              } finally {
                            internalDoneUsingHost ( );
                     }
           }

Here is the call graph for this function:

synchronized Graphics com.apple.mrj.internal.awt.PrintingPort.PrintingGraphics.create ( int  x,
int  y,
int  width,
int  height 
) [inline]

Definition at line 107 of file PrintingPort.java.

                                                                                    {
                     if( !internalMarkHostInUse() )
                            throw new AWTError("Using invalid Graphics object");
                     try {
                            VToolkit.intersect(sRectangle, fClip, fXoff+x,fYoff+y,width,height);
                            return (new PrintingGraphics()).initialize(this,fXoff+x,fYoff+y,sRectangle);
              } finally {
                            internalDoneUsingHost ( );
                     }
              }

Here is the call graph for this function:

synchronized Graphics com.apple.mrj.internal.awt.PrintingPort.PrintingGraphics.create ( int  x,
int  y,
int  width,
int  height 
) [inline]

Definition at line 108 of file PrintingPort.java.

                                                                                    {
                     if( !internalMarkHostInUse() )
                            throw new AWTError("Using invalid Graphics object");
                     try {
                            VToolkit.intersect(sRectangle, fClip, fXoff+x,fYoff+y,width,height);
                            return (new PrintingGraphics()).initialize(this,fXoff+x,fYoff+y,sRectangle);
              } finally {
                            internalDoneUsingHost ( );
                     }
              }

Here is the call graph for this function:

Override QDGraphics.restore(), to reset origin and clipping during drawing.

Definition at line 121 of file PrintingPort.java.

                             {
                     super.restore();
                     
                     int port = VAWTDirect.FastGetThePort();
                     if (port != mPrintingPort)
                            QuickdrawFunctions.SetPort(mPrintingPort);
                     
                     // restore default orgin.
                     QuickdrawFunctions.SetOrigin((short)0, (short)0);
                     
                     // set up correct clipping.
                     QDRectStruct clipRect = new QDRectStruct();
                     clipRect.Set(pinToShort(mClipping.x), pinToShort(mClipping.y),
                                          pinToShort(mClipping.x + mClipping.width), pinToShort(mClipping.y + mClipping.width));
                     QuickdrawFunctions.ClipRect(clipRect);
                     
                     if (port != mPrintingPort)
                            QuickdrawFunctions.SetPort(port);
              }

Here is the call graph for this function:

Override QDGraphics.restore(), to reset origin and clipping during drawing.

Definition at line 122 of file PrintingPort.java.

                             {
                     super.restore();
                     
                     int port = VAWTDirect.FastGetThePort();
                     if (port != mPrintingPort)
                            QuickdrawFunctions.SetPort(mPrintingPort);
                     
                     // restore default orgin.
                     QuickdrawFunctions.SetOrigin((short)0, (short)0);
                     
                     // set up correct clipping.
                     QDRectStruct clipRect = new QDRectStruct();
                     clipRect.Set(pinToShort(mClipping.x), pinToShort(mClipping.y),
                                          pinToShort(mClipping.x + mClipping.width), pinToShort(mClipping.y + mClipping.width));
                     QuickdrawFunctions.ClipRect(clipRect);
                     
                     if (port != mPrintingPort)
                            QuickdrawFunctions.SetPort(port);
              }

Here is the call graph for this function:


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