| java.lang.Object java.awt.Graphics java.awt.Graphics2D javax.media.jai.RenderableGraphics
RenderableGraphics | public class RenderableGraphics extends Graphics2D implements RenderableImage(Code) | | An implementation of Graphics2D with
RenderableImage semantics. In other words, content may be
drawn into the image using the Graphics2D interface and later
be turned into RenderedImage s with different resolutions and
characteristics.
A RenderableGraphics occupies a region of the plane
specified at the time of construction.
The contents of RenderableImage s that are drawn onto a
RenderableGraphics are accessed only at the time of rendering,
not the time of drawing.
Since the methods of this class all derive from Graphics2D
and RenderableImage , they are not all commented individually.
See Also: java.awt.Graphics2D See Also: java.awt.image.renderable.RenderableImage |
Method Summary | |
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 Graphics | create() | public RenderedImage | createDefaultRendering() | public RenderedImage | createRendering(RenderContext renderContext) Creates a RenderedImage that represents a rendering of this image
using a given RenderContext. | public RenderedImage | createScaledRendering(int w, int h, RenderingHints hints) | public void | dispose() | public void | draw(Shape s) | public void | draw3DRect(int x, int y, int width, int height, boolean raised) | public void | drawArc(int x, int y, int width, int height, int startAngle, int arcAngle) | public void | drawGlyphVector(GlyphVector v, 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 boolean | drawImage(Image img, AffineTransform xform, ImageObserver obs) | public void | drawImage(BufferedImage img, BufferedImageOp op, int x, int y) | 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(String s, float x, float y) | public void | drawString(AttributedCharacterIterator iterator, int x, int y) | public void | drawString(AttributedCharacterIterator iterator, float x, float y) | public void | fill(Shape s) | public void | fill3DRect(int x, int y, int width, int height, boolean raised) | 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(Font f) | public FontRenderContext | getFontRenderContext() | public float | getHeight() | public float | getMinX() | public float | getMinY() | public Paint | getPaint() | public Object | getProperty(String name) | public String[] | getPropertyNames() | public Object | getRenderingHint(RenderingHints.Key hintKey) | public RenderingHints | getRenderingHints() | public Vector | getSources() | public Stroke | getStroke() | public AffineTransform | getTransform() | public float | getWidth() | public boolean | hit(Rectangle rect, Shape s, boolean onStroke) | public boolean | isDynamic() | public void | rotate(double theta) | public void | rotate(double theta, double x, double y) | public void | scale(double sx, double sy) | void | sendExceptionToListener(String message, Exception e) | 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(RenderingHints.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 void | transform(AffineTransform Tx) | public void | translate(int x, int y) | public void | translate(double x, double y) |
RenderableGraphics | public RenderableGraphics(Rectangle2D dimensions)(Code) | | Constructs a RenderableGraphics given a bounding
Rectangle2D .
Parameters: dimensions - The bounding Rectangle2D . |
addRenderingHints | public void addRenderingHints(Map hints)(Code) | | |
clearRect | public void clearRect(int x, int y, int width, int height)(Code) | | |
clipRect | public void clipRect(int x, int y, int width, int height)(Code) | | |
copyArea | public void copyArea(int x, int y, int width, int height, int dx, int dy)(Code) | | |
createDefaultRendering | public RenderedImage createDefaultRendering()(Code) | | |
createRendering | public RenderedImage createRendering(RenderContext renderContext)(Code) | | Creates a RenderedImage that represents a rendering of this image
using a given RenderContext. This is the most general way to obtain a
rendering of a RenderableImage.
The created RenderedImage may have a property identified
by the String HINTS_OBSERVED to indicate which RenderingHints
(from the RenderContext) were used to create the image. In addition
any RenderedImages that are obtained via the getSources() method on
the created RenderedImage may have such a property.
The bounds of the RenderedImage are determined from
the dimensions parameter passed to the RenderableGraphics
constructor. These bounds will be transformed by any
AffineTransform from the RenderContext .
The RenderingHints from the RenderContext may
be used to specify the tile width and height, SampleModel ,
and ColorModel by supplying an ImageLayout
hint. The precedence for determining tile width and height is to use
firstly values provided explicitly via the ImageLayout ,
secondly the width and height of the SampleModel in the
hint, and thirdly the bounds of the RenderableGraphics
object after transformation.
If either the SampleModel or ColorModel
is null, an attempt will be made to derive a compatible value for the
null object from the non-null object. If they are both null, a 3-band
byte TiledImage with a null ColorModel and a
PixelInterleavedSampleModel will be created.
Parameters: renderContext - the RenderContext to use to produce the rendering. a RenderedImage containing the rendered data. |
createScaledRendering | public RenderedImage createScaledRendering(int w, int h, RenderingHints hints)(Code) | | |
dispose | public void dispose()(Code) | | |
draw3DRect | public void draw3DRect(int x, int y, int width, int height, boolean raised)(Code) | | |
drawArc | public void drawArc(int x, int y, int width, int height, int startAngle, int arcAngle)(Code) | | |
drawImage | public boolean drawImage(Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, ImageObserver observer)(Code) | | |
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)(Code) | | |
drawLine | public void drawLine(int x1, int y1, int x2, int y2)(Code) | | |
drawOval | public void drawOval(int x, int y, int width, int height)(Code) | | |
drawPolygon | public void drawPolygon(int xPoints, int yPoints, int nPoints)(Code) | | |
drawPolyline | public void drawPolyline(int xPoints, int yPoints, int nPoints)(Code) | | |
drawRoundRect | public void drawRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight)(Code) | | |
drawString | public void drawString(String str, int x, int y)(Code) | | |
drawString | public void drawString(String s, float x, float y)(Code) | | |
fill3DRect | public void fill3DRect(int x, int y, int width, int height, boolean raised)(Code) | | |
fillArc | public void fillArc(int x, int y, int width, int height, int startAngle, int arcAngle)(Code) | | |
fillOval | public void fillOval(int x, int y, int width, int height)(Code) | | |
fillPolygon | public void fillPolygon(int xPoints, int yPoints, int nPoints)(Code) | | |
fillRect | public void fillRect(int x, int y, int width, int height)(Code) | | |
fillRoundRect | public void fillRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight)(Code) | | |
getHeight | public float getHeight()(Code) | | |
getMinX | public float getMinX()(Code) | | |
getMinY | public float getMinY()(Code) | | |
getWidth | public float getWidth()(Code) | | |
isDynamic | public boolean isDynamic()(Code) | | |
rotate | public void rotate(double theta)(Code) | | |
rotate | public void rotate(double theta, double x, double y)(Code) | | |
scale | public void scale(double sx, double sy)(Code) | | |
setBackground | public void setBackground(Color color)(Code) | | |
setClip | public void setClip(int x, int y, int width, int height)(Code) | | |
setPaintMode | public void setPaintMode()(Code) | | |
setRenderingHints | public void setRenderingHints(Map hints)(Code) | | |
shear | public void shear(double shx, double shy)(Code) | | |
translate | public void translate(int x, int y)(Code) | | |
translate | public void translate(double x, double y)(Code) | | |
Methods inherited from java.awt.Graphics2D | abstract public void addRenderingHints(Map, ?> hints)(Code)(Java Doc) abstract public void clip(Shape s)(Code)(Java Doc) abstract public void draw(Shape s)(Code)(Java Doc) public void draw3DRect(int x, int y, int width, int height, boolean raised)(Code)(Java Doc) abstract public void drawGlyphVector(GlyphVector g, float x, float y)(Code)(Java Doc) abstract public boolean drawImage(Image img, AffineTransform xform, ImageObserver obs)(Code)(Java Doc) abstract public void drawImage(BufferedImage img, BufferedImageOp op, int x, int y)(Code)(Java Doc) abstract public void drawRenderableImage(RenderableImage img, AffineTransform xform)(Code)(Java Doc) abstract public void drawRenderedImage(RenderedImage img, AffineTransform xform)(Code)(Java Doc) abstract public void drawString(String str, int x, int y)(Code)(Java Doc) abstract public void drawString(String str, float x, float y)(Code)(Java Doc) abstract public void drawString(AttributedCharacterIterator iterator, int x, int y)(Code)(Java Doc) abstract public void drawString(AttributedCharacterIterator iterator, float x, float y)(Code)(Java Doc) abstract public void fill(Shape s)(Code)(Java Doc) public void fill3DRect(int x, int y, int width, int height, boolean raised)(Code)(Java Doc) abstract public Color getBackground()(Code)(Java Doc) abstract public Composite getComposite()(Code)(Java Doc) abstract public GraphicsConfiguration getDeviceConfiguration()(Code)(Java Doc) abstract public FontRenderContext getFontRenderContext()(Code)(Java Doc) abstract public Paint getPaint()(Code)(Java Doc) abstract public Object getRenderingHint(Key hintKey)(Code)(Java Doc) abstract public RenderingHints getRenderingHints()(Code)(Java Doc) abstract public Stroke getStroke()(Code)(Java Doc) abstract public AffineTransform getTransform()(Code)(Java Doc) abstract public boolean hit(Rectangle rect, Shape s, boolean onStroke)(Code)(Java Doc) abstract public void rotate(double theta)(Code)(Java Doc) abstract public void rotate(double theta, double x, double y)(Code)(Java Doc) abstract public void scale(double sx, double sy)(Code)(Java Doc) abstract public void setBackground(Color color)(Code)(Java Doc) abstract public void setComposite(Composite comp)(Code)(Java Doc) abstract public void setPaint(Paint paint)(Code)(Java Doc) abstract public void setRenderingHint(Key hintKey, Object hintValue)(Code)(Java Doc) abstract public void setRenderingHints(Map, ?> hints)(Code)(Java Doc) abstract public void setStroke(Stroke s)(Code)(Java Doc) abstract public void setTransform(AffineTransform Tx)(Code)(Java Doc) abstract public void shear(double shx, double shy)(Code)(Java Doc) abstract public void transform(AffineTransform Tx)(Code)(Java Doc) abstract public void translate(int x, int y)(Code)(Java Doc) abstract public void translate(double tx, double ty)(Code)(Java Doc)
|
Methods inherited from java.awt.Graphics | abstract public void clearRect(int x, int y, int width, int height)(Code)(Java Doc) abstract public void clipRect(int x, int y, int width, int height)(Code)(Java Doc) abstract public void copyArea(int x, int y, int width, int height, int dx, int dy)(Code)(Java Doc) abstract public Graphics create()(Code)(Java Doc) public Graphics create(int x, int y, int width, int height)(Code)(Java Doc) abstract public void dispose()(Code)(Java Doc) public void draw3DRect(int x, int y, int width, int height, boolean raised)(Code)(Java Doc) abstract public void drawArc(int x, int y, int width, int height, int startAngle, int arcAngle)(Code)(Java Doc) public void drawBytes(byte data, int offset, int length, int x, int y)(Code)(Java Doc) public void drawChars(char data, int offset, int length, int x, int y)(Code)(Java Doc) abstract public boolean drawImage(Image img, int x, int y, ImageObserver observer)(Code)(Java Doc) abstract public boolean drawImage(Image img, int x, int y, int width, int height, ImageObserver observer)(Code)(Java Doc) abstract public boolean drawImage(Image img, int x, int y, Color bgcolor, ImageObserver observer)(Code)(Java Doc) abstract public boolean drawImage(Image img, int x, int y, int width, int height, Color bgcolor, ImageObserver observer)(Code)(Java Doc) abstract public boolean drawImage(Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, ImageObserver observer)(Code)(Java Doc) abstract 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)(Code)(Java Doc) abstract public void drawLine(int x1, int y1, int x2, int y2)(Code)(Java Doc) abstract public void drawOval(int x, int y, int width, int height)(Code)(Java Doc) abstract public void drawPolygon(int xPoints, int yPoints, int nPoints)(Code)(Java Doc) public void drawPolygon(Polygon p)(Code)(Java Doc) abstract public void drawPolyline(int xPoints, int yPoints, int nPoints)(Code)(Java Doc) public void drawRect(int x, int y, int width, int height)(Code)(Java Doc) abstract public void drawRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight)(Code)(Java Doc) abstract public void drawString(String str, int x, int y)(Code)(Java Doc) abstract public void drawString(AttributedCharacterIterator iterator, int x, int y)(Code)(Java Doc) public void fill3DRect(int x, int y, int width, int height, boolean raised)(Code)(Java Doc) abstract public void fillArc(int x, int y, int width, int height, int startAngle, int arcAngle)(Code)(Java Doc) abstract public void fillOval(int x, int y, int width, int height)(Code)(Java Doc) abstract public void fillPolygon(int xPoints, int yPoints, int nPoints)(Code)(Java Doc) public void fillPolygon(Polygon p)(Code)(Java Doc) abstract public void fillRect(int x, int y, int width, int height)(Code)(Java Doc) abstract public void fillRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight)(Code)(Java Doc) public void finalize()(Code)(Java Doc) abstract public Shape getClip()(Code)(Java Doc) abstract public Rectangle getClipBounds()(Code)(Java Doc) public Rectangle getClipBounds(Rectangle r)(Code)(Java Doc) public Rectangle getClipRect()(Code)(Java Doc) abstract public Color getColor()(Code)(Java Doc) abstract public Font getFont()(Code)(Java Doc) public FontMetrics getFontMetrics()(Code)(Java Doc) abstract public FontMetrics getFontMetrics(Font f)(Code)(Java Doc) public boolean hitClip(int x, int y, int width, int height)(Code)(Java Doc) abstract public void setClip(int x, int y, int width, int height)(Code)(Java Doc) abstract public void setClip(Shape clip)(Code)(Java Doc) abstract public void setColor(Color c)(Code)(Java Doc) abstract public void setFont(Font font)(Code)(Java Doc) abstract public void setPaintMode()(Code)(Java Doc) abstract public void setXORMode(Color c1)(Code)(Java Doc) public String toString()(Code)(Java Doc) abstract public void translate(int x, int y)(Code)(Java Doc)
|
|
|