|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.nutiteq.wrappers.rimui.Graphics
public class Graphics
Wrapper implementation around RIM UI graphics to enable similar API to J2ME graphics. Only methods used in library have been implemented.
| 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
|
| Constructor Summary | |
|---|---|
Graphics(net.rim.device.api.ui.Graphics buffered)
Wrap 'native' RIM UI Graphics class |
|
| Method Summary | |
|---|---|
void |
drawImage(Image image,
int x,
int y,
int anchor)
|
void |
drawLine(int startX,
int startY,
int endX,
int endY)
|
void |
drawRect(int x,
int y,
int width,
int height)
|
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(java.lang.String string,
int x,
int y,
int anchor)
|
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)
Not implemented yet |
int |
getClipHeight()
|
int |
getClipWidth()
|
int |
getClipX()
|
int |
getClipY()
|
net.rim.device.api.ui.Graphics |
getNative()
get RIM UI Graphics class, enables to use native methods of it |
void |
popAll()
Pop graphics contexts, that might have been pushed in setClip(int, int, int, int). |
void |
setClip(int x,
int y,
int width,
int height)
|
void |
setColor(int color)
|
void |
setFont(Font font)
|
void |
translate(int x,
int y)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int HCENTER
public static final int VCENTER
public static final int LEFT
public static final int RIGHT
public static final int TOP
public static final int BOTTOM
public static final int BASELINE
public static final int SOLID
public static final int DOTTED
| Constructor Detail |
|---|
public Graphics(net.rim.device.api.ui.Graphics buffered)
buffered - graphics to be wrapped| Method Detail |
|---|
public void translate(int x,
int y)
public net.rim.device.api.ui.Graphics getNative()
public void setColor(int color)
public void drawRect(int x,
int y,
int width,
int height)
public void drawImage(Image image,
int x,
int y,
int anchor)
public void fillTriangle(int x1,
int y1,
int x2,
int y2,
int x3,
int y3)
x1 - y1 - x2 - y2 - x3 - y3 -
public void setClip(int x,
int y,
int width,
int height)
public void drawLine(int startX,
int startY,
int endX,
int endY)
public void drawString(java.lang.String string,
int x,
int y,
int anchor)
public void fillRect(int x,
int y,
int width,
int height)
public void setFont(Font font)
public void drawRGB(int[] rgbData,
int offset,
int scanlength,
int x,
int y,
int width,
int height,
boolean processAlpha)
public int getClipX()
public int getClipY()
public int getClipWidth()
public int getClipHeight()
public void drawRoundRect(int x,
int y,
int width,
int height,
int arcWidth,
int arcHeight)
public void fillRoundRect(int x,
int y,
int width,
int height,
int arcWidth,
int arcHeight)
public void popAll()
setClip(int, int, int, int). This method will not fail, when no
pushes have been performed
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||