Java Doc for PiscesRenderGraphics.java in  » 6.0-JDK-Modules » j2me » com » sun » perseus » j2d » 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.perseus.j2d 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.perseus.j2d.RenderContext
      com.sun.perseus.j2d.PiscesRenderGraphics

All known Subclasses:   com.sun.perseus.j2d.RenderGraphics,
PiscesRenderGraphics
abstract public class PiscesRenderGraphics extends RenderContext (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


Field Summary
final protected static  TransformIDENTITY
    
protected  intheight
     The rendering extent along the y axis.
protected  Transform6imageTransform
    
protected  booleanneedSetTransform
     Tracks whether or not the current transform needs to be set.
protected  PaintTargetpaintTarget
     The PaintTarget is the object defining the extent of the target rendered area.
protected  TransformpaintTransform
     The paintTransform defines the coordinate space into which the PaintDef should do its computation.
protected  PiscesRendererpr
     The associated PiscesRenderer.
protected  TileprimitiveTile
     The current primitive tile, i.e., the one that should encompass the rendering of the following rendering primitive(s).
protected  TilerenderingTile
     The current rendering tile.
protected  Transform6transform
     The current transform.
protected  intwidth
     The rendering extent along the x axis.

Constructor Summary
public  PiscesRenderGraphics(PiscesRenderer pr, int width, int height)
     Constructs a new PiscesRenderGraphics which will delegate painting operations to a PiscesRenderer.
Parameters:
  pr - the PiscesRenderer to render to.
Parameters:
  width - the rendering surface width.

Method Summary
 voidapplyClip()
    
abstract public  voidclearRect(int x, int y, int width, int height, RGB clearColor)
     Clears the specified rectangle.
public  voiddraw(Path path)
    
public  voiddrawImage(RasterImage image, float dx, float dy, float dw, float dh)
    
public  voiddrawLine(float x1, float y1, float x2, float y2)
    
public  voiddrawOval(float x, float y, float w, float h)
    
public  voiddrawRect(float x, float y, float w, float h, float aw, float ah)
    
public  voidfill(Path path)
     fills the input shape with the current fill color.
 voidfillOrDraw(Path path, PaintServer paint, int opOpacity, boolean isFill)
    
Parameters:
  path - the Path to fill or draw.
Parameters:
  paint - the paint to use for the operation.
Parameters:
  opOpacity - the opacity to use for the operation.
Parameters:
  isFill - if true, this is a fill operation.
public  voidfillOval(float x, float y, float w, float h)
    
public  voidfillRect(float x, float y, float w, float h, float aw, float ah)
     Fills a rectangle.
public  TilegetPrimitiveTile()
     the current user clip tile.
public  TilegetRenderingTile()
     the current rendering tile.
public  voidsetPaintTarget(PaintTarget paintTarget)
     Sets the current PaintTarget.
public  voidsetPaintTransform(Transform paintTransform)
     Sets the current paintTransform.
public  voidsetPrimitiveTile(Tile primitiveTile)
     Sets the primitive tile, which is intersected with the rendering tile.
public  voidsetRenderingQuality(boolean isHigh)
     Turns the high quality rendering on or off.
public  voidsetRenderingTile(Tile renderingTile)
     Sets the current rendering tile to the rectangle specified by the given tile.
public  voidsetTransform(Transform newTransform)
     Setting the transform to null is equivalent to setting it to identity.
Parameters:
  newTransform - the new value of the transform.
static  booleansetTransform(Transform newTransform, Transform6 transform)
     Transfers the transform values from the input Perseus Transform the the input Pisces Transform6.
Parameters:
  newTransform - the Perseus transform to transfer.
Parameters:
  outTransform - the Pisces transform destination.

Field Detail
IDENTITY
final protected static Transform IDENTITY(Code)
Constant used to handle setTransform(null)
See Also:   PiscesRenderGraphics.setTransform



height
protected int height(Code)
The rendering extent along the y axis.



imageTransform
protected Transform6 imageTransform(Code)
The image transform, used in drawImage



needSetTransform
protected boolean needSetTransform(Code)
Tracks whether or not the current transform needs to be set.



paintTarget
protected PaintTarget paintTarget(Code)
The PaintTarget is the object defining the extent of the target rendered area. In some situations, this may be different than the primitive being drawn. For example, the same paint target may apply to multiple consecutive rendering calls.



paintTransform
protected Transform paintTransform(Code)
The paintTransform defines the coordinate space into which the PaintDef should do its computation. Note that a PaintDef may add additional transform to the paintTransform, for example to account for objectBoundingBox paints or for paints which accept additional transforms (such as LinearGradientPaintDef which accepts a gradientTransform).



pr
protected PiscesRenderer pr(Code)
The associated PiscesRenderer.



primitiveTile
protected Tile primitiveTile(Code)
The current primitive tile, i.e., the one that should encompass the rendering of the following rendering primitive(s). This is used to account for round-off errors in bounds computation and cut-off rendering to the computed bouds for each primitive.



renderingTile
protected Tile renderingTile(Code)
The current rendering tile.



transform
protected Transform6 transform(Code)
The current transform.



width
protected int width(Code)
The rendering extent along the x axis.




Constructor Detail
PiscesRenderGraphics
public PiscesRenderGraphics(PiscesRenderer pr, int width, int height)(Code)
Constructs a new PiscesRenderGraphics which will delegate painting operations to a PiscesRenderer.
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




Method Detail
applyClip
void applyClip()(Code)
Applies the intersection of the rendering tile and the primitive tile



clearRect
abstract 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.



draw
public void draw(Path path)(Code)
Draws the input shape using a stroke derived from the following properties:
  • strokeWidth
  • strokeDashArray
  • strokeDashOffset
  • strokeLineJoin
  • strokeLineCap

Parameters:
  path - the Path to fill



drawImage
public void drawImage(RasterImage image, float dx, float dy, float dw, float dh)(Code)
Draws the input Image at the specified location applying the input transform to the image before drawing it onto the proxied Graphics2D
Parameters:
  image - the Image to draw
Parameters:
  dx - the coordinate, along the x-axis, where the image should be drawn, in user space.
Parameters:
  dy - the coordinate, along the y-axis, where the image should be drawn, in user space.
Parameters:
  dw - the width, in the destination user space, of the image when drawn.
Parameters:
  dh - the height, in the destination user space, of the image when drawn.



drawLine
public void drawLine(float x1, float y1, float x2, float y2)(Code)

Parameters:
  x1 - the line's x-axis starting position.
Parameters:
  y1 - the line's y-axis starting position.
Parameters:
  x2 - the line's x-axis end position.
Parameters:
  y2 - the line's y-axis end position.



drawOval
public void drawOval(float x, float y, float w, float h)(Code)



drawRect
public void drawRect(float x, float y, float w, float h, float aw, float ah)(Code)



fill
public void fill(Path path)(Code)
fills the input shape with the current fill color.
Parameters:
  path - the Path to fill



fillOrDraw
void fillOrDraw(Path path, PaintServer paint, int opOpacity, boolean isFill)(Code)

Parameters:
  path - the Path to fill or draw.
Parameters:
  paint - the paint to use for the operation.
Parameters:
  opOpacity - the opacity to use for the operation.
Parameters:
  isFill - if true, this is a fill operation. Otherwise, it is a stroke operation.



fillOval
public void fillOval(float x, float y, float w, float h)(Code)



fillRect
public void fillRect(float x, float y, float w, float h, float aw, float ah)(Code)
Fills a rectangle.
Parameters:
  x - the rectangle's x-axis origin
Parameters:
  y - the rectangle's y-axis origin
Parameters:
  w - the rectangle's length along the x-axis
Parameters:
  h - the rectangle's length along the y-axis
Parameters:
  aw - the rectangle's rounded corner diameter along the x-axis
Parameters:
  ah - the rectangle's rounded corner diameter along the y-axis.



getPrimitiveTile
public Tile getPrimitiveTile()(Code)
the current user clip tile. This value is _never_ null.



getRenderingTile
public Tile getRenderingTile()(Code)
the current rendering tile. This value is _never_ null.



setPaintTarget
public void setPaintTarget(PaintTarget paintTarget)(Code)
Sets the current PaintTarget.
Parameters:
  paintTarget - the new PaintTarget.



setPaintTransform
public void setPaintTransform(Transform paintTransform)(Code)
Sets the current paintTransform.
Parameters:
  paintTransform - the new paintTransform.



setPrimitiveTile
public void setPrimitiveTile(Tile primitiveTile)(Code)
Sets the primitive tile, which is intersected with the rendering tile.
Parameters:
  primitiveTile - if null, this sets the primitiveTile to the same valueas the renderingTile



setRenderingQuality
public void setRenderingQuality(boolean isHigh)(Code)
Turns the high quality rendering on or off.
Parameters:
  isHigh - true if the rendering quality should be high.



setRenderingTile
public void setRenderingTile(Tile renderingTile)(Code)
Sets the current rendering tile to the rectangle specified by the given tile. IMPORTANT NOTE: the tile is _not_ subject to the RenderGraphics' transform. The clip is defined in device coordinates.
Parameters:
  renderingTile - the Tile defining the clipping area. May be null.



setTransform
public void setTransform(Transform newTransform)(Code)
Setting the transform to null is equivalent to setting it to identity.
Parameters:
  newTransform - the new value of the transform. This value is copied, not referenced by the context.



setTransform
static boolean setTransform(Transform newTransform, Transform6 transform)(Code)
Transfers the transform values from the input Perseus Transform the the input Pisces Transform6.
Parameters:
  newTransform - the Perseus transform to transfer.
Parameters:
  outTransform - the Pisces transform destination. true if the transform was indeed different.



Fields inherited from com.sun.perseus.j2d.RenderContext
final protected static int CAP_BUTT_IMPL(Code)(Java Doc)
final protected static int CAP_ROUND_IMPL(Code)(Java Doc)
final protected static int CAP_SQUARE_IMPL(Code)(Java Doc)
final protected static int DISPLAY_MASK(Code)(Java Doc)
final protected static int FILL_OPACITY_MASK(Code)(Java Doc)
final protected static int FILL_RULE_MASK(Code)(Java Doc)
final protected static int FONT_STYLE_ITALIC_IMPL(Code)(Java Doc)
final protected static int FONT_STYLE_MASK(Code)(Java Doc)
final protected static int FONT_STYLE_NORMAL_IMPL(Code)(Java Doc)
final protected static int FONT_STYLE_OBLIQUE_IMPL(Code)(Java Doc)
final protected static int FONT_WEIGHT_100_IMPL(Code)(Java Doc)
final protected static int FONT_WEIGHT_200_IMPL(Code)(Java Doc)
final protected static int FONT_WEIGHT_300_IMPL(Code)(Java Doc)
final protected static int FONT_WEIGHT_400_IMPL(Code)(Java Doc)
final protected static int FONT_WEIGHT_500_IMPL(Code)(Java Doc)
final protected static int FONT_WEIGHT_600_IMPL(Code)(Java Doc)
final protected static int FONT_WEIGHT_700_IMPL(Code)(Java Doc)
final protected static int FONT_WEIGHT_800_IMPL(Code)(Java Doc)
final protected static int FONT_WEIGHT_900_IMPL(Code)(Java Doc)
final protected static int FONT_WEIGHT_MASK(Code)(Java Doc)
final protected static int INITIAL_DISPLAY_IMPL(Code)(Java Doc)
final protected static int INITIAL_FILL_OPACITY_IMPL(Code)(Java Doc)
final protected static int INITIAL_FILL_RULE_IMPL(Code)(Java Doc)
final protected static int INITIAL_FONT_STYLE_IMPL(Code)(Java Doc)
final protected static int INITIAL_FONT_WEIGHT_IMPL(Code)(Java Doc)
final protected static int INITIAL_OPACITY_IMPL(Code)(Java Doc)
final protected static int INITIAL_PACK(Code)(Java Doc)
final protected static int INITIAL_PACK2(Code)(Java Doc)
protected static int[] INITIAL_STROKE_DASH_ARRAY_IMPL(Code)(Java Doc)
protected static int INITIAL_STROKE_DASH_OFFSET_IMPL(Code)(Java Doc)
final protected static int INITIAL_STROKE_LINE_CAP_IMPL(Code)(Java Doc)
final protected static int INITIAL_STROKE_LINE_JOIN_IMPL(Code)(Java Doc)
protected static int INITIAL_STROKE_MITER_LIMIT_IMPL(Code)(Java Doc)
final protected static int INITIAL_STROKE_OPACITY_IMPL(Code)(Java Doc)
protected static int INITIAL_STROKE_WIDTH_IMPL(Code)(Java Doc)
final protected static int INITIAL_TEXT_ANCHOR_IMPL(Code)(Java Doc)
final protected static int INITIAL_VISIBILITY_IMPL(Code)(Java Doc)
final protected static int JOIN_BEVEL_IMPL(Code)(Java Doc)
final protected static int JOIN_MITER_IMPL(Code)(Java Doc)
final protected static int JOIN_ROUND_IMPL(Code)(Java Doc)
final protected static int OPACITY_MASK(Code)(Java Doc)
final protected static int STROKE_LINE_CAP_MASK(Code)(Java Doc)
final protected static int STROKE_LINE_JOIN_MASK(Code)(Java Doc)
final protected static int STROKE_OPACITY_MASK(Code)(Java Doc)
final protected static int TEXT_ANCHOR_END_IMPL(Code)(Java Doc)
final protected static int TEXT_ANCHOR_MASK(Code)(Java Doc)
final protected static int TEXT_ANCHOR_MIDDLE_IMPL(Code)(Java Doc)
final protected static int TEXT_ANCHOR_START_IMPL(Code)(Java Doc)
final protected static int VISIBILITY_MASK(Code)(Java Doc)
protected RGB color(Code)(Java Doc)
protected PaintServer fill(Code)(Java Doc)
protected String[] fontFamily(Code)(Java Doc)
protected float fontSize(Code)(Java Doc)
protected int pack(Code)(Java Doc)
protected int pack2(Code)(Java Doc)
protected PaintServer stroke(Code)(Java Doc)
protected int[] strokeDashArray(Code)(Java Doc)
protected int strokeDashOffset(Code)(Java Doc)
protected int strokeMiterLimit(Code)(Java Doc)
protected int strokeWidth(Code)(Java Doc)

Methods inherited from com.sun.perseus.j2d.RenderContext
int computeStrokeDashOffset()(Code)(Java Doc)
public RGB getColor()(Code)(Java Doc)
public boolean getDisplay()(Code)(Java Doc)
public PaintServer getFill()(Code)(Java Doc)
public float getFillOpacity()(Code)(Java Doc)
int getFillOpacityImpl()(Code)(Java Doc)
public int getFillRule()(Code)(Java Doc)
public String[] getFontFamily()(Code)(Java Doc)
public float getFontSize()(Code)(Java Doc)
public int getFontStyle()(Code)(Java Doc)
public int getFontWeight()(Code)(Java Doc)
public float getOpacity()(Code)(Java Doc)
int getOpacityImpl()(Code)(Java Doc)
public PaintServer getStroke()(Code)(Java Doc)
public float[] getStrokeDashArray()(Code)(Java Doc)
public float getStrokeDashOffset()(Code)(Java Doc)
public int getStrokeLineCap()(Code)(Java Doc)
public int getStrokeLineJoin()(Code)(Java Doc)
public float getStrokeMiterLimit()(Code)(Java Doc)
public float getStrokeOpacity()(Code)(Java Doc)
public int getStrokeOpacityImpl()(Code)(Java Doc)
public float getStrokeWidth()(Code)(Java Doc)
public int getTextAnchor()(Code)(Java Doc)
public boolean getVisibility()(Code)(Java Doc)
public void reset()(Code)(Java Doc)
public void restore(RenderContext rcs)(Code)(Java Doc)
public RenderContext save()(Code)(Java Doc)
public void setColor(RGB newColor)(Code)(Java Doc)
public void setDisplay(boolean newDisplay)(Code)(Java Doc)
public void setFill(PaintServer newFill)(Code)(Java Doc)
public void setFillOpacity(float newFillOpacity)(Code)(Java Doc)
public void setFillRule(int newFillRule)(Code)(Java Doc)
public void setFontFamily(String[] newFontFamily)(Code)(Java Doc)
public void setFontSize(float newFontSize)(Code)(Java Doc)
public void setFontStyle(int newFontStyle)(Code)(Java Doc)
public void setFontWeight(int newFontWeight)(Code)(Java Doc)
public void setOpacity(float newOpacity)(Code)(Java Doc)
public void setStroke(PaintServer newStroke)(Code)(Java Doc)
public void setStrokeDashArray(float[] newStrokeDashArray)(Code)(Java Doc)
public void setStrokeDashOffset(float newStrokeDashOffset)(Code)(Java Doc)
public void setStrokeLineCap(int newStrokeLineCap)(Code)(Java Doc)
public void setStrokeLineJoin(int newStrokeLineJoin)(Code)(Java Doc)
public void setStrokeMiterLimit(float newStrokeMiterLimit)(Code)(Java Doc)
public void setStrokeOpacity(float newStrokeOpacity)(Code)(Java Doc)
public void setStrokeWidth(float newStrokeWidth)(Code)(Java Doc)
public void setTextAnchor(int newTextAnchor)(Code)(Java Doc)
public void setVisibility(boolean newVisibility)(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.