Java Doc for RenderContext.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

All known Subclasses:   com.sun.perseus.j2d.PiscesRenderGraphics,
RenderContext
public class RenderContext implements TextRenderingProperties(Code)
com.sun.perseus.model.ModelNode ModelNode are rendered into a RenderGraphics RenderGraphics which extends the RenderContext class. A RenderContext captures the current state of the properties used in painting operations. When a ModelNode tree is rendered, the RenderGraphics is passed down the tree to children nodes as they are painted. This provides the solution for computing CSS inherited values: if a ModelNode inherits one of its properties, it will simply use the one currently set in the RenderContext.
Initially (i.e., before any painting operation happens), the RenderContext holds values which correspond to the CSS 2 concept of initial values.
At any time during a rendering operation, the RenderContext holds values which correspond to the CSS 2 computed values. Note that in addition to properties that correspond to CSS2 properties, the RenderContext also keeps an AffineTransform which is not a CSS2 property. The transform represents the current user space to device space transformation.
See Also:   com.sun.perseus.model.ModelNode
See Also:   com.sun.perseus.model.ElementNode.paint
version:
   $Id: RenderContext.java,v 1.5 2006/04/21 06:35:38 st125089 Exp $


Field Summary
final protected static  intCAP_BUTT_IMPL
    
final protected static  intCAP_ROUND_IMPL
    
final protected static  intCAP_SQUARE_IMPL
    
final protected static  intDISPLAY_MASK
    
final protected static  intFILL_OPACITY_MASK
    
final protected static  intFILL_RULE_MASK
    
final protected static  intFONT_STYLE_ITALIC_IMPL
    
final protected static  intFONT_STYLE_MASK
    
final protected static  intFONT_STYLE_NORMAL_IMPL
    
final protected static  intFONT_STYLE_OBLIQUE_IMPL
    
final protected static  intFONT_WEIGHT_100_IMPL
    
final protected static  intFONT_WEIGHT_200_IMPL
    
final protected static  intFONT_WEIGHT_300_IMPL
    
final protected static  intFONT_WEIGHT_400_IMPL
    
final protected static  intFONT_WEIGHT_500_IMPL
    
final protected static  intFONT_WEIGHT_600_IMPL
    
final protected static  intFONT_WEIGHT_700_IMPL
    
final protected static  intFONT_WEIGHT_800_IMPL
    
final protected static  intFONT_WEIGHT_900_IMPL
    
final protected static  intFONT_WEIGHT_MASK
    
final protected static  intINITIAL_DISPLAY_IMPL
    
final protected static  intINITIAL_FILL_OPACITY_IMPL
    
final protected static  intINITIAL_FILL_RULE_IMPL
    
final protected static  intINITIAL_FONT_STYLE_IMPL
    
final protected static  intINITIAL_FONT_WEIGHT_IMPL
    
final protected static  intINITIAL_OPACITY_IMPL
    
final protected static  intINITIAL_PACK
    
final protected static  intINITIAL_PACK2
    
protected static  int[]INITIAL_STROKE_DASH_ARRAY_IMPL
    
protected static  intINITIAL_STROKE_DASH_OFFSET_IMPL
    
final protected static  intINITIAL_STROKE_LINE_CAP_IMPL
    
final protected static  intINITIAL_STROKE_LINE_JOIN_IMPL
    
protected static  intINITIAL_STROKE_MITER_LIMIT_IMPL
    
final protected static  intINITIAL_STROKE_OPACITY_IMPL
    
protected static  intINITIAL_STROKE_WIDTH_IMPL
    
final protected static  intINITIAL_TEXT_ANCHOR_IMPL
    
final protected static  intINITIAL_VISIBILITY_IMPL
    
final protected static  intJOIN_BEVEL_IMPL
    
final protected static  intJOIN_MITER_IMPL
    
final protected static  intJOIN_ROUND_IMPL
    
final protected static  intOPACITY_MASK
    
final protected static  intSTROKE_LINE_CAP_MASK
    
final protected static  intSTROKE_LINE_JOIN_MASK
    
