Java Reference
In-Depth Information
public void setPreferredSize(int width, int height);
public void setValue(int value);
}
Class javax.microedition.lcdui.Graphics
public class Graphics
extends java.lang.Object {
// Constants
public static final int BASELINE;
public static final int BOTTOM;
public static final int DOTTED;
public static final int HCENTER;
public static final int LEFT;
public static final int RIGHT;
public static final int SOLID;
public static final int TOP;
public static final int VCENTER;
// Methods
public void clipRect(int x, int y, int width, int height);
public void copyArea(int x_src, int y_src, int width, int height,
int x_dest, int y_dest, int anchor);
public native void drawArc(int x, int y, int width, int height,
int startAngle, int arcAngle);
public native void drawChar(char character, int x, int y, int anchor);
public native void drawChars(char[] data, int offset, int length,
int x, int y, int anchor);
public native void drawImage(Image img, int x, int y, int anchor);
public native void drawLine(int x1, int y1, int x2, int y2);
public native void drawRGB(int[] rgbData, int offset, int scanlength,
int x, int y, int width, int height, boolean processAlpha);
public native void drawRect(int x, int y, int width, int height);
public native void drawRegion(Image src,
int x_src, int y_src, int width, int height, int transform,
int x_dest, int y_dest, int anchor);
public native void drawRoundRect(int x, int y, int width, int height,
int arcWidth, int arcHeight);
public native void drawString(String str, int x, int y, int anchor);
public native void drawSubstring(String str, int offset, int len,
int x, int y, int anchor);
public native void fillArc(int x, int y, int width, int height,
int startAngle, int arcAngle);
public native void fillRect(int x, int y, int width, int height);
public native void fillRoundRect(int x, int y, int width, int height,
int arcWidth, int arcHeight);
public native void fillTriangle(int x1, int y1, int x2, int y2,
int x3, int y3);
Search WWH ::




Custom Search