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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclearRect(int x, int y, int width, int height) Does nothing.voidclipRect(int x, int y, int width, int height) voidcopyArea(int x, int y, int width, int height, int dx, int dy) create()create(int x, int y, int width, int height) voiddispose()voiddraw3DRect(int x, int y, int width, int height, boolean raised) voiddrawArc(int x, int y, int width, int height, int startAngle, int arcAngle) voiddrawBytes(byte[] data, int offset, int length, int x, int y) voiddrawChars(char[] data, int offset, int length, int x, int y) booleandrawImage(Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, Color bgcolor, ImageObserver observer) booleandrawImage(Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, ImageObserver observer) booleandrawImage(Image img, int x, int y, int width, int height, Color bgcolor, ImageObserver observer) booleandrawImage(Image img, int x, int y, int width, int height, ImageObserver observer) booleandrawImage(Image img, int x, int y, Color bgcolor, ImageObserver observer) booleandrawImage(Image img, int x, int y, ImageObserver observer) voiddrawLine(int x1, int y1, int x2, int y2) voiddrawOval(int x, int y, int width, int height) voiddrawPolygon(int[] xPoints, int[] yPoints, int nPoints) voidvoiddrawPolyline(int[] xPoints, int[] yPoints, int nPoints) voiddrawRect(int x, int y, int width, int height) voiddrawRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight) voiddrawString(String str, int x, int y) voiddrawString(AttributedCharacterIterator iterator, int x, int y) voidfill3DRect(int x, int y, int width, int height, boolean raised) voidfillArc(int x, int y, int width, int height, int startAngle, int arcAngle) voidfillOval(int x, int y, int width, int height) voidfillPolygon(int[] xPoints, int[] yPoints, int nPoints) voidvoidfillRect(int x, int y, int width, int height) voidfillRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight) voidfinalize()getClip()Deprecated.getColor()getFont()booleanhitClip(int x, int y, int width, int height) voidsetClip(int x, int y, int width, int height) voidvoidvoidvoidvoidsetXORMode(Color c1) toString()voidtranslate(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:
getClipRectin classGraphics
-
create
-
create
-
translate
public void translate(int x, int y) -
getColor
-
setColor
-
setPaintMode
public void setPaintMode()- Specified by:
setPaintModein classGraphics
-
setXORMode
- Specified by:
setXORModein classGraphics
-
getFont
-
setFont
-
getFontMetrics
- Overrides:
getFontMetricsin classGraphics
-
getFontMetrics
- Specified by:
getFontMetricsin classGraphics
-
getClipBounds
- Specified by:
getClipBoundsin 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:
drawRoundRectin classGraphics
-
fillRoundRect
public void fillRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight) - Specified by:
fillRoundRectin classGraphics
-
draw3DRect
public void draw3DRect(int x, int y, int width, int height, boolean raised) - Overrides:
draw3DRectin classGraphics
-
fill3DRect
public void fill3DRect(int x, int y, int width, int height, boolean raised) - Overrides:
fill3DRectin 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:
drawPolylinein classGraphics
-
drawPolygon
public void drawPolygon(int[] xPoints, int[] yPoints, int nPoints) - Specified by:
drawPolygonin classGraphics
-
drawPolygon
- Overrides:
drawPolygonin classGraphics
-
fillPolygon
public void fillPolygon(int[] xPoints, int[] yPoints, int nPoints) - Specified by:
fillPolygonin classGraphics
-
fillPolygon
- Overrides:
fillPolygonin classGraphics
-
drawString
- Specified by:
drawStringin classGraphics
-
drawString
- Specified by:
drawStringin 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:
getClipBoundsin classGraphics
-