TextAttribute.h

Go to the documentation of this file.
00001 #ifndef JAVA_AWT_FONT_TEXTATTRIBUTE_H
00002 #define JAVA_AWT_FONT_TEXTATTRIBUTE_H 1
00003 
00004 #ifndef JAVA_TEXT_ATTRIBUTEDCHARACTERITERATOR_H
00005 #include <java_text/AttributedCharacterIterator.h>
00006 #endif /* JAVA_TEXT_ATTRIBUTEDCHARACTERITERATOR_H */
00007 #ifndef JAVA_LANG_FLOAT_H
00008 #include <java_lang/Float.h>
00009 #endif /* JAVA_LANG_FLOAT_H */
00010 #ifndef JAVA_LANG_INTEGER_H
00011 #include <java_lang/Integer.h>
00012 #endif /* JAVA_LANG_INTEGER_H */
00013 #ifndef JAVA_LANG_BOOLEAN_H
00014 #include <java_lang/Boolean.h>
00015 #endif /* JAVA_LANG_BOOLEAN_H */
00016 #ifndef JAVA_AWT_SPEC
00017 #include <java_awt/Spec.h>
00018 #endif /* JAVA_AWT_SPEC */
00019 
00020 namespace java {
00021   namespace awt {
00022     namespace font {
00023 
00082       class JAVA_AWT_SPEC TextAttribute : public java::text::AttributedCharacterIterator::Attribute {
00083 
00084       public:
00085 
00086         // 
00087         // For use with Font.
00088         //
00089 
00118         static const TextAttribute FAMILY;
00119 
00163         static const TextAttribute WEIGHT;
00164 
00169         static const Float WEIGHT_EXTRA_LIGHT;
00170 
00175         static const Float WEIGHT_LIGHT;
00176 
00181         static const Float WEIGHT_DEMI_LIGHT;
00182 
00187         static const Float WEIGHT_REGULAR;
00188 
00193         static const Float WEIGHT_SEMI_BOLD;
00194 
00199         static const Float WEIGHT_MEDIUM;
00200 
00205         static const Float WEIGHT_DEMI_BOLD;
00206 
00211         static const Float WEIGHT_BOLD;
00212 
00217         static const Float WEIGHT_HEAVY;
00218 
00223         static const Float WEIGHT_EXTRA_BOLD;
00224 
00229         static const Float WEIGHT_ULTRA_BOLD;
00230 
00265         static const TextAttribute WIDTH;
00266 
00271         static const Float WIDTH_CONDENSED;
00272 
00277         static const Float WIDTH_SEMI_CONDENSED;
00278 
00283         static const Float WIDTH_REGULAR;
00284 
00289         static const Float WIDTH_SEMI_EXTENDED;
00290 
00295         static const Float WIDTH_EXTENDED;
00296 
00338         static const TextAttribute POSTURE;
00339 
00344         static const Float POSTURE_REGULAR;
00345 
00350         static const Float POSTURE_OBLIQUE;
00351 
00377         static const TextAttribute SIZE;
00378 
00422         static const TextAttribute TRANSFORM;
00423 
00461         static const TextAttribute SUPERSCRIPT;
00462 
00467         static const Integer SUPERSCRIPT_SUPER;
00468 
00473         static const Integer SUPERSCRIPT_SUB;
00474 
00497         static const TextAttribute FONT;
00498 
00521         static const TextAttribute CHAR_REPLACEMENT;
00522 
00523         //
00524         // Adornments added to text.
00525         //
00526 
00547         static const TextAttribute FOREGROUND;
00548 
00568         static const TextAttribute BACKGROUND;
00569 
00597         static const TextAttribute UNDERLINE;
00598 
00605         static const Integer UNDERLINE_ON;
00606 
00631         static const TextAttribute STRIKETHROUGH;
00632 
00638         static const Boolean STRIKETHROUGH_ON;
00639 
00640         //
00641         // Attributes use to control layout of text on a line.
00642         //
00643 
00674         static const TextAttribute RUN_DIRECTION;
00675 
00680         static const Boolean RUN_DIRECTION_LTR;
00681 
00686         static const Boolean RUN_DIRECTION_RTL;
00687 
00719         static const TextAttribute BIDI_EMBEDDING;
00720 
00749         static const TextAttribute JUSTIFICATION;
00750 
00755         static const Float JUSTIFICATION_FULL;
00756 
00761         static const Float JUSTIFICATION_NONE;
00762 
00763         //
00764         // For use by input method.
00765         //
00766 
00781         static const TextAttribute INPUT_METHOD_HIGHLIGHT;
00782 
00805         static const TextAttribute INPUT_METHOD_UNDERLINE;
00806 
00812         static const Integer UNDERLINE_LOW_ONE_PIXEL;
00813 
00819         static const Integer UNDERLINE_LOW_TWO_PIXEL;
00820 
00826         static const Integer UNDERLINE_LOW_DOTTED;
00827 
00833         static const Integer UNDERLINE_LOW_GRAY;
00834 
00840         static const Integer UNDERLINE_LOW_DASHED;
00841 
00852         static const TextAttribute SWAP_COLORS;
00853 
00854 
00856         static const Boolean SWAP_COLORS_ON;
00857 
00864         static const TextAttribute NUMERIC_SHAPING;
00865 
00869         TextAttribute();
00870 
00871       protected:
00872 
00878         TextAttribute(const String& name);
00879 
00880       private:
00881 
00882         REGISTER_MEMBERS;
00883 
00884       };
00885 
00886     } // namespace font
00887   } // namespace awt
00888 } // namespace java
00889 
00890 #endif /* JAVA_AWT_FONT_TEXTATTRIBUTE_H */

Generated on Fri May 16 11:54:43 2008 for CrossPlatformJavaLikeC++API by  doxygen 1.5.3