public class Draw
extends java.lang.Object
static int |
DEFAULT_HEIGHT
default height = 600 pixels
|
static int |
DEFAULT_WIDTH
default width = 800 pixels
|
static void |
circle(int x,
int y,
int r)
draws a circle with center (x, y) and radius r
|
static void |
clear()
clears the window
|
static void |
dot(int x,
int y)
draws a dot at position (x, y)
|
static void |
line(int x1,
int y1,
int x2,
int y2)
draws a line from (x1, y1) to (x2, y2)
|
static void |
open()
opens the window with its default size
|
static void |
open(int w,
int h)
opens the window with width w and height h
|
static void |
rectangle(int x,
int y,
int w,
int h)
draws a rectangle at (x, y) with width w and height h
|
static void |
text(java.lang.String text,
int x,
int y)
draws a text with left-bottom corner (x, y)
|
public static final int DEFAULT_WIDTH
public static final int DEFAULT_HEIGHT
public static void open()
public static void open(int w, int h)
public static void clear()
public static void dot(int x, int y)
public static void line(int x1, int y1, int x2, int y2)
public static void rectangle(int x, int y, int w, int h)
public static void circle(int x, int y, int r)
public static void text(java.lang.String text, int x, int y)