public abstract class BasicGraphics extends java.lang.Object implements Graphics
Modifier and Type | Field and Description |
---|---|
protected CoreFont |
font |
protected int |
fontHAlign |
protected float |
fontHeight |
protected int |
fontVAlign |
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_TOP, TEXT_LOAD_HEIGHT
Constructor and Description |
---|
BasicGraphics() |
Modifier and Type | Method and Description |
---|---|
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) |
abstract void |
drawLine(float x,
float y,
float x2,
float y2) |
abstract void |
drawRect(float x,
float y,
float width,
float height) |
abstract void |
fillRect(float x,
float y,
float width,
float height) |
java.awt.Color |
getColor() |
CoreFont |
getFont() |
void |
resetClip() |
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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
create, destory, draw, drawString, drawString, fill, getName, setClearColor, setClip, setColor, stringWidth
protected CoreFont font
protected float fontHeight
protected int fontHAlign
protected int fontVAlign
public abstract void fillRect(float x, float y, float width, float height)
public abstract void drawRect(float x, float y, float width, float height)
public abstract void drawLine(float x, float y, float x2, float y2)
public void drawImage(Image image, float x, float y, float width, float height)
public void drawImage(Image image, float x, float y, float width, float height, float imgX, float imgY, float imgWidth, float imgHeight)
public void setColor(java.awt.Color color, int alpha)
public void setColor(int r, int g, int b, int a)
public void setTextAlign(int horizontal, int vertical)
setTextAlign
in interface Graphics
public void setFont(java.lang.String font, float size)
public CoreFont getFont()