| java.lang.Object java.awt.Graphics java.awt.Graphics2D javax.media.jai.GraphicsJAI
GraphicsJAI | public class GraphicsJAI extends Graphics2D (Code) | | A JAI wrapper for a Graphics2D object derived from a Component.
When drawing JAI images to a Component such as a Canvas, a new
GraphicsJAI may be constructed to wrap the Graphics2D object
provided by that Component. This GraphicsJAI object may provide
acceleration for calls to drawRenderedImage(),
drawRenderableImage(), and possibly other methods.
If it is possible to use a CanvasJAI object instead of a
generic Canvas, or other Canvas subclass, then the Graphics objects
obtained from getGraphics() or received as an argument in paint()
will automatically be instances of GraphicsJAI.
The portion of the GraphicsJAI interface that
deals with adding and retrieving new hardware-specific implementations
has not been finalized and does not appear in the current API.
See Also: CanvasJAI |
Constructor Summary | |
protected | GraphicsJAI(Graphics2D g, Component component) Constructs a new instance of GraphicsJAI that
wraps a given instance of Graphics2D for drawing
to a given Component . |
Method Summary | |
public void | addRenderingHints(Map hints) See comments in java.awt.Graphics2D. | public void | clearRect(int x, int y, int width, int height) See comments in java.awt.Graphics. | public void | clip(Shape s) See comments in java.awt.Graphics2D. | public void | clipRect(int x, int y, int width, int height) See comments in java.awt.Graphics. | public void | copyArea(int x, int y, int width, int height, int dx, int dy) See comments in java.awt.Graphics. | public Graphics | create() Creates a new GraphicsJAI object that is
a copy of this GraphicsJAI object. | public static GraphicsJAI | createGraphicsJAI(Graphics2D g, Component component) Returns an instance of GraphicsJAI suitable
for rendering to the given Component via the
given Graphics2D instance. | public void | dispose() See comments in java.awt.Graphics. | public void | draw(Shape s) See comments in java.awt.Graphics2D. | public void | drawArc(int x, int y, int width, int height, int startAngle, int arcAngle) See comments in java.awt.Graphics. | public void | drawGlyphVector(GlyphVector g, float x, float y) See comments in java.awt.Graphics2D. | public boolean | drawImage(Image img, int x, int y, ImageObserver observer) See comments in java.awt.Graphics. | public boolean | drawImage(Image img, int x, int y, int width, int height, ImageObserver observer) See comments in java.awt.Graphics. | public boolean | drawImage(Image img, int x, int y, Color bgcolor, ImageObserver observer) See comments in java.awt.Graphics. | public boolean | drawImage(Image img, int x, int y, int width, int height, Color bgcolor, ImageObserver observer) See comments in java.awt.Graphics. | public boolean | drawImage(Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, ImageObserver observer) See comments in java.awt.Graphics. | 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) See comments in java.awt.Graphics. | public boolean | drawImage(Image img, AffineTransform xform, ImageObserver obs) See comments in java.awt.Graphics2D. | public void | drawImage(BufferedImage img, BufferedImageOp op, int x, int y) See comments in java.awt.Graphics2D. | public void | drawLine(int x1, int y1, int x2, int y2) See comments in java.awt.Graphics. | public void | drawOval(int x, int y, int width, int height) See comments in java.awt.Graphics. | public void | drawPolygon(int xPoints, int yPoints, int nPoints) See comments in java.awt.Graphics. | public void | drawPolyline(int xPoints, int yPoints, int nPoints) See comments in java.awt.Graphics. | public void | drawRenderableImage(RenderableImage img, AffineTransform xform) See comments in java.awt.Graphics2D. | public void | drawRenderedImage(RenderedImage img, AffineTransform xform) See comments in java.awt.Graphics2D. | public void | drawRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight) See comments in java.awt.Graphics. | public void | drawString(String str, int x, int y) See comments in java.awt.Graphics2D. | public void | drawString(String s, float x, float y) See comments in java.awt.Graphics2D. | public void | drawString(AttributedCharacterIterator iterator, int x, int y) See comments in java.awt.Graphics2D. | public void | drawString(AttributedCharacterIterator iterator, float x, float y) See comments in java.awt.Graphics2D. | public void | fill(Shape s) See comments in java.awt.Graphics2D. | public void | fillArc(int x, int y, int width, int height, int startAngle, int arcAngle) See comments in java.awt.Graphics. | public void | fillOval(int x, int y, int width, int height) See comments in java.awt.Graphics. | public void | fillPolygon(int xPoints, int yPoints, int nPoints) See comments in java.awt.Graphics. | public void | fillRect(int x, int y, int width, int height) See comments in java.awt.Graphics. | public void | fillRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight) See comments in java.awt.Graphics. | public Color | getBackground() See comments in java.awt.Graphics2D. | public Shape | getClip() See comments in java.awt.Graphics. | public Rectangle | getClipBounds() See comments in java.awt.Graphics. | public Color | getColor() See comments in java.awt.Graphics. | public Composite | getComposite() See comments in java.awt.Graphics2D. | public GraphicsConfiguration | getDeviceConfiguration() See comments in java.awt.Graphics2D. | public Font | getFont() See comments in java.awt.Graphics. | public FontMetrics | getFontMetrics(Font f) See comments in java.awt.Graphics. | public FontRenderContext | getFontRenderContext() See comments in java.awt.Graphics2D. | public Paint | getPaint() See comments in java.awt.Graphics2D. | public Object | getRenderingHint(Key hintKey) See comments in java.awt.Graphics2D. | public RenderingHints | getRenderingHints() See comments in java.awt.Graphics2D. | public Stroke | getStroke() See comments in java.awt.Graphics2D. | public AffineTransform | getTransform() See comments in java.awt.Graphics2D. | public boolean | hit(Rectangle rect, Shape s, boolean onStroke) See comments in java.awt.Graphics2D. | public void | rotate(double theta) See comments in java.awt.Graphics2D. | public void | rotate(double theta, double x, double y) See comments in java.awt.Graphics2D. | public void | scale(double sx, double sy) See comments in java.awt.Graphics2D. | public void | setBackground(Color color) See comments in java.awt.Graphics2D. | public void | setClip(int x, int y, int width, int height) See comments in java.awt.Graphics. | public void | setClip(Shape clip) See comments in java.awt.Graphics. | public void | setColor(Color c) See comments in java.awt.Graphics. | public void | setComposite(Composite comp) See comments in java.awt.Graphics2D. | public void | setFont(Font font) See comments in java.awt.Graphics. | public void | setPaint(Paint paint) See comments in java.awt.Graphics2D. | public void | setPaintMode() See comments in java.awt.Graphics. | public void | setRenderingHint(Key hintKey, Object hintValue) See comments in java.awt.Graphics2D. | public void | setRenderingHints(Map hints) See comments in java.awt.Graphics2D. | public void | setStroke(Stroke s) See comments in java.awt.Graphics2D. | public void | setTransform(AffineTransform Tx) See comments in java.awt.Graphics2D. | public void | setXORMode(Color c1) See comments in java.awt.Graphics. | public void | shear(double shx, double shy) See comments in java.awt.Graphics2D. | public void | transform(AffineTransform Tx) See comments in java.awt.Graphics2D. | public void | translate(int x, int y) See comments in java.awt.Graphics2D. | public void | translate(double tx, double ty) See comments in java.awt.Graphics2D. |
GraphicsJAI | protected GraphicsJAI(Graphics2D g, Component component)(Code) | | Constructs a new instance of GraphicsJAI that
wraps a given instance of Graphics2D for drawing
to a given Component .
|
createGraphicsJAI | public static GraphicsJAI createGraphicsJAI(Graphics2D g, Component component)(Code) | | Returns an instance of GraphicsJAI suitable
for rendering to the given Component via the
given Graphics2D instance.
If one is available, his method will select a hardware-specific
implementation, that is specialized for the display device containing
the component.
|
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) | | See comments in java.awt.Graphics.
See Also: java.awt.Graphics.drawImage(ImageintintintintintintintintColorImageObserver) |
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)
|
|
|