Package icyllis.modernui.core.awt
Class NonClearGraphics
java.lang.Object
java.awt.Graphics
icyllis.modernui.core.awt.NonClearGraphics
Wrapper for a
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.- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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) create()
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 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) 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 x, int y, Color bgcolor, ImageObserver observer) boolean
drawImage
(Image img, int x, int y, 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
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
(String str, int x, int y) void
drawString
(AttributedCharacterIterator iterator, 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
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()
getClip()
Deprecated.getColor()
getFont()
boolean
hitClip
(int x, int y, int width, int height) void
setClip
(int x, int y, int width, int height) void
void
void
void
void
setXORMode
(Color c1) toString()
void
translate
(int x, int y)
-
Field Details
-
delegate
-
-
Constructor Details
-
NonClearGraphics
-
-
Method Details
-
clearRect
public void clearRect(int x, int y, int width, int height) Does nothing. This is to prevent a clearRect call from clearing the already rendered Canvas. -
getClipRect
Deprecated.- Overrides:
getClipRect
in classGraphics
-
create
-
create
-
translate
public void translate(int x, int y) -
getColor
-
setColor
-
setPaintMode
public void setPaintMode()- Specified by:
setPaintMode
in classGraphics
-
setXORMode
- Specified by:
setXORMode
in classGraphics
-
getFont
-
setFont
-
getFontMetrics
- Overrides:
getFontMetrics
in classGraphics
-
getFontMetrics
- Specified by:
getFontMetrics
in classGraphics
-
getClipBounds
- Specified by:
getClipBounds
in classGraphics
-
clipRect
public void clipRect(int x, int y, int width, int height) -
setClip
public void setClip(int x, int y, int width, int height) -
getClip
-
setClip
-
copyArea
public void copyArea(int x, int y, int width, int height, int dx, int dy) -
drawLine
public void drawLine(int x1, int y1, int x2, int y2) -
fillRect
public void fillRect(int x, int y, int width, int height) -
drawRect
public void drawRect(int x, int y, int width, int height) -
drawRoundRect
public void drawRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight) - Specified by:
drawRoundRect
in classGraphics
-
fillRoundRect
public void fillRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight) - Specified by:
fillRoundRect
in classGraphics
-
draw3DRect
public void draw3DRect(int x, int y, int width, int height, boolean raised) - Overrides:
draw3DRect
in classGraphics
-
fill3DRect
public void fill3DRect(int x, int y, int width, int height, boolean raised) - Overrides:
fill3DRect
in classGraphics
-
drawOval
public void drawOval(int x, int y, int width, int height) -
fillOval
public void fillOval(int x, int y, int width, int height) -
drawArc
public void drawArc(int x, int y, int width, int height, int startAngle, int arcAngle) -
fillArc
public void fillArc(int x, int y, int width, int height, int startAngle, int arcAngle) -
drawPolyline
public void drawPolyline(int[] xPoints, int[] yPoints, int nPoints) - Specified by:
drawPolyline
in classGraphics
-
drawPolygon
public void drawPolygon(int[] xPoints, int[] yPoints, int nPoints) - Specified by:
drawPolygon
in classGraphics
-
drawPolygon
- Overrides:
drawPolygon
in classGraphics
-
fillPolygon
public void fillPolygon(int[] xPoints, int[] yPoints, int nPoints) - Specified by:
fillPolygon
in classGraphics
-
fillPolygon
- Overrides:
fillPolygon
in classGraphics
-
drawString
- Specified by:
drawString
in classGraphics
-
drawString
- Specified by:
drawString
in classGraphics
-
drawChars
public void drawChars(char[] data, int offset, int length, int x, int y) -
drawBytes
public void drawBytes(byte[] data, int offset, int length, int x, int y) -
drawImage
-
drawImage
-
drawImage
-
drawImage
public boolean drawImage(Image img, int x, int y, int width, int height, Color bgcolor, ImageObserver observer) -
drawImage
public boolean drawImage(Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, ImageObserver observer) -
drawImage
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) -
dispose
public void dispose() -
finalize
public void finalize() -
toString
-
hitClip
public boolean hitClip(int x, int y, int width, int height) -
getClipBounds
- Overrides:
getClipBounds
in classGraphics
-