final protected static  intSTROKE_OPACITY_MASK
    
final protected static  intTEXT_ANCHOR_END_IMPL
    
final protected static  intTEXT_ANCHOR_MASK
    
final protected static  intTEXT_ANCHOR_MIDDLE_IMPL
    
final protected static  intTEXT_ANCHOR_START_IMPL
    
final protected static  intVISIBILITY_MASK
    
protected  RGBcolor
     Context Color.
protected  PaintServerfill
    
protected  String[]fontFamily
     Controls the current font family.
protected  floatfontSize
    
protected  intpack
    
protected  intpack2
    
protected  PaintServerstroke
    
protected  int[]strokeDashArray
     Controls the strokeDash pattern for stroke operations.
protected  intstrokeDashOffset
     Controls the offset in the dash array for stroke operations.
protected  intstrokeMiterLimit
     Controls the miter limit for stroke operations.
protected  intstrokeWidth
     Controls the width of the stroke.

Constructor Summary
public  RenderContext()
    
public  RenderContext(RenderContext rcs)
     Copy constructor
Parameters:
  rcs - the RenderContext to copy values from.

Method Summary
 intcomputeStrokeDashOffset()
    
public  RGBgetColor()
    
public  booleangetDisplay()
    
public  PaintServergetFill()
    
public  floatgetFillOpacity()
    
 intgetFillOpacityImpl()
    
public  intgetFillRule()
    
public  String[]getFontFamily()
    
public  floatgetFontSize()
    
public  intgetFontStyle()
    
public  intgetFontWeight()
    
public  floatgetOpacity()
    
 intgetOpacityImpl()
    
public  PaintServergetStroke()
    
public  float[]getStrokeDashArray()
    
public  floatgetStrokeDashOffset()
    
public  intgetStrokeLineCap()
    
public  intgetStrokeLineJoin()
    
public  floatgetStrokeMiterLimit()
    
public  floatgetStrokeOpacity()
    
public  intgetStrokeOpacityImpl()
    
public  floatgetStrokeWidth()
    
public  intgetTextAnchor()
    
public  booleangetVisibility()
    
public  voidreset()
    
public  voidrestore(RenderContext rcs)
    
Parameters:
  rcs - the RenderContext state to restore.
public  RenderContextsave()
    
public  voidsetColor(RGB newColor)
    
public  voidsetDisplay(boolean newDisplay)
    
public  voidsetFill(PaintServer newFill)
    
public  voidsetFillOpacity(float newFillOpacity)
    
Parameters:
  newFillOpacity - the new value for the fill opacity property.
public  voidsetFillRule(int newFillRule)
    
public  voidsetFontFamily(String[] newFontFamily)
    
public  voidsetFontSize(float newFontSize)
    
public  voidsetFontStyle(int newFontStyle)
    
public  voidsetFontWeight(int newFontWeight)
    
public  voidsetOpacity(float newOpacity)
    
Parameters:
  newOpacity - the new value for the opacity property.
public  voidsetStroke(PaintServer newStroke)
    
public  voidsetStrokeDashArray(float[] newStrokeDashArray)
    
public  voidsetStrokeDashOffset(float newStrokeDashOffset)
    
public  voidsetStrokeLineCap(int newStrokeLineCap)
    
public  voidsetStrokeLineJoin(int newStrokeLineJoin)
    
public  voidsetStrokeMiterLimit(float newStrokeMiterLimit)
    
public  voidsetStrokeOpacity(float newStrokeOpacity)
    
public  voidsetStrokeWidth(float newStrokeWidth)
    
public  voidsetTextAnchor(int newTextAnchor)
    
public  voidsetVisibility(boolean newVisibility)
    

Field Detail
CAP_BUTT_IMPL
final protected static int CAP_BUTT_IMPL(Code)



CAP_ROUND_IMPL
final protected static int CAP_ROUND_IMPL(Code)



CAP_SQUARE_IMPL
final protected static int CAP_SQUARE_IMPL(Code)



