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


com.sun.perseus.model.GraphicsNode

All known Subclasses:   com.sun.perseus.model.CompositeGraphicsNode,
GraphicsNode
public interface GraphicsNode extends DecoratedNode,GraphicsProperties(Code)
GraphicsNode is the interface that all ModelNode (see com.sun.perseus.model.ModelNode ModelNode ) which correspond to graphical content implement.
GraphicsNodes have a notion of visibility and display. If a node is not displayed, then it does not paint and none of its children (if present) are painted. If a node is invisible, then it does no paint itself, but it paints it's children. In other words, it a node is invisible, its chidren may be visible (depending on the children's own visibility setting), but if a node is not displayed, then its children are not displayed either, no matter what their own display setting is. This corresponds to the CSS 2 concept of visibility and display.
IMPORTANT NOTE: Setting a property on a GraphicsNode automatically sets the inherited and color relative flags to false.
See Also:   ModelNode
version:
   $Id: GraphicsNode.java,v 1.5 2006/06/29 10:47:31 ln156897 Exp $


Field Summary
 intDEFAULT_COLOR_RELATIVE
    
 intDEFAULT_INHERITANCE
    
 intNUMBER_OF_PROPERTIES
    
 intPROPERTY_COLOR
     The color property controls the 'current color'.
 intPROPERTY_DISPLAY
    
 intPROPERTY_FILL
    
 intPROPERTY_FILL_OPACITY
     Controls the opacity used in a fill operation.
 intPROPERTY_FILL_RULE
     The fill rule property controls how the interior of shapes is computed.
 intPROPERTY_OPACITY
     Controls the opacity used in blending the offscreen image into the current background.
 intPROPERTY_STROKE
    
 intPROPERTY_STROKE_DASH_ARRAY
     Array defining the stroke's dash pattern.
 intPROPERTY_STROKE_DASH_OFFSET
    
 intPROPERTY_STROKE_LINE_CAP
     The stroke line cap property defines the style of line caps, i.e., the style of the end and begining of line strokes.
 intPROPERTY_STROKE_LINE_JOIN
     The stroke line join property defines the style of miter, i.e., the style of elbows between segments.
 intPROPERTY_STROKE_MITER_LIMIT
     Provides a way to limit the extent of 'spikes' out of angle elbows.
 intPROPERTY_STROKE_OPACITY
     Controls the opacity used in a stroking operation.
 intPROPERTY_STROKE_WIDTH
     The stroke width property controls how wide the stroke is.
 intPROPERTY_VISIBILITY
     Controls whether a node is visible or not.


Method Summary
 booleanisColorRelative(int propertyIndex)
    
Parameters:
  propertyIndex - index of the property to check true if the input property is color relative.
 booleanisColorRelativeProperty(int propertyIndex)
     Returns true if the input property can be color-relative.
Parameters:
  propertyIndex - the index of the property which may be color-relative.
 voidsetColorRelative(int propertyIndex, boolean isColorRelative)
     Sets the input property as a color-relative property.

Field Detail
DEFAULT_COLOR_RELATIVE
int DEFAULT_COLOR_RELATIVE(Code)
Default color relative (Y=yes, N=no):
 - N fill
 - N stroke
 - N color
 - N fill rule
 - N stroke width
 - N line join
 - N line cap
 - N miter limit
 - N dash array
 - N dash offset
 - N display
 - N visibility
 - N fill opacity
 - N stroke opacity
 - N opacity
 



DEFAULT_INHERITANCE
int DEFAULT_INHERITANCE(Code)
Default inheritance setting (Y=yes, N=no):
 - Y fill
 - Y stroke
 - Y color
 - Y fill rule
 - Y stroke width
 - Y line join
 - Y line cap
 - Y miter limit
 - Y dash array
 - Y dash offset
 - N display
 - Y visibility
 - Y fill opacity
 - Y stroke opacity
 - N opacity
 



NUMBER_OF_PROPERTIES
int NUMBER_OF_PROPERTIES(Code)
Number of properties in a GraphicsNode



PROPERTY_COLOR
int PROPERTY_COLOR(Code)
The color property controls the 'current color'. The current color defines the value of the fill or stroke properties when they are 'color relative'.
See Also:   GraphicsNode.setColorRelative
See Also:   com.sun.perseus.j2d.GraphicsProperties.setColor



PROPERTY_DISPLAY
int PROPERTY_DISPLAY(Code)
Controls the offset in the dash array, in user space
See Also:   com.sun.perseus.j2d.GraphicsProperties.setDisplay



PROPERTY_FILL
int PROPERTY_FILL(Code)
The fill property controls the color of the fill operation
See Also:   com.sun.perseus.j2d.GraphicsProperties.setFill



