Java Doc for VTextIcon.java in  » Web-Services » soapui-1.7.5 » com » eviware » soapui » support » components » 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 » Web Services » soapui 1.7.5 » com.eviware.soapui.support.components 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.eviware.soapui.support.components.VTextIcon

VTextIcon
public class VTextIcon implements Icon,PropertyChangeListener(Code)
VTextIcon is an Icon implementation which draws a short string vertically. It's useful for JTabbedPanes with LEFT or RIGHT tabs but can be used in any component which supports Icons, such as JLabel or JButton You can provide a hint to indicate whether to rotate the string to the left or right, or not at all, and it checks to make sure that the rotation is legal for the given string (for example, Chinese/Japanese/Korean scripts have special rules when drawn vertically and should never be rotated)


Field Summary
final static  intDEFAULT_CJK
    
final static  intDEFAULT_MUST_ROTATE
    
final static  intDEFAULT_ROMAN
    
final static  intLEGAL_MUST_ROTATE
    
final static  intLEGAL_ROMAN
    
final static  doubleNINETY_DEGREES
    
final static  intPOSITION_FAR_TOP_RIGHT
    
final static  intPOSITION_NORMAL
    
final static  intPOSITION_TOP_RIGHT
    
final public static  intROTATE_DEFAULT
    
final public static  intROTATE_LEFT
    
final public static  intROTATE_NONE
    
final public static  intROTATE_RIGHT
    
 String[]fCharStrings
    
 int[]fCharWidths
    
 ComponentfComponent
    
 StringfLabel
    
 int[]fPosition
    
 intfRotation
    
 intfWidthfHeightfCharHeightfDescent
    
final static  intkBufferSpace
    
final static  StringsDrawsInFarTopRight
    
final static  StringsDrawsInTopRight
    

Constructor Summary
public  VTextIcon(Component component, String label)
     Creates a VTextIcon for the specified component with the specified label.
public  VTextIcon(Component component, String label, int rotateHint)
     Creates a VTextIcon for the specified component with the specified label.

Method Summary
 voidcalcDimensions()
    
public  intgetIconHeight()
     Returns the icon's height.
public  intgetIconWidth()
     Returns the icon's width.
public  voidpaintIcon(Component c, Graphics g, int x, int y)
     Draw the icon at the specified location.
public  voidpropertyChange(PropertyChangeEvent e)
    
 voidrecalcDimensions()
     Calculates the dimensions.
public  voidsetLabel(String label)
    
public static  intverifyRotation(String label, int rotateHint)
     verifyRotation returns the best rotation for the string (ROTATE_NONE, ROTATE_LEFT, ROTATE_RIGHT) This is public static so you can use it to test a string without creating a VTextIcon from http://www.unicode.org/unicode/reports/tr9/tr9-3.html When setting text using the Arabic script in vertical lines, it is more common to employ a horizontal baseline that is rotated by 90¡ counterclockwise so that the characters are ordered from top to bottom.

Field Detail
DEFAULT_CJK
final static int DEFAULT_CJK(Code)



DEFAULT_MUST_ROTATE
final static int DEFAULT_MUST_ROTATE(Code)



DEFAULT_ROMAN
final static int DEFAULT_ROMAN(Code)



LEGAL_MUST_ROTATE
final static int LEGAL_MUST_ROTATE(Code)



LEGAL_ROMAN
final static int LEGAL_ROMAN(Code)



NINETY_DEGREES
final static double NINETY_DEGREES(Code)



POSITION_FAR_TOP_RIGHT
final static int POSITION_FAR_TOP_RIGHT(Code)



POSITION_NORMAL
final static int POSITION_NORMAL(Code)



POSITION_TOP_RIGHT
final static int POSITION_TOP_RIGHT(Code)



ROTATE_DEFAULT
final public static int ROTATE_DEFAULT(Code)



ROTATE_LEFT
final public static int ROTATE_LEFT(Code)



ROTATE_NONE
final public static int ROTATE_NONE(Code)



