Java Doc for TextSample.java in  » IDE-Netbeans » mobility » example » chooser » 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 » IDE Netbeans » mobility » example.chooser 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


example.chooser.TextSample

TextSample
public class TextSample extends Canvas (Code)
A Text sample. This screen can be used to display a Sample string. using the Face, Style, Size and foreground and background color.


Field Summary
 intbgcolor
    
final static  intborder
     The width of the border.
 intface
    
 intfgcolor
    
 intsize
    
 intstyle
    
 Stringtext
    

Constructor Summary
public  TextSample()
     Create a new TextSample canvas.

Method Summary
public  intgetBackgroundColor()
     Get the color of font currently being displayed.
public  intgetFace()
     Get the face of font currently being displayed.
public  intgetForegroundColor()
     Get the color of font currently being displayed.
public  intgetSize()
     Get the size of font currently being displayed.
public  intgetStyle()
     Get the style of font currently being displayed.
protected  voidpaint(Graphics g)
     Paint the canvas with the current color and controls to change it.
public  voidsetBackgroundColor(int color)
     Set the Color of font to display.
public  voidsetFace(int face)
     Set the Face of font to display.
public  voidsetForegroundColor(int color)
     Set the Color of font to display.
public  voidsetSize(int size)
     Set the Size of font to display.
public  voidsetStyle(int style)
     Set the Style of font to display.

Field Detail
bgcolor
int bgcolor(Code)



border
final static int border(Code)
The width of the border.



face
int face(Code)



fgcolor
int fgcolor(Code)



size
int size(Code)



style
int style(Code)



text
String text(Code)
The sample text




Constructor Detail
TextSample
public TextSample()(Code)
Create a new TextSample canvas.




Method Detail
getBackgroundColor
public int getBackgroundColor()(Code)
Get the color of font currently being displayed. the background color



getFace
public int getFace()(Code)
Get the face of font currently being displayed. the current font face
See Also:   Font.getFace



getForegroundColor
public int getForegroundColor()(Code)
Get the color of font currently being displayed. the foreground color



getSize
public int getSize()(Code)
Get the size of font currently being displayed. The current size of font.
See Also:   Font.getSize



getStyle
public int getStyle()(Code)
Get the style of font currently being displayed. the font style
See Also:   Font.getStyle



paint
protected void paint(Graphics g)(Code)
Paint the canvas with the current color and controls to change it.
Parameters:
  g - the graphics context to which to paint



setBackgroundColor
public void setBackgroundColor(int color)(Code)
Set the Color of font to display.
Parameters:
  color - a new background color



setFace
public void setFace(int face)(Code)
Set the Face of font to display.
Parameters:
  face - to which to set the font
See Also:   Font.getFace



setForegroundColor
public void setForegroundColor(int color)(Code)
Set the Color of font to display.
Parameters:
  color - a new foreground color



setSize
public void setSize(int size)(Code)
Set the Size of font to display.
Parameters:
  size - to which the font should be set
See Also:   Font.getSize



setStyle
public void setStyle(int style)(Code)
Set the Style of font to display.
Parameters:
  style - to which to set the font
See Also:   Font.getStyle



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