DISPLAY_MASK
final protected static int DISPLAY_MASK(Code)



FILL_OPACITY_MASK
final protected static int FILL_OPACITY_MASK(Code)



FILL_RULE_MASK
final protected static int FILL_RULE_MASK(Code)



FONT_STYLE_ITALIC_IMPL
final protected static int FONT_STYLE_ITALIC_IMPL(Code)



FONT_STYLE_MASK
final protected static int FONT_STYLE_MASK(Code)



FONT_STYLE_NORMAL_IMPL
final protected static int FONT_STYLE_NORMAL_IMPL(Code)



FONT_STYLE_OBLIQUE_IMPL
final protected static int FONT_STYLE_OBLIQUE_IMPL(Code)



FONT_WEIGHT_100_IMPL
final protected static int FONT_WEIGHT_100_IMPL(Code)



FONT_WEIGHT_200_IMPL
final protected static int FONT_WEIGHT_200_IMPL(Code)



FONT_WEIGHT_300_IMPL
final protected static int FONT_WEIGHT_300_IMPL(Code)



FONT_WEIGHT_400_IMPL
final protected static int FONT_WEIGHT_400_IMPL(Code)



FONT_WEIGHT_500_IMPL
final protected static int FONT_WEIGHT_500_IMPL(Code)



FONT_WEIGHT_600_IMPL
final protected static int FONT_WEIGHT_600_IMPL(Code)



FONT_WEIGHT_700_IMPL
final protected static int FONT_WEIGHT_700_IMPL(Code)



FONT_WEIGHT_800_IMPL
final protected static int FONT_WEIGHT_800_IMPL(Code)



FONT_WEIGHT_900_IMPL
final protected static int FONT_WEIGHT_900_IMPL(Code)



FONT_WEIGHT_MASK
final protected static int FONT_WEIGHT_MASK(Code)



INITIAL_DISPLAY_IMPL
final protected static int INITIAL_DISPLAY_IMPL(Code)



INITIAL_FILL_OPACITY_IMPL
final protected static int INITIAL_FILL_OPACITY_IMPL(Code)



INITIAL_FILL_RULE_IMPL
final protected static int INITIAL_FILL_RULE_IMPL(Code)



INITIAL_FONT_STYLE_IMPL
final protected static int INITIAL_FONT_STYLE_IMPL(Code)



INITIAL_FONT_WEIGHT_IMPL
final protected static int INITIAL_FONT_WEIGHT_IMPL(Code)



INITIAL_OPACITY_IMPL
final protected static int INITIAL_OPACITY_IMPL(Code)



INITIAL_PACK
final protected static int INITIAL_PACK(Code)



INITIAL_PACK2
final protected static int INITIAL_PACK2(Code)



INITIAL_STROKE_DASH_ARRAY_IMPL
protected static int[] INITIAL_STROKE_DASH_ARRAY_IMPL(Code)
Default dash array



INITIAL_STROKE_DASH_OFFSET_IMPL
protected static int INITIAL_STROKE_DASH_OFFSET_IMPL(Code)
Default dash offset



INITIAL_STROKE_LINE_CAP_IMPL
final protected static int INITIAL_STROKE_LINE_CAP_IMPL(Code)



INITIAL_STROKE_LINE_JOIN_IMPL
final protected static int INITIAL_STROKE_LINE_JOIN_IMPL(Code)



INITIAL_STROKE_MITER_LIMIT_IMPL
protected static int INITIAL_STROKE_MITER_LIMIT_IMPL(Code)
Default miter limit



INITIAL_STROKE_OPACITY_IMPL
final protected static int INITIAL_STROKE_OPACITY_IMPL(Code)



INITIAL_STROKE_WIDTH_IMPL
protected static int INITIAL_STROKE_WIDTH_IMPL(Code)
Default stroke width



INITIAL_TEXT_ANCHOR_IMPL
final protected static int INITIAL_TEXT_ANCHOR_IMPL(Code)



INITIAL_VISIBILITY_IMPL
final protected static int INITIAL_VISIBILITY_IMPL(Code)



