| java.lang.Object com.sun.pisces.LineSink com.sun.pisces.PathSink com.sun.pisces.PiscesRenderer
Method Summary | |
native public void | beginRendering(int windingRule) | native public void | beginRendering(int minX, int minY, int width, int height, int windingRule) Begins the rendering of path data. | native public void | clearRect(int x, int y, int w, int h) | native public void | close() | native public void | cubicTo(int x1, int y1, int x2, int y2, int x3, int y3) | native public void | drawArc(int x, int y, int width, int height, int startAngle, int arcAngle, int arcType) | native public void | drawLine(int x0, int y0, int x1, int y1) | native public void | drawOval(int x, int y, int w, int h) | native public void | drawRect(int x, int y, int w, int h) | native public void | drawRoundRect(int x, int y, int w, int h, int aw, int ah) | native public void | end() | native public void | endRendering() Completes the rendering of path data. | native public void | fillArc(int x, int y, int width, int height, int startAngle, int arcAngle, int arcType) | native public void | fillOval(int x, int y, int w, int h) | native public void | fillRect(int x, int y, int w, int h) | native public void | fillRoundRect(int x, int y, int w, int h, int aw, int ah) | native public boolean | getAntialiasing() | native public void | getBoundingBox(int[] bbox) Returns a bounding box containing all pixels drawn during the
rendering of the most recent primitive
(beginRendering/endRendering pair). | public PathSink | getFiller() | public void | getImageData() | public PathSink | getStroker() | public PathSink | getTextFiller() | public Transform6 | getTransform() | native public void | lineJoin() | native public void | lineTo(int x1, int y1) | native public void | moveTo(int x0, int y0) | native public void | nativeFinalize() | native public void | quadTo(int x1, int y1, int x2, int y2) | native public void | resetClip() Resets the clip rectangle. | native public void | setAntialiasing(boolean antialiasingOn) | native public void | setClip(int minX, int minY, int width, int height) Sets a clip rectangle for all primitives. | native public void | setColor(int red, int green, int blue, int alpha) Sets the current paint color. | public void | setColor(int red, int green, int blue) Sets the current paint color. | native public void | setComposite(int compositeRule, float alpha) | native public void | setCompositeRule(int compositeRule) | native public void | setFill() | public void | setLinearGradient(int x0, int y0, int x1, int y1, int[] fractions, int[] rgba, int cycleMethod, Transform6 gradientTransform) | public void | setLinearGradient(int x0, int y0, int color0, int x1, int y1, int color1, int cycleMethod) Java2D-style linear gradient creation. | native public void | setPathData(float[] data, byte[] commands, int nCommands) | public void | setRadialGradient(int cx, int cy, int fx, int fy, int radius, int[] fractions, int[] rgba, int cycleMethod, Transform6 gradientTransform) | native public void | setStroke(int lineWidth, int capStyle, int joinStyle, int miterLimit, int[] dashArray, int dashPhase) Sets the current stroke parameters. | native public void | setStroke() | public void | setTextFill() | public void | setTexture(int imageType, Object imageData, int width, int height, int offset, int stride, Transform6 textureTransform, boolean repeat) | public void | setTextureOpacity(float opacity) | native public void | setTransform(Transform6 transform) Sets the current transform from user to window coordinates. |
ARC_CHORD | final public static int ARC_CHORD(Code) | | |
ARC_OPEN | final public static int ARC_OPEN(Code) | | |
ARC_PIE | final public static int ARC_PIE(Code) | | |
gcm_cycleMethod | int gcm_cycleMethod(Code) | | |
gcm_fractions | int[] gcm_fractions(Code) | | |
nativePtr | long nativePtr(Code) | | |
PiscesRenderer | public PiscesRenderer(Object data, int width, int height, int offset, int scanlineStride, int pixelStride, int type)(Code) | | Creates a renderer that will write into a given pixel array.
Parameters: data - the destination surfacewhere pixel data should be written. Parameters: width - the width of the pixel array. Parameters: height - the height of the pixel array. Parameters: offset - the starting offset of the pixel array. Parameters: scanlineStride - the scanline stride of the pixel array, in arrayentries. Parameters: pixelStride - the pixel stride of the pixel array, in arrayentries. Parameters: type - the pixel format, one of theRendererBase.TYPE_* constants. |
beginRendering | native public void beginRendering(int windingRule)(Code) | | |
beginRendering | native public void beginRendering(int minX, int minY, int width, int height, int windingRule)(Code) | | Begins the rendering of path data. The supplied clipping
bounds are intersected against the current clip rectangle and
the destination image bounds; only pixels within the resulting
rectangle may be written to.
|
clearRect | native public void clearRect(int x, int y, int w, int h)(Code) | | |
close | native public void close()(Code) | | |
cubicTo | native public void cubicTo(int x1, int y1, int x2, int y2, int x3, int y3)(Code) | | |
drawArc | native public void drawArc(int x, int y, int width, int height, int startAngle, int arcAngle, int arcType)(Code) | | |
drawLine | native public void drawLine(int x0, int y0, int x1, int y1)(Code) | | |
drawOval | native public void drawOval(int x, int y, int w, int h)(Code) | | |
drawRect | native public void drawRect(int x, int y, int w, int h)(Code) | | |
drawRoundRect | native public void drawRoundRect(int x, int y, int w, int h, int aw, int ah)(Code) | | |
end | native public void end()(Code) | | |
endRendering | native public void endRendering()(Code) | | Completes the rendering of path data. Destination pixels will
be written at this time.
|
fillArc | native public void fillArc(int x, int y, int width, int height, int startAngle, int arcAngle, int arcType)(Code) | | |
fillOval | native public void fillOval(int x, int y, int w, int h)(Code) | | |
fillRect | native public void fillRect(int x, int y, int w, int h)(Code) | | Parameters: x - the X coordinate in S15.16 format. Parameters: y - the Y coordinate in S15.16 format. Parameters: w - the width in S15.16 format. Parameters: h - the height in S15.16 format. |
fillRoundRect | native public void fillRoundRect(int x, int y, int w, int h, int aw, int ah)(Code) | | |
getAntialiasing | native public boolean getAntialiasing()(Code) | | |
getBoundingBox | native public void getBoundingBox(int[] bbox)(Code) | | Returns a bounding box containing all pixels drawn during the
rendering of the most recent primitive
(beginRendering/endRendering pair). The bounding box is
returned in the form (x, y, width, height).
|
getImageData | public void getImageData()(Code) | | |
lineJoin | native public void lineJoin()(Code) | | |
lineTo | native public void lineTo(int x1, int y1)(Code) | | |
moveTo | native public void moveTo(int x0, int y0)(Code) | | |
nativeFinalize | native public void nativeFinalize()(Code) | | |
quadTo | native public void quadTo(int x1, int y1, int x2, int y2)(Code) | | |
resetClip | native public void resetClip()(Code) | | Resets the clip rectangle. Each primitive will be clipped only
to the destination image bounds.
|
setAntialiasing | native public void setAntialiasing(boolean antialiasingOn)(Code) | | |
setClip | native public void setClip(int minX, int minY, int width, int height)(Code) | | Sets a clip rectangle for all primitives. Each primitive will be
clipped to the intersection of this rectangle and the destination
image bounds.
|
setColor | native public void setColor(int red, int green, int blue, int alpha)(Code) | | Sets the current paint color.
Parameters: red - a value between 0 and 255. Parameters: green - a value between 0 and 255. Parameters: blue - a value between 0 and 255. Parameters: alpha - a value between 0 and 255. |
setColor | public void setColor(int red, int green, int blue)(Code) | | Sets the current paint color. An alpha value of 255 is used.
Parameters: red - a value between 0 and 255. Parameters: green - a value between 0 and 255. Parameters: blue - a value between 0 and 255. |
setComposite | native public void setComposite(int compositeRule, float alpha)(Code) | | |
setCompositeRule | native public void setCompositeRule(int compositeRule)(Code) | | |
setFill | native public void setFill()(Code) | | |
setLinearGradient | public void setLinearGradient(int x0, int y0, int x1, int y1, int[] fractions, int[] rgba, int cycleMethod, Transform6 gradientTransform)(Code) | | |
setLinearGradient | public void setLinearGradient(int x0, int y0, int color0, int x1, int y1, int color1, int cycleMethod)(Code) | | Java2D-style linear gradient creation. The color changes proportionally
between point P0 (color0) nad P1 (color1). Cycle method constants are
defined in GradientColorMap (CYCLE_*).
Parameters: x0 - x coordinate of point P0 Parameters: y0 - y coordinate of point P0 Parameters: color0 - color of P0 Parameters: x1 - x coordinate of point P1 Parameters: y1 - y coordinate of point P1 Parameters: color1 - color of P1 Parameters: cycleMethod - type of cycling of the gradient (NONE, REFLECT, REPEAT) |
setPathData | native public void setPathData(float[] data, byte[] commands, int nCommands)(Code) | | |
setRadialGradient | public void setRadialGradient(int cx, int cy, int fx, int fy, int radius, int[] fractions, int[] rgba, int cycleMethod, Transform6 gradientTransform)(Code) | | |
setStroke | native public void setStroke(int lineWidth, int capStyle, int joinStyle, int miterLimit, int[] dashArray, int dashPhase)(Code) | | Sets the current stroke parameters.
Parameters: lineWidth - the sroke width, in S15.16 format. Parameters: capStyle - the line cap style, one ofStroker.CAP_* . Parameters: joinStyle - the line cap style, one ofStroker.JOIN_* . Parameters: miterLimit - the stroke miter limit, in S15.16 format. Parameters: dashArray - an int array containing the dashsegment lengths in S15.16 format, or null . Parameters: dashPhase - the starting dash offset, in S15.16 format. |
setStroke | native public void setStroke()(Code) | | |
setTextFill | public void setTextFill()(Code) | | |
setTexture | public void setTexture(int imageType, Object imageData, int width, int height, int offset, int stride, Transform6 textureTransform, boolean repeat)(Code) | | |
setTextureOpacity | public void setTextureOpacity(float opacity)(Code) | | |
setTransform | native public void setTransform(Transform6 transform)(Code) | | Sets the current transform from user to window coordinates.
Parameters: transform - an Transform6 object. |
Methods inherited from com.sun.pisces.PathSink | abstract public void cubicTo(int x1, int y1, int x2, int y2, int x3, int y3)(Code)(Java Doc) abstract public void quadTo(int x1, int y1, int x2, int y2)(Code)(Java Doc)
|
|
|