ROTATE_RIGHT
final public static int ROTATE_RIGHT(Code)



fCharStrings
String[] fCharStrings(Code)



fCharWidths
int[] fCharWidths(Code)



fComponent
Component fComponent(Code)



fLabel
String fLabel(Code)



fPosition
int[] fPosition(Code)



fRotation
int fRotation(Code)



fWidthfHeightfCharHeightfDescent
int fWidthfHeightfCharHeightfDescent(Code)



kBufferSpace
final static int kBufferSpace(Code)



sDrawsInFarTopRight
final static String sDrawsInFarTopRight(Code)



sDrawsInTopRight
final static String sDrawsInTopRight(Code)




Constructor Detail
VTextIcon
public VTextIcon(Component component, String label)(Code)
Creates a VTextIcon for the specified component with the specified label. It sets the orientation to the default for the string
See Also:   VTextIcon.verifyRotation



VTextIcon
public VTextIcon(Component component, String label, int rotateHint)(Code)
Creates a VTextIcon for the specified component with the specified label. It sets the orientation to the provided value if it's legal for the string
See Also:   VTextIcon.verifyRotation




Method Detail
calcDimensions
void calcDimensions()(Code)



getIconHeight
public int getIconHeight()(Code)
Returns the icon's height. an int specifying the fixed height of the icon.



getIconWidth
public int getIconWidth()(Code)
Returns the icon's width. an int specifying the fixed width of the icon.



paintIcon
public void paintIcon(Component c, Graphics g, int x, int y)(Code)
Draw the icon at the specified location. Icon implementations may use the Component argument to get properties useful for painting, e.g. the foreground or background color.



propertyChange
public void propertyChange(PropertyChangeEvent e)(Code)
Checks for changes to the font on the fComponent so that it can invalidate the layout if the size changes



recalcDimensions
void recalcDimensions()(Code)
Calculates the dimensions. If they've changed, invalidates the component



setLabel
public void setLabel(String label)(Code)
sets the label to the given string, updating the orientation as needed and invalidating the layout if the size changes
See Also:   VTextIcon.verifyRotation



verifyRotation
public static int verifyRotation(String label, int rotateHint)(Code)
verifyRotation returns the best rotation for the string (ROTATE_NONE, ROTATE_LEFT, ROTATE_RIGHT) This is public static so you can use it to test a string without creating a VTextIcon from http://www.unicode.org/unicode/reports/tr9/tr9-3.html When setting text using the Arabic script in vertical lines, it is more common to employ a horizontal baseline that is rotated by 90¡ counterclockwise so that the characters are ordered from top to bottom. Latin text and numbers may be rotated 90¡ clockwise so that the characters are also ordered from top to bottom. Rotation rules - Roman can rotate left, right, or none - default right (counterclockwise) - CJK can't rotate - Arabic must rotate - default left (clockwise) from the online edition of _The Unicode Standard, Version 3.0_, file ch10.pdf page 4 Ideographs are found in three blocks of the Unicode Standard... U+4E00-U+9FFF, U+3400-U+4DFF, U+F900-U+FAFF Hiragana is U+3040-U+309F, katakana is U+30A0-U+30FF from http://www.unicode.org/unicode/faq/writingdirections.html East Asian scripts are frequently written in vertical lines which run from top-to-bottom and are arrange columns either from left-to-right (Mongolian) or right-to-left (other scripts). Most characters use the same shape and orientation when displayed horizontally or vertically, but many punctuation characters will change their shape when displayed vertically. Letters and words from other scripts are generally rotated through ninety degree angles so that they, too, will read from top to bottom. That is, letters from left-to-right scripts will be rotated clockwise and letters from right-to-left scripts counterclockwise, both through ninety degree angles. Unlike the bidirectional case, the choice of vertical layout is usually treated as a formatting style; therefore, the Unicode Standard does not define default rendering behavior for vertical text nor provide directionality controls designed to override such behavior



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(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.