|
Purple Code | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.awt.Graphics
|
+--com.purpletech.awt.PureGraphics
Pure Graphics - a Graphics with no ties to any AWT native nonsense. Currently only implemented for Images -- you can draw an Image, but you can't do most of the normal painting/filling operations. Someday I'll implement diagonal line-drawing, polygon-filling, etc. Note that drawLine() works, but only if the line is vertical or horizontal :-)
Based on code by Jef Poskanzer - jef@acme.com - http://www.acme.com/java/
| Method Summary | |
void |
clearRect(int x,
int y,
int w,
int h)
|
void |
clipRect(int x,
int y,
int w,
int h)
not implemented |
void |
copyArea(int x,
int y,
int w,
int h,
int dx,
int dy)
not implemented |
java.awt.Graphics |
create()
Create a new Graphics Object based on this one. |
void |
dispose()
|
void |
drawArc(int x,
int y,
int w,
int h,
int startAngle,
int endAngle)
not implemented |
void |
drawBytes(byte[] data,
int offset,
int length,
int x,
int y)
not implemented |
void |
drawChars(char[] data,
int offset,
int length,
int x,
int y)
not implemented |
boolean |
drawImage(java.awt.Image img,
int x,
int y,
java.awt.Color bg,
java.awt.image.ImageObserver observer)
Draws an image at x,y in nonblocking mode with a solid background color and a callback object. |
boolean |
drawImage(java.awt.Image img,
int x,
int y,
java.awt.image.ImageObserver observer)
Draws an image at x,y in nonblocking mode with a callback object. |
boolean |
drawImage(java.awt.Image img,
int x,
int y,
int width,
int height,
java.awt.Color bg,
java.awt.image.ImageObserver observer)
Draws an image scaled to x,y,w,h in nonblocking mode with a solid background color and a callback object. |
boolean |
drawImage(java.awt.Image img,
int x,
int y,
int width,
int height,
java.awt.image.ImageObserver observer)
Draws an image scaled to x,y,w,h in nonblocking mode with a callback object. |
boolean |
drawImage(java.awt.Image img,
int dx1,
int dy1,
int dx2,
int dy2,
int sx1,
int sy1,
int sx2,
int sy2,
java.awt.Color bgcolor,
java.awt.image.ImageObserver observer)
not implemented |
boolean |
drawImage(java.awt.Image img,
int dx1,
int dy1,
int dx2,
int dy2,
int sx1,
int sy1,
int sx2,
int sy2,
java.awt.image.ImageObserver observer)
not implemented |
void |
drawLine(int x1in,
int y1in,
int x2in,
int y2in)
not implemented for diagonal lines |
void |
drawOval(int x,
int y,
int w,
int h)
not implemented |
void |
drawPolygon(int[] xPoints,
int[] yPoints,
int nPoints)
not implemented |
void |
drawPolyline(int[] xPoints,
int[] yPoints,
int nPoints)
not implemented |
void |
drawRoundRect(int x,
int y,
int w,
int h,
int arcWidth,
int arcHeight)
not implemented |
void |
drawString(java.text.AttributedCharacterIterator a,
int b,
int c)
not implemented |
void |
drawString(java.lang.String str,
int x,
int y)
not implemented |
void |
fillArc(int x,
int y,
int w,
int h,
int startAngle,
int endAngle)
not implemented |
void |
fillOval(int x,
int y,
int w,
int h)
not implemented |
void |
fillPolygon(int[] xPoints,
int[] yPoints,
int nPoints)
not implemented |
void |
fillRect(int x,
int y,
int w,
int h)
|
protected void |
fillRect(int x,
int y,
int w,
int h,
int rgb)
|
void |
fillRoundRect(int x,
int y,
int w,
int h,
int arcWidth,
int arcHeight)
not implemented |
java.awt.Shape |
getClip()
not implemented |
java.awt.Rectangle |
getClipBounds()
not implemented |
java.awt.Rectangle |
getClipRect()
not implemented |
java.awt.Color |
getColor()
|
java.awt.Font |
getFont()
not implemented |
java.awt.FontMetrics |
getFontMetrics(java.awt.Font font)
not implemented |
void |
setClip(int x,
int y,
int w,
int h)
not implemented |
void |
setClip(java.awt.Shape clip)
not implemented |
void |
setColor(java.awt.Color c)
|
void |
setFont(java.awt.Font font)
not implemented |
void |
setPaintMode()
not implemented |
void |
setXORMode(java.awt.Color c)
not implemented |
void |
translate(int x,
int y)
Translates the origin of the graphics context to the point (x, y) in the current coordinate system. |
| Methods inherited from class java.awt.Graphics |
create, draw3DRect, drawPolygon, drawRect, fill3DRect, fillPolygon, finalize, getClipBounds, getFontMetrics, hitClip, toString |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
public java.awt.Graphics create()
create in class java.awt.Graphics
public void translate(int x,
int y)
translate in class java.awt.Graphicsx - the x coordinate.y - the y coordinate.public void dispose()
dispose in class java.awt.Graphicspublic java.awt.Font getFont()
getFont in class java.awt.Graphicspublic void setFont(java.awt.Font font)
setFont in class java.awt.Graphicspublic java.awt.FontMetrics getFontMetrics(java.awt.Font font)
getFontMetrics in class java.awt.Graphicspublic java.awt.Color getColor()
getColor in class java.awt.Graphicspublic void setColor(java.awt.Color c)
setColor in class java.awt.Graphicspublic void setPaintMode()
setPaintMode in class java.awt.Graphicspublic void setXORMode(java.awt.Color c)
setXORMode in class java.awt.Graphicspublic java.awt.Rectangle getClipRect()
getClipRect in class java.awt.Graphicspublic java.awt.Rectangle getClipBounds()
getClipBounds in class java.awt.Graphics
public void clipRect(int x,
int y,
int w,
int h)
clipRect in class java.awt.Graphics
public void setClip(int x,
int y,
int w,
int h)
setClip in class java.awt.Graphicspublic java.awt.Shape getClip()
getClip in class java.awt.Graphicspublic void setClip(java.awt.Shape clip)
setClip in class java.awt.Graphics
public void drawLine(int x1in,
int y1in,
int x2in,
int y2in)
drawLine in class java.awt.Graphics
public void fillRect(int x,
int y,
int w,
int h)
fillRect in class java.awt.Graphics
public void clearRect(int x,
int y,
int w,
int h)
clearRect in class java.awt.Graphics
protected void fillRect(int x,
int y,
int w,
int h,
int rgb)
public void drawString(java.lang.String str,
int x,
int y)
drawString in class java.awt.Graphics
public void drawString(java.text.AttributedCharacterIterator a,
int b,
int c)
drawString in class java.awt.Graphics
public void drawChars(char[] data,
int offset,
int length,
int x,
int y)
drawChars in class java.awt.Graphics
public void drawBytes(byte[] data,
int offset,
int length,
int x,
int y)
drawBytes in class java.awt.Graphics
public boolean drawImage(java.awt.Image img,
int x,
int y,
java.awt.image.ImageObserver observer)
NOTE: Does indeed block! Make sure the image has been fully loaded.
drawImage in class java.awt.Graphics
public boolean drawImage(java.awt.Image img,
int x,
int y,
int width,
int height,
java.awt.image.ImageObserver observer)
drawImage in class java.awt.Graphics
public boolean drawImage(java.awt.Image img,
int x,
int y,
java.awt.Color bg,
java.awt.image.ImageObserver observer)
drawImage in class java.awt.Graphics
public boolean drawImage(java.awt.Image img,
int x,
int y,
int width,
int height,
java.awt.Color bg,
java.awt.image.ImageObserver observer)
drawImage in class java.awt.Graphics
public boolean drawImage(java.awt.Image img,
int dx1,
int dy1,
int dx2,
int dy2,
int sx1,
int sy1,
int sx2,
int sy2,
java.awt.image.ImageObserver observer)
drawImage in class java.awt.Graphics
public boolean drawImage(java.awt.Image img,
int dx1,
int dy1,
int dx2,
int dy2,
int sx1,
int sy1,
int sx2,
int sy2,
java.awt.Color bgcolor,
java.awt.image.ImageObserver observer)
drawImage in class java.awt.Graphics
public void copyArea(int x,
int y,
int w,
int h,
int dx,
int dy)
copyArea in class java.awt.Graphics
public void drawRoundRect(int x,
int y,
int w,
int h,
int arcWidth,
int arcHeight)
drawRoundRect in class java.awt.Graphics
public void fillRoundRect(int x,
int y,
int w,
int h,
int arcWidth,
int arcHeight)
fillRoundRect in class java.awt.Graphics
public void drawPolygon(int[] xPoints,
int[] yPoints,
int nPoints)
drawPolygon in class java.awt.Graphics
public void fillPolygon(int[] xPoints,
int[] yPoints,
int nPoints)
fillPolygon in class java.awt.Graphics
public void drawOval(int x,
int y,
int w,
int h)
drawOval in class java.awt.Graphics
public void fillOval(int x,
int y,
int w,
int h)
fillOval in class java.awt.Graphics
public void drawArc(int x,
int y,
int w,
int h,
int startAngle,
int endAngle)
drawArc in class java.awt.Graphics
public void fillArc(int x,
int y,
int w,
int h,
int startAngle,
int endAngle)
fillArc in class java.awt.Graphics
public void drawPolyline(int[] xPoints,
int[] yPoints,
int nPoints)
drawPolyline in class java.awt.Graphics
|
Documentation generated March 5 2003 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||