Java Doc for TextAttribute.java in  » Internationalization-Localization » icu4j » com » ibm » richtext » textlayout » attributes » 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 » Internationalization Localization » icu4j » com.ibm.richtext.textlayout.attributes 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.ibm.richtext.textlayout.attributes.TextAttribute

TextAttribute
public class TextAttribute extends Attribute (Code)
This class contains a number of keys (or attributes) for specifying text styles in a Map. A text style is a collection of key-value pairs, where the key represents a certain characteristic (such as size) and the value tells how that characteristic is realized (ie what the size is).

All of the attributes in TextAttribute specify a class for their value. Map does not enforce these class specifications; however, text rendering code will tend to fail with a ClassCastException if a key's value has an unexpected class.

Some attributes are meaningful for entire paragraphs, not individual characters. These attributes are documented as applying to paragraphs. All other attributes apply to characters.

Many of the field names and values in this class are taken from the JDK 1.2 java.awt.font.TextAttribute class.
See Also:   Map



Field Summary
final public static  ObjectBACKGROUND
    
final public static  ObjectBIDI_EMBEDDING
     Attribute key for the embedding level for nested bidirectional runs.

Key

BIDI_EMBEDDING

Value

Integer

Limits

Positive values 1 through 15 are embedding levels, negative values
through -15 are override levels

Default

Use standard BIDI to compute levels from formatting characters in the text.

Description

Specifies the bidi embedding level of the character. When this attribute is present anywhere in a paragraph, then the Unicode characters RLO, LRO, RLE, LRE, PDF are disregarded in the BIDI analysis of that paragraph.
final public static  ObjectCHAR_REPLACEMENT
    
final public static  ObjectEXTRA_FIRST_LINE_SPACING
    
final public static  ObjectEXTRA_LINE_SPACING
    
final public static  ObjectFAMILY
    
final public static  ObjectFIRST_LINE_INDENT
     Amount beyond leading margin to indent the first line of a paragraph.
final public static  IntegerFLUSH_CENTER
    
final public static  IntegerFLUSH_LEADING
    
final public static  IntegerFLUSH_TRAILING
    
final public static  ObjectFONT
    
final public static  ObjectFOREGROUND
     Attribute key for the foreground and background color adornment.
final public static  IntegerFULLY_JUSTIFIED
     Value of LINE_FLUSH for full justification.
final public static  ObjectJUSTIFICATION
     Attribute key for the justification of a paragraph.

Key

JUSTIFICATION

Value

Float

Limits

0.0 through1.0

Default

1.0

Description

Specifies which fraction of the extra space to use when justification is requested.

final public static  FloatJUSTIFICATION_FULL
     Justify the line to the full requested width.
final public static  FloatJUSTIFICATION_NONE
     Do not allow the line to be justified.
final public static  ObjectLEADING_MARGIN
     Leading and trailing margin in paragraph.
final public static  ObjectLINE_FLUSH
     Flush lines left, right, or center.
final public static  ObjectMIN_FIRST_LINE_SPACING
    
final public static  ObjectMIN_LINE_SPACING
    
final public static  ObjectOFFSET
    
final public static  ObjectPOSTURE
    
final public static  FloatPOSTURE_OBLIQUE
    
final public static  ObjectRUN_DIRECTION
     Attribute key for the run direction of the line.

Key

RUN_DIRECTION

Value

Boolean

Constants

RUN_DIRECTION_LTR = true, RUN_DIRECTION_RTL = false

Default

Use the default Unicode base direction from the BIDI algorithm.

Description

Specifies which base run direction to use when positioning mixed directional runs within a paragraph.

final public static  BooleanRUN_DIRECTION_LTR
     Left-to-right run direction.
final public static  BooleanRUN_DIRECTION_RTL
     Right-to-left run direction.
final public static  ObjectSIZE
    
final public static  ObjectSTRIKETHROUGH
    
final public static  BooleanSTRIKETHROUGH_ON
    
final public static  ObjectSUPERSCRIPT
    
final public static  IntegerSUPERSCRIPT_SUB
    
final public static  IntegerSUPERSCRIPT_SUPER
    
final public static  ObjectTAB_RULER
     Tab ruler.
final public static  ObjectTRAILING_MARGIN
    
final public static  ObjectUNDERLINE
    
final public static  IntegerUNDERLINE_ON
    
final public static  ObjectWEIGHT
    
final public static  FloatWEIGHT_BOLD
    

Constructor Summary
protected  TextAttribute(String name)
    

Method Summary
protected  ObjectreadResolve()
    

Field Detail
BACKGROUND
final public static Object BACKGROUND(Code)



BIDI_EMBEDDING
final public static Object BIDI_EMBEDDING(Code)
Attribute key for the embedding level for nested bidirectional runs.

Key

BIDI_EMBEDDING

Value

Integer

Limits

Positive values 1 through 15 are embedding levels, negative values
through -15 are override levels

Default

