Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

javax.microedition.lcdui
Class Graphics  view Graphics download Graphics.java

java.lang.Object
  extended byjavax.microedition.lcdui.Graphics

public class Graphics
extends java.lang.Object


Field Summary
static int BASELINE
           
static int BOTTOM
           
static int DOTTED
           
static int HCENTER
           
static int LEFT
           
static int RIGHT
           
static int SOLID
           
(package private)  int strokeStyle
           
static int TOP
           
(package private)  int translateX
           
(package private)  int translateY
           
static int VCENTER
           
 
Constructor Summary
Graphics()
           
 
Method Summary
 void clipRect(int x, int y, int width, int height)
           
 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 drawRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight)
           
 void drawString(java.lang.String str, int x, int y, int anchor)
           
 void drawSubstring(java.lang.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)
           
 int getBlueComponent()
           
 int getClipHeight()
           
 int getClipWidth()
           
 int getClipX()
           
 int getClipY()
           
 int getColor()
           
 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 grey)
           
 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

SOLID

public static final int SOLID
See Also:
Constant Field Values

DOTTED

public static final int DOTTED
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

BASELINE

public static final int BASELINE
See Also:
Constant Field Values

BOTTOM

public static final int BOTTOM
See Also:
Constant Field Values

HCENTER

public static final int HCENTER
See Also:
Constant Field Values

VCENTER

public static final int VCENTER
See Also:
Constant Field Values

strokeStyle

int strokeStyle

translateX

int translateX

translateY

int translateY
Constructor Detail

Graphics

public Graphics()
Method Detail

clipRect

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

drawArc

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

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)

drawLine

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

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)

drawString

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

drawSubstring

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

fillArc

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

fillRect

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

fillRoundRect

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

getBlueComponent

public int getBlueComponent()

getClipHeight

public int getClipHeight()

getClipWidth

public int getClipWidth()

getClipX

public int getClipX()

getClipY

public int getClipY()

getColor

public int getColor()

getFont

public Font getFont()

getGrayScale

public int getGrayScale()

getGreenComponent

public int getGreenComponent()

getRedComponent

public int getRedComponent()

getStrokeStyle

public int getStrokeStyle()

getTranslateX

public int getTranslateX()

getTranslateY

public int getTranslateY()

setClip

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

setColor

public void setColor(int RGB)

setColor

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

setFont

public void setFont(Font font)

setGrayScale

public void setGrayScale(int grey)

setStrokeStyle

public void setStrokeStyle(int style)

translate

public void translate(int x,
                      int y)