public class NonClearGraphics extends Graphics
Graphics object that delegates to it.
Only clearRect(int, int, int, int) does
not delegate in order to prevent clearing the Canvas after
it was rendered.NonClearGraphics2D| Constructor and Description |
|---|
NonClearGraphics(Graphics delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearRect(int x,
int y,
int width,
int height)
Does nothing.
|
void |
clipRect(int x,
int y,
int width,
int height) |
void |
copyArea(int x,
int y,
int width,
int height,
int dx,
int dy) |
NonClearGraphics |
create() |
NonClearGraphics |
create(int x,
int y,
int width,
int height) |
void |
dispose() |
void |
draw3DRect(int x,
int y,
int width,
int height,
boolean raised) |
void |
drawArc(int x,
int y,
int width,
int height,
int startAngle,
int arcAngle) |
void |
drawBytes(byte[] data,
int offset,
int length,
int x,
int y) |
void |
drawChars(char[] data,
int offset,
int length,
int x,
int y) |
boolean |
drawImage(Image img,
int x,
int y,
Color bgcolor,
ImageObserver observer) |
boolean |
drawImage(Image img,
int x,
int y,
ImageObserver observer) |
boolean |
drawImage(Image img,
int x,
int y,
int width,
int height,
Color bgcolor,
ImageObserver observer) |
boolean |
drawImage(Image img,
int x,
int y,
int width,
int height,
ImageObserver observer) |
boolean |
drawImage(Image img,
int dx1,
int dy1,
int dx2,
int dy2,
int sx1,
int sy1,
int sx2,
int sy2,
Color bgcolor,
ImageObserver observer) |
boolean |
drawImage(Image img,
int dx1,
int dy1,
int dx2,
int dy2,
int sx1,
int sy1,
int sx2,
int sy2,
ImageObserver observer) |
void |
drawLine(int x1,
int y1,
int x2,
int y2) |
void |
drawOval(int x,
int y,
int width,
int height) |
void |
drawPolygon(int[] xPoints,
int[] yPoints,
int nPoints) |
void |
drawPolygon(Polygon p) |
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(AttributedCharacterIterator iterator,
int x,
int y) |
void |
drawString(String str,
int x,
int y) |
void |
fill3DRect(int x,
int y,
int width,
int height,
boolean raised) |
void |
fillArc(int x,
int y,
int width,
int height,
int startAngle,
int arcAngle) |
void |
fillOval(int x,
int y,
int width,
int height) |
void |
fillPolygon(int[] xPoints,
int[] yPoints,
int nPoints) |
void |
fillPolygon(Polygon p) |
void |
fillRect(int x,
int y,
int width,
int height) |
void |
fillRoundRect(int x,
int y,
int width,
int height,
int arcWidth,
int arcHeight) |
void |
finalize() |
Shape |
getClip() |
Rectangle |
getClipBounds() |
Rectangle |
getClipBounds(Rectangle r) |
Rectangle |
getClipRect()
Deprecated.
|
Color |
getColor() |
Font |
getFont() |
FontMetrics |
getFontMetrics() |
FontMetrics |
getFontMetrics(Font f) |
boolean |
hitClip(int x,
int y,
int width,
int height) |
void |
setClip(int x,
int y,
int width,
int height) |
void |
setClip(Shape clip) |
void |
setColor(Color c) |
void |
setFont(Font font) |
void |
setPaintMode() |
void |
setXORMode(Color c1) |
String |
toString() |
void |
translate(int x,
int y) |
protected Graphics delegate
public NonClearGraphics(Graphics delegate)
public void clearRect(int x,
int y,
int width,
int height)
@Deprecated public Rectangle getClipRect()
getClipRect in class Graphicspublic NonClearGraphics create()
public NonClearGraphics create(int x, int y, int width, int height)
public void setPaintMode()
setPaintMode in class Graphicspublic void setXORMode(Color c1)
setXORMode in class Graphicspublic FontMetrics getFontMetrics()
getFontMetrics in class Graphicspublic FontMetrics getFontMetrics(Font f)
getFontMetrics in class Graphicspublic Rectangle getClipBounds()
getClipBounds in class Graphicspublic void clipRect(int x,
int y,
int width,
int height)
public void setClip(int x,
int y,
int width,
int height)
public void copyArea(int x,
int y,
int width,
int height,
int dx,
int dy)
public void drawLine(int x1,
int y1,
int x2,
int y2)
public void fillRect(int x,
int y,
int width,
int height)
public void drawRect(int x,
int y,
int width,
int height)
public void drawRoundRect(int x,
int y,
int width,
int height,
int arcWidth,
int arcHeight)
drawRoundRect in class Graphicspublic void fillRoundRect(int x,
int y,
int width,
int height,
int arcWidth,
int arcHeight)
fillRoundRect in class Graphicspublic void draw3DRect(int x,
int y,
int width,
int height,
boolean raised)
draw3DRect in class Graphicspublic void fill3DRect(int x,
int y,
int width,
int height,
boolean raised)
fill3DRect in class Graphicspublic void drawOval(int x,
int y,
int width,
int height)
public void fillOval(int x,
int y,
int width,
int height)
public void drawArc(int x,
int y,
int width,
int height,
int startAngle,
int arcAngle)
public void fillArc(int x,
int y,
int width,
int height,
int startAngle,
int arcAngle)
public void drawPolyline(int[] xPoints,
int[] yPoints,
int nPoints)
drawPolyline in class Graphicspublic void drawPolygon(int[] xPoints,
int[] yPoints,
int nPoints)
drawPolygon in class Graphicspublic void drawPolygon(Polygon p)
drawPolygon in class Graphicspublic void fillPolygon(int[] xPoints,
int[] yPoints,
int nPoints)
fillPolygon in class Graphicspublic void fillPolygon(Polygon p)
fillPolygon in class Graphicspublic void drawString(String str, int x, int y)
drawString in class Graphicspublic void drawString(AttributedCharacterIterator iterator, int x, int y)
drawString in class Graphicspublic void drawChars(char[] data,
int offset,
int length,
int x,
int y)
public void drawBytes(byte[] data,
int offset,
int length,
int x,
int y)
public boolean drawImage(Image img, int x, int y, ImageObserver observer)
public boolean drawImage(Image img, int x, int y, int width, int height, ImageObserver observer)
public boolean drawImage(Image img, int x, int y, Color bgcolor, ImageObserver observer)
public boolean drawImage(Image img, int x, int y, int width, int height, Color bgcolor, ImageObserver observer)
public boolean drawImage(Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, ImageObserver observer)
public boolean drawImage(Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, Color bgcolor, ImageObserver observer)
public boolean hitClip(int x,
int y,
int width,
int height)
public Rectangle getClipBounds(Rectangle r)
getClipBounds in class GraphicsCopyright © 2016–2019 LWJGLX. All rights reserved.