javax.microedition.lcdui
Class Graphics

java.lang.Object
  extended by javax.microedition.lcdui.Graphics


public class Graphics
extends Object


Field Summary
static int BASELINE
           
static int BOTTOM
           
static int DOTTED
           
static int HCENTER
           
static int LEFT
           
static int RIGHT
           
static int SOLID
           
static int TOP
           
static int VCENTER
           
 
Method Summary
 void clipRect(int x, int y, int width, int height)
           
 void copyArea(int x_src, int y_src, int width, int height, int x_dest, int y_dest, int anchor)
           
 void drawArc(int x, int y, int width, int height, int startAngle, int arcAngle)
           
 void drawChar(char character, int x, int y, int anchor)
           
 void drawChars(char[] data, int offset, int length, int x, int y, int anchor)
           
 void drawImage(Image img, int x, int y, int anchor)
           
 void drawLine(int x1, int y1, int x2, int y2)
           
 void drawRect(int x, int y, int width, int height)
           
 void drawRegion(Image src, int x_src, int y_src, int width, int height, int transform, int x_dest, int y_dest, int anchor)
           
 void drawRGB(int[] rgbData, int offset, int scanlength, int x, int y, int width, int height, boolean processAlpha)
           
 void drawRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight)
           
 void drawString(String str, int x, int y, int anchor)
           
 void drawSubstring(String str, int offset, int len, int x, int y, int anchor)
           
 void fillArc(int x, int y, int width, int height, int startAngle, int arcAngle)
           
 void fillRect(int x, int y, int width, int height)
           
 void fillRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight)
           
 void fillTriangle(int x1, int y1, int x2, int y2, int x3, int y3)
           
 int getBlueComponent()
           
 int getClipHeight()
           
 int getClipWidth()
           
 int getClipX()
           
 int getClipY()
           
 int getColor()
           
 int getDisplayColor(int color)
           
 Font getFont()
           
 int getGrayScale()
           
 int getGreenComponent()
           
 int getRedComponent()
           
 int getStrokeStyle()
           
 int getTranslateX()
           
 int getTranslateY()
           
 void setClip(int x, int y, int width, int height)
           
 void setColor(int RGB)
           
 void setColor(int red, int green, int blue)
           
 void setFont(Font font)
           
 void setGrayScale(int value)
           
 void setStrokeStyle(int style)
           
 void translate(int x, int y)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HCENTER

public static final int HCENTER
See Also:
Constant Field Values

VCENTER

public static final int VCENTER
See Also:
Constant Field Values

LEFT

public static final int LEFT
See Also:
Constant Field Values

RIGHT

public static final int RIGHT
See Also:
Constant Field Values

TOP

public static final int TOP
See Also:
Constant Field Values

BOTTOM

public static final int BOTTOM
See Also:
Constant Field Values

BASELINE

public static final int BASELINE
See Also:
Constant Field Values

SOLID

public static final int SOLID
See Also:
Constant Field Values

DOTTED

public static final int DOTTED
See Also:
Constant Field Values
Method Detail

translate

public void translate(int x,
                      int y)

getTranslateX

public int getTranslateX()

getTranslateY

public int getTranslateY()

getColor

public int getColor()

getRedComponent

public int getRedComponent()

getGreenComponent

public int getGreenComponent()

getBlueComponent

public int getBlueComponent()

getGrayScale

public int getGrayScale()

setColor

public void setColor(int red,
                     int green,
                     int blue)

setColor

public void setColor(int RGB)

setGrayScale

public void setGrayScale(int value)

getDisplayColor

public int getDisplayColor(int color)

getFont

public Font getFont()

setStrokeStyle

public void setStrokeStyle(int style)

getStrokeStyle

public int getStrokeStyle()

setFont

public void setFont(Font font)

getClipX

public int getClipX()

getClipY

public int getClipY()

getClipWidth

public int getClipWidth()

getClipHeight

public int getClipHeight()

clipRect

public void clipRect(int x,
                     int y,
                     int width,
                     int height)

setClip

public void setClip(int x,
                    int y,
                    int width,
                    int height)

drawLine

public void drawLine(int x1,
                     int y1,
                     int x2,
                     int y2)

fillRect

public void fillRect(int x,
                     int y,
                     int width,
                     int height)

drawRect

public void drawRect(int x,
                     int y,
                     int width,
                     int height)

drawRoundRect

public void drawRoundRect(int x,
                          int y,
                          int width,
                          int height,
                          int arcWidth,
                          int arcHeight)

fillRoundRect

public void fillRoundRect(int x,
                          int y,
                          int width,
                          int height,
                          int arcWidth,
                          int arcHeight)

fillArc

public void fillArc(int x,
                    int y,
                    int width,
                    int height,
                    int startAngle,
                    int arcAngle)

drawArc

public void drawArc(int x,
                    int y,
                    int width,
                    int height,
                    int startAngle,
                    int arcAngle)

drawString

public void drawString(String str,
                       int x,
                       int y,
                       int anchor)

drawSubstring

public void drawSubstring(String str,
                          int offset,
                          int len,
                          int x,
                          int y,
                          int anchor)

drawChar

public void drawChar(char character,
                     int x,
                     int y,
                     int anchor)

drawChars

public void drawChars(char[] data,
                      int offset,
                      int length,
                      int x,
                      int y,
                      int anchor)

drawImage

public void drawImage(Image img,
                      int x,
                      int y,
                      int anchor)

drawRegion

public void drawRegion(Image src,
                       int x_src,
                       int y_src,
                       int width,
                       int height,
                       int transform,
                       int x_dest,
                       int y_dest,
                       int anchor)

copyArea

public void copyArea(int x_src,
                     int y_src,
                     int width,
                     int height,
                     int x_dest,
                     int y_dest,
                     int anchor)

fillTriangle

public void fillTriangle(int x1,
                         int y1,
                         int x2,
                         int y2,
                         int x3,
                         int y3)

drawRGB

public void drawRGB(int[] rgbData,
                    int offset,
                    int scanlength,
                    int x,
                    int y,
                    int width,
                    int height,
                    boolean processAlpha)