Class Graphics2DWrapper
java.lang.Object
edu.uci.ics.jung.visualization.transform.shape.Graphics2DWrapper
- Direct Known Subclasses:
GraphicsDecorator
a complete wrapping of Graphics2D, useful as a base class.
Contains no additional methods, other than direct calls
to the delegate.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRenderingHints(Map<?, ?> hints) voidclearRect(int x, int y, int width, int height) voidvoidclipRect(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()voidvoiddraw3DRect(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) voiddrawGlyphVector(GlyphVector g, float x, float y) voiddrawImage(BufferedImage img, BufferedImageOp op, 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) booleandrawImage(Image img, AffineTransform xform, ImageObserver obs) 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) voiddrawRenderableImage(RenderableImage img, AffineTransform xform) voiddrawRenderedImage(RenderedImage img, AffineTransform xform) voiddrawRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight) voiddrawString(String s, float x, float y) voiddrawString(String str, int x, int y) voiddrawString(AttributedCharacterIterator iterator, float x, float y) voiddrawString(AttributedCharacterIterator iterator, int x, int y) booleanvoidvoidfill3DRect(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()getColor()getFont()getPaint()getRenderingHint(RenderingHints.Key hintKey) inthashCode()booleanbooleanhitClip(int x, int y, int width, int height) voidrotate(double theta) voidrotate(double theta, double x, double y) voidscale(double sx, double sy) voidsetBackground(Color color) voidsetClip(int x, int y, int width, int height) voidvoidvoidsetComposite(Composite comp) voidsetDelegate(Graphics2D delegate) voidvoidvoidvoidsetRenderingHint(RenderingHints.Key hintKey, Object hintValue) voidsetRenderingHints(Map<?, ?> hints) voidvoidvoidsetXORMode(Color c1) voidshear(double shx, double shy) toString()voidvoidtranslate(double tx, double ty) voidtranslate(int x, int y)
-
Field Details
-
delegate
-
-
Constructor Details
-
Graphics2DWrapper
public Graphics2DWrapper() -
Graphics2DWrapper
-
-
Method Details
-
setDelegate
-
getDelegate
-
addRenderingHints
-
clearRect
public void clearRect(int x, int y, int width, int height) -
clip
-
clipRect
public void clipRect(int x, int y, int width, int height) -
copyArea
public void copyArea(int x, int y, int width, int height, int dx, int dy) -
create
-
create
-
dispose
public void dispose() -
draw
-
draw3DRect
public void draw3DRect(int x, int y, int width, int height, boolean raised) -
drawArc
public void drawArc(int x, int y, int width, int height, int startAngle, int arcAngle) -
drawBytes
public void drawBytes(byte[] data, int offset, int length, int x, int y) -
drawChars
public void drawChars(char[] data, int offset, int length, int x, int y) -
drawGlyphVector
-
drawImage
-
drawImage
-
drawImage
-
drawImage
-
drawImage
public boolean drawImage(Image img, int x, int y, int width, int height, Color bgcolor, ImageObserver observer) -
drawImage
-
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) -
drawImage
public boolean drawImage(Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, ImageObserver observer) -
drawLine
public void drawLine(int x1, int y1, int x2, int y2) -
drawOval
public void drawOval(int x, int y, int width, int height) -
drawPolygon
public void drawPolygon(int[] xPoints, int[] yPoints, int nPoints) -
drawPolygon
-
drawPolyline
public void drawPolyline(int[] xPoints, int[] yPoints, int nPoints) -
drawRect
public void drawRect(int x, int y, int width, int height) -
drawRenderableImage
-
drawRenderedImage
-
drawRoundRect
public void drawRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight) -
drawString
-
drawString
-
drawString
-
drawString
-
equals
-
fill
-
fill3DRect
public void fill3DRect(int x, int y, int width, int height, boolean raised) -
fillArc
public void fillArc(int x, int y, int width, int height, int startAngle, int arcAngle) -
fillOval
public void fillOval(int x, int y, int width, int height) -
fillPolygon
public void fillPolygon(int[] xPoints, int[] yPoints, int nPoints) -
fillPolygon
-
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) -
finalize
-
getBackground
-
getClip
-
getClipBounds
-
getClipBounds
-
getClipRect
-
getColor
-
getComposite
-
getDeviceConfiguration
-
getFont
-
getFontMetrics
-
getFontMetrics
-
getFontRenderContext
-
getPaint
-
getRenderingHint
-
getRenderingHints
-
getStroke
-
getTransform
-
hashCode
-
hit
-
hitClip
public boolean hitClip(int x, int y, int width, int height) -
rotate
public void rotate(double theta, double x, double y) -
rotate
public void rotate(double theta) -
scale
public void scale(double sx, double sy) -
setBackground
-
setClip
public void setClip(int x, int y, int width, int height) -
setClip
-
setColor
-
setComposite
-
setFont
-
setPaint
-
setPaintMode
public void setPaintMode() -
setRenderingHint
-
setRenderingHints
-
setStroke
-
setTransform
-
setXORMode
-
shear
public void shear(double shx, double shy) -
toString
-
transform
-
translate
public void translate(double tx, double ty) -
translate
public void translate(int x, int y)
-