JOIN_BEVEL_IMPL
final protected static int JOIN_BEVEL_IMPL(Code)



JOIN_MITER_IMPL
final protected static int JOIN_MITER_IMPL(Code)



JOIN_ROUND_IMPL
final protected static int JOIN_ROUND_IMPL(Code)



OPACITY_MASK
final protected static int OPACITY_MASK(Code)



STROKE_LINE_CAP_MASK
final protected static int STROKE_LINE_CAP_MASK(Code)



STROKE_LINE_JOIN_MASK
final protected static int STROKE_LINE_JOIN_MASK(Code)



STROKE_OPACITY_MASK
final protected static int STROKE_OPACITY_MASK(Code)



TEXT_ANCHOR_END_IMPL
final protected static int TEXT_ANCHOR_END_IMPL(Code)



TEXT_ANCHOR_MASK
final protected static int TEXT_ANCHOR_MASK(Code)



TEXT_ANCHOR_MIDDLE_IMPL
final protected static int TEXT_ANCHOR_MIDDLE_IMPL(Code)



TEXT_ANCHOR_START_IMPL
final protected static int TEXT_ANCHOR_START_IMPL(Code)



VISIBILITY_MASK
final protected static int VISIBILITY_MASK(Code)



color
protected RGB color(Code)
Context Color. Corresponds to the concept of 'current color' in CSS



fill
protected PaintServer fill(Code)
Color used for fill operations



fontFamily
protected String[] fontFamily(Code)
Controls the current font family. The font family is a list, which means that a set of fonts may be used to render a given text string. The fonts are queried in order to check which ones can render characters in the drawn text.



fontSize
protected float fontSize(Code)
Controls the current font size



pack
protected int pack(Code)



pack2
protected int pack2(Code)



stroke
protected PaintServer stroke(Code)
Color used for fill operations



strokeDashArray
protected int[] strokeDashArray(Code)
Controls the strokeDash pattern for stroke operations. If the array is null, a solid line is used



strokeDashOffset
protected int strokeDashOffset(Code)
Controls the offset in the dash array for stroke operations. 15.16 format.



strokeMiterLimit
protected int strokeMiterLimit(Code)
Controls the miter limit for stroke operations. 15.16 format.



strokeWidth
protected int strokeWidth(Code)
Controls the width of the stroke. 15.16 format.




Constructor Detail
RenderContext
public RenderContext()(Code)
Default constructor



RenderContext
public RenderContext(RenderContext rcs)(Code)
Copy constructor
Parameters:
  rcs - the RenderContext to copy values from. Shouldnot be null.




Method Detail
computeStrokeDashOffset
int computeStrokeDashOffset()(Code)
Implemnetation: Handles negative strokeDashOffset a positive strokeDashOffset.



getColor
public RGB getColor()(Code)
the context's color property value



getDisplay
public boolean getDisplay()(Code)
the context' display property value



getFill
public PaintServer getFill()(Code)
the context's fill property value



getFillOpacity
public float getFillOpacity()(Code)
the context's fill opacity property value



getFillOpacityImpl
int getFillOpacityImpl()(Code)
the context's fill opacity property value



getFillRule
public int getFillRule()(Code)
the context's fill rule property value



getFontFamily
public String[] getFontFamily()(Code)
the context's set of font families



getFontSize
public float getFontSize()(Code)
the context's font size property



getFontStyle
public int getFontStyle()(Code)
the context's font style property value



getFontWeight
public int getFontWeight()(Code)
the current context's font weight property



getOpacity
public float getOpacity()(Code)
the context's opacity property value



getOpacityImpl
int getOpacityImpl()(Code)
the context's opacity property value



getStroke
public PaintServer getStroke()(Code)
the context's stroke property value



getStrokeDashArray
public float[] getStrokeDashArray()(Code)
the context's stroke dash array property value



getStrokeDashOffset
public float getStrokeDashOffset()(Code)
the context's stroke dash offset property



getStrokeLineCap
public int getStrokeLineCap()(Code)
the context's stroke line cap property value



