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


java.lang.Object
   com.sun.midp.chameleon.CGraphicsUtil

CGraphicsUtil
public class CGraphicsUtil (Code)
Chameleon graphics utility class. This class is a collection of commonly used graphics routines. These routines can be used by layer implementations as well as widgets themselves.




Method Summary
public static  voiddraw1ColorBorder(Graphics g, int x, int y, int w, int h, int borderWidth, int borderColor)
     Draws a border of borderWidth at location x, y with dimensions width, height.
public static  voiddraw2ColorBorder(Graphics g, int x, int y, int w, int h, boolean hasFocus, int darkBorder, int lightBorder, int borderWidth)
     Draws a border of borderWidth at location x, y with dimensions width, height.
public static  voiddraw3pcsBackground(Graphics g, int x, int y, int w, Image[] image)
     Draws the button background of the size specified (x, y, w).
public static  voiddraw9pcsBackground(Graphics g, int x, int y, int w, int h, Image[] image)
     Draws the button background of the size specified (x, y, w, h).
public static  voiddrawDropShadowBox(Graphics g, int x, int y, int w, int h, int borderColor, int shadowColor, int color)
     Draws a drop shadow box with a border of border of borderColor, a drop shadow of shadowColor, and a filled area of color at location x, y with dimensions width, height.
public static  voiddrawLeft_RightBorder(Graphics g, Image imgLeft, Image imgRight, int start, int end, int x1, int x2)
     Fill width from start to end with imgTop at y1 coordinate and with imgBottom at y2coordinate.
public static  voiddrawTop_BottomBorder(Graphics g, Image imgTop, Image imgBottom, int start, int end, int y1, int y2)
     Fill width from start to end with imgTop at y1 coordinate and with imgBottom at y2coordinate.
public static  voidpaintBackground(Graphics g, Image bgImage, boolean tileBG, int bgColor, int width, int height)
     Paints the background according to image or color requested.



Method Detail
draw1ColorBorder
public static void draw1ColorBorder(Graphics g, int x, int y, int w, int h, int borderWidth, int borderColor)(Code)
Draws a border of borderWidth at location x, y with dimensions width, height. The border is drawn with one color. IMPL_NOTE: update params
Parameters:
  g - The graphics context to be used for rendering button
Parameters:
  x - The x coordinate of the button's background top left corner
Parameters:
  y - The y coordinate of the button's background top left corner
Parameters:
  w - The width of the button's background
Parameters:
  h - The height of the button's background
Parameters:
  borderWidth - The width of the border line.
Parameters:
  borderColor - The color for the border line.



draw2ColorBorder
public static void draw2ColorBorder(Graphics g, int x, int y, int w, int h, boolean hasFocus, int darkBorder, int lightBorder, int borderWidth)(Code)
Draws a border of borderWidth at location x, y with dimensions width, height. The border is drawn out of two colors. IMPL_NOTE: update params
Parameters:
  g - The graphics context to be used for rendering button
Parameters:
  x - The x coordinate of the button's background top left corner
Parameters:
  y - The y coordinate of the button's background top left corner
Parameters:
  w - The width of the button's background
Parameters:
  h - The height of the button's background
Parameters:
  hasFocus - The flag indicating the item has input focus.
Parameters:
  darkBorder - The color of the dark border.
Parameters:
  lightBorder - The color of the light border.
Parameters:
  borderWidth - The wodth of the border line.



draw3pcsBackground
public static void draw3pcsBackground(Graphics g, int x, int y, int w, Image[] image)(Code)
Draws the button background of the size specified (x, y, w). Different background can be drawn when the ImageItem has and does not have focus. IMPL_NOTE: update params
Parameters:
  g - The graphics context to be used for rendering button
Parameters:
  x - The x coordinate of the button's background top left corner
Parameters:
  y - The y coordinate of the button's background top left corner
Parameters:
  w - The width of the button's background
Parameters:
  image - Array of background images to render.



draw9pcsBackground
public static void draw9pcsBackground(Graphics g, int x, int y, int w, int h, Image[] image)(Code)
Draws the button background of the size specified (x, y, w, h). Different background can be drawn when the ImageItem has and does not have focus. IMPL_NOTE: update params
Parameters:
  g - The graphics context to be used for rendering button
Parameters:
  x - The x coordinate of the button's background top left corner
Parameters:
  y - The y coordinate of the button's background top left corner
Parameters:
  w - The width of the button's background
Parameters:
  h - The height of the button's background
Parameters:
  image - Array of background images to render.



drawDropShadowBox
public static void drawDropShadowBox(Graphics g, int x, int y, int w, int h, int borderColor, int shadowColor, int color)(Code)
Draws a drop shadow box with a border of border of borderColor, a drop shadow of shadowColor, and a filled area of color at location x, y with dimensions width, height. IMPL_NOTE: update params
Parameters:
  g - The graphics context to be used for rendering button
Parameters:
  x - The x coordinate of the button's background top left corner
Parameters:
  y - The y coordinate of the button's background top left corner
Parameters:
  w - The width of the button's background
Parameters:
  h - The height of the button's background
Parameters:
  borderColor - The border color.
Parameters:
  shadowColor - The shadow color.
Parameters:
  color - The drawing color.



drawLeft_RightBorder
public static void drawLeft_RightBorder(Graphics g, Image imgLeft, Image imgRight, int start, int end, int x1, int x2)(Code)
Fill width from start to end with imgTop at y1 coordinate and with imgBottom at y2coordinate.
Parameters:
  g - The Graphics context to paint to
Parameters:
  imgLeft - The left image.
Parameters:
  imgRight - The right image.
Parameters:
  start - start y co-ordinate of ImageItem
Parameters:
  end - end y co-ordinate of ImageItem
Parameters:
  x1 - x co-ordinate of Left ImageItem
Parameters:
  x2 - x co-ordinate of Right ImageItem



drawTop_BottomBorder
public static void drawTop_BottomBorder(Graphics g, Image imgTop, Image imgBottom, int start, int end, int y1, int y2)(Code)
Fill width from start to end with imgTop at y1 coordinate and with imgBottom at y2coordinate.
Parameters:
  g - The Graphics context to paint to
Parameters:
  imgTop - The top image.
Parameters:
  imgBottom - The bottom image.
Parameters:
  start - start x co-ordinate of ImageItem
Parameters:
  end - end x co-ordinate of ImageItem
Parameters:
  y1 - y co-ordinate of Top ImageItem
Parameters:
  y2 - y co-ordinate of Bottom ImageItem



paintBackground
public static void paintBackground(Graphics g, Image bgImage, boolean tileBG, int bgColor, int width, int height)(Code)
Paints the background according to image or color requested.
Parameters:
  g - The graphics context to be used for rendering button.
Parameters:
  bgImage - The background image to render or null.
Parameters:
  tileBG - Flag to indicate the background image should betiled.
Parameters:
  bgColor - The background color to paint if bgImage is null.
Parameters:
  width - The width of the background.
Parameters:
  height - The height of the background.



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.