| java.lang.Object com.sun.perseus.j2d.RenderContext com.sun.perseus.j2d.PiscesRenderGraphics com.sun.perseus.j2d.RenderGraphics
RenderGraphics | public class RenderGraphics extends PiscesRenderGraphics (Code) | | All rendering in Perseus is done through the RenderGraphics class.
RenderGraphics is the combination of the traditional
Graphics2D API to the rendering engine and the notion of
graphical context found in SVG.
A RenderGraphics object proxies invocation to a Graphics2D
instance through its draw or fill method while capturing
the current rendering context state by implementing the
RenderContext interface.
Note A: the Java 2D graphic context values passed by the
RenderGraphics to the proxied Graphics2D correspond to
the CSS 2
actual values.
Note B: the initial values for the context properties (such
as color or fill) correspond to the CSS 2
initial values for these properties.
See Also: RenderContext See Also: java.awt.Graphics2D version: $Id: RenderGraphics.java,v 1.5 2006/04/21 06:35:43 st125089 Exp $ |
Constructor Summary | |
public | RenderGraphics(PiscesRenderer pr, int width, int height) Constructs a new RenderGraphics which will delegate painting
operations to a Graphics2D built for the input
BufferedImage. |
Method Summary | |
public void | clearRect(int x, int y, int width, int height, RGB clearColor) Clears the specified rectangle. |
RenderGraphics | public RenderGraphics(PiscesRenderer pr, int width, int height)(Code) | | Constructs a new RenderGraphics which will delegate painting
operations to a Graphics2D built for the input
BufferedImage.
Parameters: pr - the PiscesRenderer to render to. Parameters: width - the rendering surface width. Should be greater than zero. Parameters: height - the rendering surface height. Should be greater than zero. throws: NullPointerException - if bi is null throws: NullPointerException - if bi is null |
clearRect | public void clearRect(int x, int y, int width, int height, RGB clearColor)(Code) | | Clears the specified rectangle. IMPORTANT NOTE: the coordinates are in
device space. This method does not account for the current transformation
set on the RenderGraphics. It operates on the target pixels.
Parameters: x - - the x coordinate of the rectangle to clear. Parameters: y - - the y coordinate of the rectangle to clear. Parameters: width - - the width of the rectangle to clear. Parameters: height - - the height of the rectangle to clear. Parameters: clearColor - - the color to use to clear the rectangle. |
Methods inherited from com.sun.perseus.j2d.PiscesRenderGraphics | void applyClip()(Code)(Java Doc) abstract public void clearRect(int x, int y, int width, int height, RGB clearColor)(Code)(Java Doc) public void draw(Path path)(Code)(Java Doc) public void drawImage(RasterImage image, float dx, float dy, float dw, float dh)(Code)(Java Doc) public void drawLine(float x1, float y1, float x2, float y2)(Code)(Java Doc) public void drawOval(float x, float y, float w, float h)(Code)(Java Doc) public void drawRect(float x, float y, float w, float h, float aw, float ah)(Code)(Java Doc) public void fill(Path path)(Code)(Java Doc) void fillOrDraw(Path path, PaintServer paint, int opOpacity, boolean isFill)(Code)(Java Doc) public void fillOval(float x, float y, float w, float h)(Code)(Java Doc) public void fillRect(float x, float y, float w, float h, float aw, float ah)(Code)(Java Doc) public Tile getPrimitiveTile()(Code)(Java Doc) public Tile getRenderingTile()(Code)(Java Doc) public void setPaintTarget(PaintTarget paintTarget)(Code)(Java Doc) public void setPaintTransform(Transform paintTransform)(Code)(Java Doc) public void setPrimitiveTile(Tile primitiveTile)(Code)(Java Doc) public void setRenderingQuality(boolean isHigh)(Code)(Java Doc) public void setRenderingTile(Tile renderingTile)(Code)(Java Doc) public void setTransform(Transform newTransform)(Code)(Java Doc) static boolean setTransform(Transform newTransform, Transform6 transform)(Code)(Java Doc)
|
|
|