getStrokeLineJoin
public int getStrokeLineJoin()(Code)
the context's stroke line join property value



getStrokeMiterLimit
public float getStrokeMiterLimit()(Code)
the context's stroke miter limit property value



getStrokeOpacity
public float getStrokeOpacity()(Code)
the context's stroke opacity property value



getStrokeOpacityImpl
public int getStrokeOpacityImpl()(Code)
the context's stroke opacity property value



getStrokeWidth
public float getStrokeWidth()(Code)
the context's stroke width property value



getTextAnchor
public int getTextAnchor()(Code)
the text anchor property



getVisibility
public boolean getVisibility()(Code)
the context's visibility



reset
public void reset()(Code)
Resets context to initial values



restore
public void restore(RenderContext rcs)(Code)

Parameters:
  rcs - the RenderContext state to restore. Shouldnot be null.



save
public RenderContext save()(Code)
a copy of this RenderContext



setColor
public void setColor(RGB newColor)(Code)

Parameters:
  newColor - the new value for the color property



setDisplay
public void setDisplay(boolean newDisplay)(Code)

Parameters:
  newDisplay - the new value for the display property



setFill
public void setFill(PaintServer newFill)(Code)

Parameters:
  newFill - the new value for the fill property



setFillOpacity
public void setFillOpacity(float newFillOpacity)(Code)

Parameters:
  newFillOpacity - the new value for the fill opacity property. The input value is clamped to the [0, 1] range.



setFillRule
public void setFillRule(int newFillRule)(Code)

Parameters:
  newFillRule - the new value for the fill rule property



setFontFamily
public void setFontFamily(String[] newFontFamily)(Code)

Parameters:
  newFontFamily - the new set of font families to use for fontmatching.



setFontSize
public void setFontSize(float newFontSize)(Code)

Parameters:
  newFontSize - the new value for the font size property



setFontStyle
public void setFontStyle(int newFontStyle)(Code)

Parameters:
  newFontStyle - the new value for the font style property



setFontWeight
public void setFontWeight(int newFontWeight)(Code)

Parameters:
  newFontWeight - new font weight property value



setOpacity
public void setOpacity(float newOpacity)(Code)

Parameters:
  newOpacity - the new value for the opacity property. The input value is clamped to the [0, 1] range.
Parameters:
  newOpacity - the new opacity value to set



setStroke
public void setStroke(PaintServer newStroke)(Code)

Parameters:
  newStroke - the new value for the stroke property



setStrokeDashArray
public void setStrokeDashArray(float[] newStrokeDashArray)(Code)

Parameters:
  newStrokeDashArray - the new stroke dash array property value



setStrokeDashOffset
public void setStrokeDashOffset(float newStrokeDashOffset)(Code)

Parameters:
  newStrokeDashOffset - the new stroke dash offset property value



setStrokeLineCap
public void setStrokeLineCap(int newStrokeLineCap)(Code)

Parameters:
  newStrokeLineCap - the new stroke line cap property value



setStrokeLineJoin
public void setStrokeLineJoin(int newStrokeLineJoin)(Code)

Parameters:
  newStrokeLineJoin - the new stroke line join property value



setStrokeMiterLimit
public void setStrokeMiterLimit(float newStrokeMiterLimit)(Code)

Parameters:
  newStrokeMiterLimit - the new stroke miter limit property value



setStrokeOpacity
public void setStrokeOpacity(float newStrokeOpacity)(Code)

Parameters:
  newStrokeOpacity - the new value for the stroke opacity property.The input value is clamped to the [0, 1] range.



setStrokeWidth
public void setStrokeWidth(float newStrokeWidth)(Code)

Parameters:
  newStrokeWidth - the new stroke width property value



setTextAnchor
public void setTextAnchor(int newTextAnchor)(Code)

Parameters:
  newTextAnchor - the new text anchor property value



setVisibility
public void setVisibility(boolean newVisibility)(Code)

Parameters:
  newVisibility - the new visibility property value



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.