|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jaune.target.gb.Drawing
Constructor Summary | |
Drawing()
|
Method Summary | |
static void |
box(int x1,
int y1,
int x2,
int y2,
int style)
Draw a box (rectangle) with corners (x1,y1) and (x2,y2) using fill mode 'style' (one of NOFILL or FILL |
static void |
circle(int x,
int y,
int radius,
int style)
Draw a circle with centre at (x,y) and radius 'radius'. |
static void |
color(int forecolor,
int backcolor,
int mode)
Set the current foreground colour (for pixels), background colour, and draw mode |
static int |
getpix(int x,
int y)
Returns the current colour of the pixel at (x,y) |
static void |
gotogxy(int x,
int y)
Sets the current text position to (x,y). |
static void |
gprint(java.lang.String str)
Print the string 'str' with no interpretation |
static void |
line(int x1,
int y1,
int x2,
int y2)
Draw a line in the current drawing mode and colour from (x1,y1) to (x2,y2) |
static void |
plot_point(int x,
int y)
Plot a point in the current drawing mode and colour at (x,y) |
static void |
plot(int x,
int y,
int colour,
int mode)
Old style plot - try plot_point() |
static void |
wrtchr(char chr)
Prints the character 'chr' in the default font at the current position |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Drawing()
Method Detail |
public static void gprint(java.lang.String str)
public static void plot(int x, int y, int colour, int mode)
public static void plot_point(int x, int y)
public static void line(int x1, int y1, int x2, int y2)
public static void box(int x1, int y1, int x2, int y2, int style)
public static void circle(int x, int y, int radius, int style)
public static int getpix(int x, int y)
public static void wrtchr(char chr)
public static void gotogxy(int x, int y)
public static void color(int forecolor, int backcolor, int mode)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |