java.awt
Class Graphics
java.lang.Object
|
+--java.awt.Graphics
- public class Graphics
- extends java.lang.Object
Method Summary |
void |
checkContext(int i)
|
void |
clearRect(int x,
int y,
int w,
int h)
|
void |
clipRect(int x,
int y,
int w,
int h)
|
Graphics |
create()
|
Graphics |
create(int x,
int y,
int width,
int height)
|
void |
drawImage(Image image,
int x,
int y,
java.lang.Object observer)
|
void |
drawLine(int x1,
int y1,
int x2,
int y2)
|
void |
drawOval(int x,
int y,
int w,
int h)
Since there is no drawOval in com.sun.kjava.Graphics, this method draw a roundRect |
void |
drawPolyline(int[] xPoints,
int[] yPoints,
int nPoints)
|
void |
drawRect(int x,
int y,
int width,
int height)
|
void |
drawRoundRect(int x,
int y,
int width,
int height,
int arcWidth,
int arcHeight)
|
void |
drawString(java.lang.String text,
int x,
int y)
|
void |
fillRect(int x,
int y,
int width,
int height)
|
void |
fillRoundRect(int x,
int y,
int width,
int height,
int arcWidth,
int arcHeight)
|
Font |
getFont()
|
FontMetrics |
getFontMetrics()
|
FontMetrics |
getFontMetrics(Font font)
|
boolean |
hitClip(int x,
int y,
int w,
int h)
|
void |
setClip(int x,
int y,
int w,
int h)
|
void |
setColor(Color c)
|
void |
setFont(Font font)
|
void |
setPaintMode()
|
void |
setXORMode(Color c2)
|
void |
translate(int x,
int y)
|
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Graphics
public Graphics()
create
public Graphics create()
create
public Graphics create(int x,
int y,
int width,
int height)
checkContext
public void checkContext(int i)
clipRect
public void clipRect(int x,
int y,
int w,
int h)
setClip
public void setClip(int x,
int y,
int w,
int h)
clearRect
public void clearRect(int x,
int y,
int w,
int h)
drawImage
public void drawImage(Image image,
int x,
int y,
java.lang.Object observer)
drawLine
public void drawLine(int x1,
int y1,
int x2,
int y2)
drawPolyline
public void drawPolyline(int[] xPoints,
int[] yPoints,
int nPoints)
drawRoundRect
public void drawRoundRect(int x,
int y,
int width,
int height,
int arcWidth,
int arcHeight)
drawString
public void drawString(java.lang.String text,
int x,
int y)
drawOval
public void drawOval(int x,
int y,
int w,
int h)
- Since there is no drawOval in com.sun.kjava.Graphics, this method draw a roundRect
drawRect
public void drawRect(int x,
int y,
int width,
int height)
fillRect
public void fillRect(int x,
int y,
int width,
int height)
fillRoundRect
public void fillRoundRect(int x,
int y,
int width,
int height,
int arcWidth,
int arcHeight)
getFont
public Font getFont()
hitClip
public boolean hitClip(int x,
int y,
int w,
int h)
getFontMetrics
public FontMetrics getFontMetrics()
getFontMetrics
public FontMetrics getFontMetrics(Font font)
setColor
public void setColor(Color c)
setFont
public void setFont(Font font)
setPaintMode
public void setPaintMode()
setXORMode
public void setXORMode(Color c2)
translate
public void translate(int x,
int y)