Java Doc for PiscesRenderer.java in  » 6.0-JDK-Modules » j2me » com » sun » pisces » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules » j2me » com.sun.pisces 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.pisces.LineSink
      com.sun.pisces.PathSink
         com.sun.pisces.PiscesRenderer

PiscesRenderer
final public class PiscesRenderer extends PathSink implements NativeFinalization(Code)


Field Summary
final public static  intARC_CHORD
    
final public static  intARC_OPEN
    
final public static  intARC_PIE
    
 intgcm_cycleMethod
    
 int[]gcm_fractions
    
 int[]gcm_rgba
    
 GradientColorMapgradientColorMap
    
 longnativePtr
    
final  AbstractSurfacesurface
    

Constructor Summary
public  PiscesRenderer(Object data, int width, int height, int offset, int scanlineStride, int pixelStride, int type)
     Creates a renderer that will write into a given pixel array.
public  PiscesRenderer(AbstractSurface surface)
    

Method Summary
native public  voidbeginRendering(int windingRule)
    
native public  voidbeginRendering(int minX, int minY, int width, int height, int windingRule)
     Begins the rendering of path data.
native public  voidclearRect(int x, int y, int w, int h)
    
native public  voidclose()
    
native public  voidcubicTo(int x1, int y1, int x2, int y2, int x3, int y3)
    
native public  voiddrawArc(int x, int y, int width, int height, int startAngle, int arcAngle, int arcType)
    
native public  voiddrawLine(int x0, int y0, int x1, int y1)
    
native public  voiddrawOval(int x, int y, int w, int h)
    
native public  voiddrawRect(int x, int y, int w, int h)
    
native public  voiddrawRoundRect(int x, int y, int w, int h, int aw, int ah)
    
native public  voidend()
    
native public  voidendRendering()
     Completes the rendering of path data.
native public  voidfillArc(int x, int y, int width, int height, int startAngle, int arcAngle, int arcType)
    
native public  voidfillOval(int x, int y, int w, int h)
    
native public  voidfillRect(int x, int y, int w, int h)
    
native public  voidfillRoundRect(int x, int y, int w, int h, int aw, int ah)
    
native public  booleangetAntialiasing()
    
native public  voidgetBoundingBox(int[] bbox)
     Returns a bounding box containing all pixels drawn during the rendering of the most recent primitive (beginRendering/endRendering pair).
public  PathSinkgetFiller()
    
public  voidgetImageData()
    
public  PathSinkgetStroker()
    
public  PathSinkgetTextFiller()
    
public  Transform6getTransform()
    
native public  voidlineJoin()
    
native public  voidlineTo(int x1, int y1)
    
native public  voidmoveTo(int x0, int y0)
    
native public  voidnativeFinalize()
    
native public  voidquadTo(int x1, int y1, int x2, int y2)
    
native public  voidresetClip()
     Resets the clip rectangle.
native public  voidsetAntialiasing(boolean antialiasingOn)
    
native public  voidsetClip(int minX, int minY, int width, int height)
     Sets a clip rectangle for all primitives.
native public  voidsetColor(int red, int green, int blue, int alpha)
     Sets the current paint color.
public  voidsetColor(int red, int green, int blue)
     Sets the current paint color.
native public  voidsetComposite(int compositeRule, float alpha)
    
native public  voidsetCompositeRule(int compositeRule)
    
native public  voidsetFill()
    
public  voidsetLinearGradient(int x0, int y0, int x1, int y1, int[] fractions, int[] rgba, int cycleMethod, Transform6 gradientTransform)
    
public  voidsetLinearGradient(int x0, int y0, int color0, int x1, int y1, int color1, int cycleMethod)
     Java2D-style linear gradient creation.
native public  voidsetPathData(float[] data, byte[] commands, int nCommands)
    
public  voidsetRadialGradient(int cx, int cy, int fx, int fy, int radius, int[] fractions, int[] rgba, int cycleMethod, Transform6 gradientTransform)
    
native public  voidsetStroke(int lineWidth, int capStyle, int joinStyle, int miterLimit, int[] dashArray, int dashPhase)
     Sets the current stroke parameters.
native public  voidsetStroke()
    
public  voidsetTextFill()
    
public  voidsetTexture(int imageType, Object imageData, int width, int height, int offset, int stride, Transform6 textureTransform, boolean repeat)
    
public  voidsetTextureOpacity(float opacity)
    
native public  voidsetTransform(Transform6 transform)
     Sets the current transform from user to window coordinates.

Field Detail
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)



gcm_rgba
int[] gcm_rgba(Code)



gradientColorMap
GradientColorMap gradientColorMap(Code)



nativePtr
long nativePtr(Code)



surface
final AbstractSurface surface(Code)




Constructor Detail
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.



PiscesRenderer
public PiscesRenderer(AbstractSurface surface)(Code)




Method Detail
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).



getFiller
public PathSink getFiller()(Code)



getImageData
public void getImageData()(Code)



getStroker
public PathSink getStroker()(Code)



getTextFiller
public PathSink getTextFiller()(Code)



getTransform
public Transform6 getTransform()(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)

Methods inherited from com.sun.pisces.LineSink
abstract public void close()(Code)(Java Doc)
abstract public void end()(Code)(Java Doc)
abstract public void lineJoin()(Code)(Java Doc)
abstract public void lineTo(int x1, int y1)(Code)(Java Doc)
abstract public void moveTo(int x0, int y0)(Code)(Java Doc)

Methods inherited from java.lang.Object
public boolean equals(Object obj)(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.