PROPERTY_FILL_OPACITY
int PROPERTY_FILL_OPACITY(Code)
Controls the opacity used in a fill operation.
See Also:   com.sun.perseus.j2d.GraphicsProperties.setFillOpacity



PROPERTY_FILL_RULE
int PROPERTY_FILL_RULE(Code)
The fill rule property controls how the interior of shapes is computed.
See Also:   com.sun.perseus.j2d.GraphicsProperties.WIND_EVEN_ODD
See Also:   com.sun.perseus.j2d.GraphicsProperties.WIND_NON_ZERO
See Also:   com.sun.perseus.j2d.GraphicsProperties.setFillRule



PROPERTY_OPACITY
int PROPERTY_OPACITY(Code)
Controls the opacity used in blending the offscreen image into the current background.
See Also:   com.sun.perseus.j2d.GraphicsProperties.setOpacity



PROPERTY_STROKE
int PROPERTY_STROKE(Code)
The stroke property controls the color of the stroke
See Also:   com.sun.perseus.j2d.GraphicsProperties.setStroke



PROPERTY_STROKE_DASH_ARRAY
int PROPERTY_STROKE_DASH_ARRAY(Code)
Array defining the stroke's dash pattern.
See Also:   com.sun.perseus.j2d.GraphicsProperties.setStrokeDashArray



PROPERTY_STROKE_DASH_OFFSET
int PROPERTY_STROKE_DASH_OFFSET(Code)
Offset in the stroke dash array
See Also:   GraphicsNode.PROPERTY_STROKE_DASH_ARRAY
See Also:   com.sun.perseus.j2d.GraphicsProperties.setStrokeDashOffset



PROPERTY_STROKE_LINE_CAP
int PROPERTY_STROKE_LINE_CAP(Code)
The stroke line cap property defines the style of line caps, i.e., the style of the end and begining of line strokes.
See Also:   com.sun.perseus.j2d.GraphicsProperties.CAP_BUTT
See Also:   com.sun.perseus.j2d.GraphicsProperties.CAP_ROUND
See Also:   com.sun.perseus.j2d.GraphicsProperties.CAP_SQUARE
See Also:   com.sun.perseus.j2d.GraphicsProperties.setStrokeLineCap



PROPERTY_STROKE_LINE_JOIN
int PROPERTY_STROKE_LINE_JOIN(Code)
The stroke line join property defines the style of miter, i.e., the style of elbows between segments.
See Also:   com.sun.perseus.j2d.GraphicsProperties.JOIN_MITER
See Also:   com.sun.perseus.j2d.GraphicsProperties.JOIN_ROUND
See Also:   com.sun.perseus.j2d.GraphicsProperties.JOIN_BEVEL
See Also:   com.sun.perseus.j2d.GraphicsProperties.setStrokeLineJoin



PROPERTY_STROKE_MITER_LIMIT
int PROPERTY_STROKE_MITER_LIMIT(Code)
Provides a way to limit the extent of 'spikes' out of angle elbows.
See Also:   com.sun.perseus.j2d.GraphicsProperties.setStrokeMiterLimit



PROPERTY_STROKE_OPACITY
int PROPERTY_STROKE_OPACITY(Code)
Controls the opacity used in a stroking operation.
See Also:   com.sun.perseus.j2d.GraphicsProperties.setStrokeOpacity



PROPERTY_STROKE_WIDTH
int PROPERTY_STROKE_WIDTH(Code)
The stroke width property controls how wide the stroke is.
See Also:   com.sun.perseus.j2d.GraphicsProperties.setStrokeWidth



PROPERTY_VISIBILITY
int PROPERTY_VISIBILITY(Code)
Controls whether a node is visible or not. Children of a node which is not visible can still be visible.
See Also:   com.sun.perseus.j2d.GraphicsProperties.setVisibility





Method Detail
isColorRelative
boolean isColorRelative(int propertyIndex)(Code)

Parameters:
  propertyIndex - index of the property to check true if the input property is color relative. Falseotherwise
See Also:   GraphicsNode.setColorRelative



isColorRelativeProperty
boolean isColorRelativeProperty(int propertyIndex)(Code)
Returns true if the input property can be color-relative.
Parameters:
  propertyIndex - the index of the property which may be color-relative. true if the input property can be color relative. False otherwise.



setColorRelative
void setColorRelative(int propertyIndex, boolean isColorRelative)(Code)
Sets the input property as a color-relative property. There are two color-relative properties on a GraphicsNode: fill and stroke. For all other properties, setting the property as color relative should not have effect. For fill and stroke, setting them as color relative means that the color property should be used for the corresponding fill or draw operations.
Parameters:
  propertyIndex - index of the property
Parameters:
  isColorRelative - the new state fot the property's color relativevalue.



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