| Modifier and Type | Field and Description |
|---|---|
| private static final int | DEFAULT_USER_RES
For a drawing application the initial user space resolution is 72dpi. |
| Access | Constructor and Description |
|---|---|
| pack-priv | PSPathGraphics(Graphics2D graphics, PrinterJob printerJob, Printable painter, PageFormat pageFormat, int pageIndex, boolean canRedraw)
|
| Modifier and Type | Method and Description |
|---|---|
| protected boolean | |
| public Graphics | Returns: a new graphics context that is a copy of this graphics context.Overrides sun. Creates a new |
| protected void | |
| protected void | deviceDrawLine(int xBegin, int yBegin, int xEnd, int yEnd, Color color)
Implements abstract sun.
|
| protected void | deviceFill(PathIterator pathIter, Color color)
Implements abstract sun. Fill the path defined by |
| protected void | deviceFillRect(int x, int y, int width, int height, Color color)
Implements abstract sun.
|
| protected void | deviceFrameRect(int x, int y, int width, int height, Color color)
Implements abstract sun.
|
| protected boolean | drawImageToPlatform(Image
The image to be drawn.
This method does nothing if image, AffineTransform img is null.Used to transform the image before drawing.
This can be null. xform, Color This color is drawn where the image has transparent
pixels. If this parameter is null then the
pixels already in the destination should show
through. bgcolor, int With srcY this defines the upper-left corner
of the portion of the image to be drawn. srcX, int With srcX this defines the upper-left corner
of the portion of the image to be drawn. srcY, int The width of the portion of the image to
be drawn. srcWidth, int The height of the portion of the image to
be drawn. srcHeight, boolean if being recursively called to
print opaque region of transparent image handlingTransparency)Implements abstract sun. The various |
| public void | drawString(String
the string to be drawn. str, int the x coordinate. x, int the y coordinate. y)Overrides sun. Draws the text given by the specified string, using this graphics context's current font and color. |
| public void | drawString(String
the str, float x, float y)String to be renderedOverrides sun. Renders the text specified by the specified |
| protected void | drawString(String str, float x, float y, Font font, FontRenderContext frc, float w)
Overrides sun.
|
| public void | fill(Shape s, Color color)
Overrides sun. Override the inherited implementation of fill so that we can generate PostScript in user space rather than device space. |
| protected int | |
| public void | redrawRegion(Rectangle2D region, double scaleX, double scaleY, Shape savedClip, AffineTransform savedTransform)
Implements abstract sun. Redraw a rectangular area using a proxy graphics To do this we need to know the rectangular area to redraw and the transform & clip in effect at the time of the original drawImage |
| DEFAULT_USER_RES | back to summary |
|---|---|
| private static final int DEFAULT_USER_RES For a drawing application the initial user space resolution is 72dpi. | |
| PSPathGraphics | back to summary |
|---|---|
| pack-priv PSPathGraphics(Graphics2D graphics, PrinterJob printerJob, Printable painter, PageFormat pageFormat, int pageIndex, boolean canRedraw) | |
| canDrawStringToWidth | back to summary |
|---|---|
| protected boolean canDrawStringToWidth() Overrides sun. | |
| create | back to summary |
|---|---|
| public Graphics create() Overrides sun. Creates a new
| |
| deviceClip | back to summary |
|---|---|
| protected void deviceClip(PathIterator pathIter) Implements abstract sun. | |
| deviceDrawLine | back to summary |
|---|---|
| protected void deviceDrawLine(int xBegin, int yBegin, int xEnd, int yEnd, Color color) Implements abstract sun. | |
| deviceFill | back to summary |
|---|---|
| protected void deviceFill(PathIterator pathIter, Color color) Implements abstract sun. Doc from sun. Fill the path defined by | |
| deviceFillRect | back to summary |
|---|---|
| protected void deviceFillRect(int x, int y, int width, int height, Color color) Implements abstract sun. | |
| deviceFrameRect | back to summary |
|---|---|
| protected void deviceFrameRect(int x, int y, int width, int height, Color color) Implements abstract sun. | |
| drawImageToPlatform | back to summary |
|---|---|
| protected boolean drawImageToPlatform(Image image, AffineTransform xform, Color bgcolor, int srcX, int srcY, int srcWidth, int srcHeight, boolean handlingTransparency) Implements abstract sun. The various
| |
| drawString | back to summary |
|---|---|
| public void drawString(String str, int x, int y) Overrides sun. Draws the text given by the specified string, using this graphics context's current font and color. The baseline of the first character is at position (x, y) in this graphics context's coordinate system.
| |
| drawString | back to summary |
|---|---|
| public void drawString(String str, float x, float y) Overrides sun. Renders the text specified by the specified
| |
| drawString | back to summary |
|---|---|
| protected void drawString(String str, float x, float y, Font font, FontRenderContext frc, float w) Overrides sun. | |
| fill | back to summary |
|---|---|
| public void fill(Shape s, Color color) Overrides sun. Override the inherited implementation of fill so that we can generate PostScript in user space rather than device space. | |
| platformFontCount | back to summary |
|---|---|
| protected int platformFontCount(Font font, String str) Overrides sun. | |
| redrawRegion | back to summary |
|---|---|
| public void redrawRegion(Rectangle2D region, double scaleX, double scaleY, Shape savedClip, AffineTransform savedTransform) throws PrinterException Implements abstract sun. Redraw a rectangular area using a proxy graphics To do this we need to know the rectangular area to redraw and the transform & clip in effect at the time of the original drawImage | |