public interface Graphics
Modifier and Type | Field and Description |
---|---|
static int |
ALIGN_BOTTOM |
static int |
ALIGN_CENTER |
static int |
ALIGN_LEFT |
static int |
ALIGN_RIGHT |
static int |
ALIGN_TOP |
static int |
TEXT_LOAD_HEIGHT |
Modifier and Type | Method and Description |
---|---|
void |
create() |
void |
destory() |
void |
draw(Vector2[] shape,
float x,
float y,
float width,
float height,
float rot,
java.awt.Color[] colors) |
void |
drawImage(Image image,
float x,
float y,
float width,
float height) |
void |
drawImage(Image image,
float x,
float y,
float width,
float height,
float imgX,
float imgY,
float imgWidth,
float imgHeight) |
void |
drawLine(float x,
float y,
float x2,
float y2) |
void |
drawRect(float x,
float y,
float width,
float height) |
void |
drawString(java.lang.String text,
float x,
float y) |
void |
drawString(java.lang.String text,
float x,
float y,
java.awt.Color textBG) |
void |
fill(Vector2[] shape,
float x,
float y,
float width,
float height,
float rot,
java.awt.Color[] colors) |
void |
fillRect(float x,
float y,
float width,
float height) |
java.awt.Color |
getColor() |
java.lang.String |
getName() |
void |
resetClip() |
void |
setClearColor(java.awt.Color color) |
void |
setClip(float x,
float y,
float width,
float height) |
void |
setColor(java.awt.Color color) |
void |
setColor(java.awt.Color color,
int alpha) |
void |
setColor(int r,
int g,
int b) |
void |
setColor(int r,
int g,
int b,
int a) |
void |
setFont(CoreFont font,
float size) |
void |
setFont(java.lang.String font,
float size) |
void |
setTextAlign(int horizontal,
int vertical) |
int |
stringWidth(java.lang.String text) |
static final int ALIGN_LEFT
static final int ALIGN_TOP
static final int ALIGN_CENTER
static final int ALIGN_RIGHT
static final int ALIGN_BOTTOM
static final int TEXT_LOAD_HEIGHT
void fillRect(float x, float y, float width, float height)
void fill(Vector2[] shape, float x, float y, float width, float height, float rot, java.awt.Color[] colors)
void draw(Vector2[] shape, float x, float y, float width, float height, float rot, java.awt.Color[] colors)
void drawRect(float x, float y, float width, float height)
void drawLine(float x, float y, float x2, float y2)
void drawImage(Image image, float x, float y, float width, float height)
void drawImage(Image image, float x, float y, float width, float height, float imgX, float imgY, float imgWidth, float imgHeight)
void setTextAlign(int horizontal, int vertical)
void setFont(CoreFont font, float size)
void setFont(java.lang.String font, float size)
void drawString(java.lang.String text, float x, float y)
void drawString(java.lang.String text, float x, float y, java.awt.Color textBG)
void setColor(java.awt.Color color)
void setColor(java.awt.Color color, int alpha)
void setColor(int r, int g, int b)
void setColor(int r, int g, int b, int a)
java.awt.Color getColor()
java.lang.String getName()
void create() throws java.lang.Exception
java.lang.Exception
void destory() throws java.lang.Exception
java.lang.Exception
int stringWidth(java.lang.String text)
void setClip(float x, float y, float width, float height)
void resetClip()
void setClearColor(java.awt.Color color)