public class Graphics11 extends BasicGraphics
Modifier and Type | Field and Description |
---|---|
static Vector2[] |
RECT |
font, fontHAlign, fontHeight, fontVAlign
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_TOP, TEXT_LOAD_HEIGHT
Constructor and Description |
---|
Graphics11() |
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) |
int |
stringWidth(java.lang.String text) |
getFont, setColor, setFont, setFont, setTextAlign
public static final Vector2[] RECT
public void fillRect(float x, float y, float width, float height)
fillRect
in interface Graphics
fillRect
in class BasicGraphics
public void drawRect(float x, float y, float width, float height)
drawRect
in interface Graphics
drawRect
in class BasicGraphics
public void drawLine(float x, float y, float x2, float y2)
drawLine
in interface Graphics
drawLine
in class BasicGraphics
public void drawImage(Image image, float x, float y, float width, float height)
drawImage
in interface Graphics
drawImage
in class BasicGraphics
public void drawImage(Image image, float x, float y, float width, float height, float imgX, float imgY, float imgWidth, float imgHeight)
drawImage
in interface Graphics
drawImage
in class BasicGraphics
public void setColor(java.awt.Color color)
public void setColor(java.awt.Color color, int alpha)
setColor
in interface Graphics
setColor
in class BasicGraphics
public void setColor(int r, int g, int b)
setColor
in interface Graphics
setColor
in class BasicGraphics
public java.awt.Color getColor()
getColor
in interface Graphics
getColor
in class BasicGraphics
public java.lang.String getName()
public void create() throws java.lang.Exception
java.lang.Exception
public void destory()
public void drawString(java.lang.String text, float x, float y, java.awt.Color textBG)
public void drawString(java.lang.String text, float x, float y)
public int stringWidth(java.lang.String text)
public void setClip(float x, float y, float width, float height)
public void resetClip()
resetClip
in interface Graphics
resetClip
in class BasicGraphics
public void fill(Vector2[] shape, float x, float y, float width, float height, float rot, java.awt.Color[] colors)
public void draw(Vector2[] shape, float x, float y, float width, float height, float rot, java.awt.Color[] colors)
public void setClearColor(java.awt.Color color)