Use standard BIDI to compute levels from formatting characters in the text.

Description

Specifies the bidi embedding level of the character. When this attribute is present anywhere in a paragraph, then the Unicode characters RLO, LRO, RLE, LRE, PDF are disregarded in the BIDI analysis of that paragraph. See the Unicode Standard v. 2.0, section 3-11.




CHAR_REPLACEMENT
final public static Object CHAR_REPLACEMENT(Code)



EXTRA_FIRST_LINE_SPACING
final public static Object EXTRA_FIRST_LINE_SPACING(Code)



EXTRA_LINE_SPACING
final public static Object EXTRA_LINE_SPACING(Code)



FAMILY
final public static Object FAMILY(Code)



FIRST_LINE_INDENT
final public static Object FIRST_LINE_INDENT(Code)
Amount beyond leading margin to indent the first line of a paragraph.



FLUSH_CENTER
final public static Integer FLUSH_CENTER(Code)



FLUSH_LEADING
final public static Integer FLUSH_LEADING(Code)



FLUSH_TRAILING
final public static Integer FLUSH_TRAILING(Code)



FONT
final public static Object FONT(Code)



FOREGROUND
final public static Object FOREGROUND(Code)
Attribute key for the foreground and background color adornment.



FULLY_JUSTIFIED
final public static Integer FULLY_JUSTIFIED(Code)
Value of LINE_FLUSH for full justification.



JUSTIFICATION
final public static Object JUSTIFICATION(Code)
Attribute key for the justification of a paragraph.

Key

JUSTIFICATION

Value

Float

Limits

0.0 through1.0

Default

1.0

Description

Specifies which fraction of the extra space to use when justification is requested. For example, if the line is 50 points wide and the margins are 70 points apart, a value of 0.5 means that the line is padded to reach a width of 60 points.

This attribute should have the same value over the whole paragraph.




JUSTIFICATION_FULL
final public static Float JUSTIFICATION_FULL(Code)
Justify the line to the full requested width.
See Also:   TextAttribute.JUSTIFICATION



JUSTIFICATION_NONE
final public static Float JUSTIFICATION_NONE(Code)
Do not allow the line to be justified.
See Also:   TextAttribute.JUSTIFICATION



LEADING_MARGIN
final public static Object LEADING_MARGIN(Code)
Leading and trailing margin in paragraph.



LINE_FLUSH
final public static Object LINE_FLUSH(Code)
Flush lines left, right, or center.



MIN_FIRST_LINE_SPACING
final public static Object MIN_FIRST_LINE_SPACING(Code)



MIN_LINE_SPACING
final public static Object MIN_LINE_SPACING(Code)



OFFSET
final public static Object OFFSET(Code)



POSTURE
final public static Object POSTURE(Code)



POSTURE_OBLIQUE
final public static Float POSTURE_OBLIQUE(Code)



RUN_DIRECTION
final public static Object RUN_DIRECTION(Code)
Attribute key for the run direction of the line.

Key

RUN_DIRECTION

Value

Boolean

Constants

RUN_DIRECTION_LTR = true, RUN_DIRECTION_RTL = false

Default

Use the default Unicode base direction from the BIDI algorithm.

Description

Specifies which base run direction to use when positioning mixed directional runs within a paragraph. If this value is RUN_DIRECTION_DEFAULT, TextLayout uses the default Unicode base direction from the BIDI algorithm.

This attribute should have the same value over the whole paragraph.




RUN_DIRECTION_LTR
final public static Boolean RUN_DIRECTION_LTR(Code)
Left-to-right run direction.
See Also:   TextAttribute.RUN_DIRECTION



RUN_DIRECTION_RTL
final public static Boolean RUN_DIRECTION_RTL(Code)
Right-to-left run direction.
See Also:   TextAttribute.RUN_DIRECTION



SIZE
final public static Object SIZE(Code)



STRIKETHROUGH
final public static Object STRIKETHROUGH(Code)



STRIKETHROUGH_ON
final public static Boolean STRIKETHROUGH_ON(Code)



SUPERSCRIPT
final public static Object SUPERSCRIPT(Code)



SUPERSCRIPT_SUB
final public static Integer SUPERSCRIPT_SUB(Code)



SUPERSCRIPT_SUPER
final public static Integer SUPERSCRIPT_SUPER(Code)



TAB_RULER
final public static Object TAB_RULER(Code)
Tab ruler. Values are MTabRuler instances.



TRAILING_MARGIN
final public static Object TRAILING_MARGIN(Code)



UNDERLINE
final public static Object UNDERLINE(Code)



UNDERLINE_ON
final public static Integer UNDERLINE_ON(Code)



WEIGHT
final public static Object WEIGHT(Code)



WEIGHT_BOLD
final public static Float WEIGHT_BOLD(Code)




Constructor Detail
TextAttribute
protected TextAttribute(String name)(Code)




Method Detail
readResolve
protected Object readResolve() throws InvalidObjectException(Code)



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