multivalent.std
Class GraphicsWrap
public abstract
class
GraphicsWrap
extends Graphics2D
Some, but not many, kinds of Lenses are easiest to implement as subclasses of Graphics,
as remarked in "Debugging Lenses", UIST 97, Hudson/Rodenstein/Smith,
but every method of java.awt.Graphics2D is abstract; GraphicsWrap provides a conveniently subclassable Graphics2D.
Version: $Revision: 1.2 $ $Date: 2002/02/01 04:07:12 $
See Also:
Method Summary |
void | addRenderingHints(Map hints) |
void | clearRect(int x, int y, int width, int height) |
void | clip(Shape s) |
void | clipRect(int x, int y, int width, int height) |
void | copyArea(int x, int y, int width, int height, int dx, int dy) |
abstract Graphics | create() Subclasses should define as something like "return new ((Graphics2D)wrapped_.create());". |
void | dispose() |
void | draw(Shape s) |
void | drawArc(int x, int y, int width, int height, int startAngle, int arcAngle) |
void | drawGlyphVector(GlyphVector g, float x, float y) |
boolean | drawImage(Image img, int x, int y, 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, int width, int height, 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 dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, Color bgcolor, ImageObserver observer) |
void | drawImage(BufferedImage img, BufferedImageOp op, int x, int y) |
boolean | drawImage(Image img, AffineTransform xform, ImageObserver obs) |
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 | drawPolyline(int[] xPoints, int[] yPoints, int nPoints) |
void | drawRenderableImage(RenderableImage img, AffineTransform xform) |
void | drawRenderedImage(RenderedImage img, AffineTransform xform) |
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 | drawString(AttributedCharacterIterator iterator, float x, float y) |
void | drawString(String s, float x, float y) |
void | fill(Shape s) |
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 | fillRect(int x, int y, int width, int height) |
void | fillRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight) |
Color | getBackground() |
Shape | getClip() |
Rectangle | getClipBounds() |
Color | getColor() |
Composite | getComposite() |
GraphicsConfiguration | getDeviceConfiguration() |
Font | getFont() |
FontMetrics | getFontMetrics() |
FontMetrics | getFontMetrics(Font f) |
FontRenderContext | getFontRenderContext() |
Paint | getPaint() |
Object | getRenderingHint(Key hintKey) |
RenderingHints | getRenderingHints() |
Stroke | getStroke() |
AffineTransform | getTransform() |
boolean | hit(Rectangle rect, Shape s, boolean onStroke) |
void | rotate(double theta) |
void | rotate(double theta, double x, double y) |
void | scale(double sx, double sy) |
void | setBackground(Color color) |
void | setClip(int x, int y, int width, int height) |
void | setClip(Shape clip) |
void | setColor(Color c) |
void | setComposite(Composite comp) |
void | setFont(Font font) |
void | setPaint(Paint paint) |
void | setPaintMode() |
void | setRenderingHint(Key hintKey, Object hintValue) |
void | setRenderingHints(Map hints) |
void | setStroke(Stroke s) |
void | setTransform(AffineTransform Tx) |
void | setXORMode(Color c1) |
void | shear(double shx, double shy) |
String | toString() |
void | transform(AffineTransform Tx) |
void | translate(int x, int y) |
void | translate(double tx, double ty) |
protected Graphics2D wrapped_
protected GraphicsWrap(Graphics2D wrapped)
public void addRenderingHints(Map hints)
public void clearRect(int x, int y, int width, int height)
public void clip(Shape s)
public void clipRect(int x, int y, int width, int height)
public void copyArea(int x, int y, int width, int height, int dx, int dy)
public abstract Graphics create()
Subclasses should define as something like "return new ((Graphics2D)wrapped_.create());".
public void dispose()
public void draw(Shape s)
public void drawArc(int x, int y, int width, int height, int startAngle, int arcAngle)
public void drawGlyphVector(GlyphVector g, float x, float 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 void drawImage(BufferedImage img, BufferedImageOp op, int x, int y)
public boolean drawImage(Image img, AffineTransform xform, ImageObserver obs)
public void drawLine(int x1, int y1, int x2, int y2)
public void drawOval(int x, int y, int width, int height)
public void drawPolygon(int[] xPoints, int[] yPoints, int nPoints)
public void drawPolyline(int[] xPoints, int[] yPoints, int nPoints)
public void drawRenderableImage(RenderableImage img, AffineTransform xform)
public void drawRenderedImage(RenderedImage img, AffineTransform xform)
public void drawRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight)
public void drawString(String str, int x, int y)
public void drawString(AttributedCharacterIterator iterator, int x, int y)
public void drawString(AttributedCharacterIterator iterator, float x, float y)
public void drawString(String s, float x, float y)
public void fill(Shape s)
public void fillArc(int x, int y, int width, int height, int startAngle, int arcAngle)
public void fillOval(int x, int y, int width, int height)
public void fillPolygon(int[] xPoints, int[] yPoints, int nPoints)
public void fillRect(int x, int y, int width, int height)
public void fillRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight)
public Color getBackground()
public Shape getClip()
public Rectangle getClipBounds()
public Color getColor()
public Composite getComposite()
public GraphicsConfiguration getDeviceConfiguration()
public Font getFont()
public FontMetrics getFontMetrics()
public FontMetrics getFontMetrics(Font f)
public FontRenderContext getFontRenderContext()
public Paint getPaint()
public Object getRenderingHint(Key hintKey)
public RenderingHints getRenderingHints()
public Stroke getStroke()
public AffineTransform getTransform()
public boolean hit(Rectangle rect, Shape s, boolean onStroke)
public void rotate(double theta)
public void rotate(double theta, double x, double y)
public void scale(double sx, double sy)
public void setBackground(Color color)
public void setClip(int x, int y, int width, int height)
public void setClip(Shape clip)
public void setColor(Color c)
public void setComposite(Composite comp)
public void setFont(Font font)
public void setPaint(Paint paint)
public void setPaintMode()
public void setRenderingHint(Key hintKey, Object hintValue)
public void setRenderingHints(Map hints)
public void setStroke(Stroke s)
public void setTransform(AffineTransform Tx)
public void setXORMode(Color c1)
public void shear(double shx, double shy)
public String toString()
public void transform(AffineTransform Tx)
public void translate(int x, int y)
public void translate(double tx, double ty)