|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--superwaba.ext.xplat.io.print.Graphics
|
+--superwaba.ext.xplat.io.print.pboy.PBoyGraphics
Implementation of the print.Graphics class for the PrintBoy support under SuperWaba.
| Method Summary | |
void |
drawImage(Image img,
int x,
int y)
Draws an image as in the given position. |
void |
drawImage(Image img,
int x,
int y,
float scale)
Draws an image scaled with the given scale. |
void |
drawLine(int ax,
int ay,
int bx,
int by)
Draws a line from ax,ay to bx,by using the current foreground color. |
void |
drawRect(int x,
int y,
int width,
int height)
Draws a rectangle with the given parameters using the current foreground color. |
void |
drawRoundRect(int x,
int y,
int width,
int height,
int r)
Draws a round rectangle with the given parameters using the current foreground color. |
void |
drawText(java.lang.String text,
int x,
int y)
Draws the given text in the given position, using the currently selected font and using the current foreground color. |
void |
fillRect(int x,
int y,
int width,
int height)
Fills a rectangle with the given parameters using the current background color. |
void |
fillRoundRect(int x,
int y,
int width,
int height,
int r)
Fills a round rectangle with the given parameters using the current background color. |
void |
setBackColor(Color c)
In most printers, setting from anything than Color.BLACK will turn gray what you draw. |
void |
setFont(Font font)
Sets the font to the given font. |
void |
setForeColor(Color c)
In most printers, setting from anything than Color.BLACK will turn gray what you draw. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Method Detail |
public void setFont(Font font)
throws PrinterException,
NotSupportedException
public void drawImage(Image img,
int x,
int y)
throws PrinterException,
NotSupportedException
public void drawImage(Image img,
int x,
int y,
float scale)
throws PrinterException,
NotSupportedException
public void drawText(java.lang.String text,
int x,
int y)
throws PrinterException,
NotSupportedException
public void setForeColor(Color c)
public void setBackColor(Color c)
public void drawLine(int ax,
int ay,
int bx,
int by)
throws PrinterException,
NotSupportedException
public void drawRoundRect(int x,
int y,
int width,
int height,
int r)
throws PrinterException,
NotSupportedException
public void drawRect(int x,
int y,
int width,
int height)
throws PrinterException,
NotSupportedException
public void fillRoundRect(int x,
int y,
int width,
int height,
int r)
throws PrinterException,
NotSupportedException
public void fillRect(int x,
int y,
int width,
int height)
throws PrinterException,
NotSupportedException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||