|
DCT Lightfoot v3 API specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--javax.microedition.lcdui.Graphics
This class does all the drawing
| Field Summary | |
static int |
BASELINE
put the anchor point on the baseline |
static int |
BOTTOM
put the anchor point on the left |
static int |
DOTTED
Draw dotted lines |
static int |
HCENTER
put the anchor point in the horizontal center |
static int |
LEFT
put the anchor point to the left |
static int |
RIGHT
Put the anchor point to the right |
static int |
SOLID
Draw solid lines |
static int |
TOP
Put the anchor point at the top |
static int |
VCENTER
Put the anchor point vertically central |
| Method Summary | |
void |
clipRect(int x,
int y,
int width,
int height)
Intersect the current clipping rectangle with the specified one |
void |
drawArc(int x,
int y,
int width,
int height,
int startAngle,
int arcAngle)
Draw an arc |
void |
drawChar(char ch,
int x,
int y,
int anchor)
Draw a character |
void |
drawChars(char[] data,
int offset,
int length,
int x,
int y,
int anchor)
Draw a number of characters |
void |
drawImage(Image img,
int x,
int y,
int anchor)
Draw an image |
void |
drawLine(int x1,
int y1,
int x2,
int y2)
Draw a line |
void |
drawRect(int x,
int y,
int width,
int height)
Draw a rectangle |
void |
drawRoundRect(int x,
int y,
int width,
int heghit,
int arcWidth,
int arcHeight)
Draw a round rectangle |
void |
drawString(java.lang.String str,
int x,
int y,
int anchor)
Draw a string |
void |
drawSubstring(java.lang.String str,
int offset,
int length,
int x,
int y,
int anchor)
Draw a substring |
void |
fillArc(int x,
int y,
int width,
int height,
int startAngle,
int arcAngle)
Fill an arc |
void |
fillRect(int x,
int y,
int width,
int height)
Fill a rectangle |
void |
fillRoundRect(int x,
int y,
int width,
int heghit,
int arcWidth,
int arcHeight)
Fill a round rectangle |
int |
getBlueComponent()
Get the blue component |
int |
getClipHeight()
Get the clip height |
int |
getClipWidth()
Get the clip width |
int |
getClipX()
Get the clip x |
int |
getClipY()
Get the clip y |
int |
getColor()
Get the colour |
Font |
getFont()
Get the font |
int |
getGrayScale()
Get the gray scale |
int |
getGreenComponent()
Get the green component |
int |
getRedComponent()
Get the red component |
int |
getStrokeStyle()
Get the stroke style |
int |
getTranslateX()
Get the x translation |
int |
getTranslateY()
Get the y translation |
void |
setClip(int x,
int y,
int width,
int height)
Set the clipping rectange |
void |
setColor(int colour)
Set the colour |
void |
setColor(int red,
int green,
int blue)
Set the colour from individual red, green and blue |
void |
setFont(Font font)
Set the font |
void |
setGrayScale(int value)
Set the gray scale value |
void |
setStrokeStyle(int stroke)
Set the stroke style |
void |
translate(int x,
int y)
Set the translation |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
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
| Method Detail |
public void clipRect(int x,
int y,
int width,
int height)
x - The x positiony - The y positionwidth - The widthheight - The height
public void drawArc(int x,
int y,
int width,
int height,
int startAngle,
int arcAngle)
x - The x positiony - The y positionwidth - The widthheight - The heightstartAngle - The startarcAngle - The angle of the arc to do
public void drawChar(char ch,
int x,
int y,
int anchor)
ch - The characterx - The x positiony - The y positionanchor - The anchor
IllegalArgumentException - if the anchor is invalid
public void drawChars(char[] data,
int offset,
int length,
int x,
int y,
int anchor)
data - The charactersoffset - The offset into the datalength - The lengthx - The x positiony - The y positionanchor - The anchor information
NullPointerException - if the data is null
IllegalArgumentException - if the anchor is invalid
public void drawImage(Image img,
int x,
int y,
int anchor)
img - The imagex - The x positiony - The y positionanchor - The anchor
NullPointerException - if the image is null
public void drawLine(int x1,
int y1,
int x2,
int y2)
x1 - The start xy1 - The start yx2 - The end xy2 - The end y
public void drawRect(int x,
int y,
int width,
int height)
x - The x positiony - The y positionwidth - The widthheight - The height
public void drawRoundRect(int x,
int y,
int width,
int heghit,
int arcWidth,
int arcHeight)
x - The x positiony - The y positionwidth - The widtharcWidth - The width of the arcarcHeight - The height of the arc
public void drawString(java.lang.String str,
int x,
int y,
int anchor)
str - The stringx - The x positiony - The y positionanchor - The anchor
IllegalArgumentException - if the anchor is invalid
NullPointerException - if the string is null
public void drawSubstring(java.lang.String str,
int offset,
int length,
int x,
int y,
int anchor)
str - The stringoffset - The offsetx - The x positiony - The y positionanchor - The anchor
StringIndexOutOfBoundsException - if the offset and length are not valie
IllegalArgumentException - if the anchor is invalid
NullPointerException - if the string is null
public void fillArc(int x,
int y,
int width,
int height,
int startAngle,
int arcAngle)
x - The x positiony - The y positionwidth - The widthheight - The heightstartAngle - The startarcAngle - The angle of the arc to do
public void fillRect(int x,
int y,
int width,
int height)
x - The x positiony - The y positionwidth - The widthheight - The height
public void fillRoundRect(int x,
int y,
int width,
int heghit,
int arcWidth,
int arcHeight)
x - The x positiony - The y positionwidth - The widtharcWidth - The width of the arcarcHeight - The height of the arcpublic int getBlueComponent()
public int getClipHeight()
public int getClipWidth()
public int getClipX()
public int getClipY()
public int getColor()
public Font getFont()
public int getGrayScale()
public int getGreenComponent()
public int getRedComponent()
public int getStrokeStyle()
public int getTranslateX()
public int getTranslateY()
public void setClip(int x,
int y,
int width,
int height)
x - The x positiony - The y positionwidth - The widthheight - The heightpublic void setColor(int colour)
colour - The new colour
public void setColor(int red,
int green,
int blue)
red - The red componentgreen - The green componentblue - The blue componentpublic void setFont(Font font)
font - The font to setpublic void setGrayScale(int value)
public void setStrokeStyle(int stroke)
public void translate(int x,
int y)
x - The x translationy - The y translation
|
DCT Lightfoot v3 API specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||