2 // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
4 #ifndef __javax_swing_text_StyleContext__
5 #define __javax_swing_text_StyleContext__
9 #include <java/lang/Object.h>
10 #include <gcj/array.h>
34 class MutableAttributeSet
;
37 class StyleContext$NamedStyle
;
38 class StyleContext$SmallAttributeSet
;
44 class javax::swing::text::StyleContext
: public ::java::lang::Object
49 public: // actually protected
50 virtual ::javax::swing::text::StyleContext$SmallAttributeSet
* createSmallAttributeSet(::javax::swing::text::AttributeSet
*);
51 virtual ::javax::swing::text::MutableAttributeSet
* createLargeAttributeSet(::javax::swing::text::AttributeSet
*);
53 virtual void addChangeListener(::javax::swing::event::ChangeListener
*);
54 virtual void removeChangeListener(::javax::swing::event::ChangeListener
*);
55 virtual JArray
< ::javax::swing::event::ChangeListener
* > * getChangeListeners();
56 virtual ::javax::swing::text::Style
* addStyle(::java::lang::String
*, ::javax::swing::text::Style
*);
57 virtual void removeStyle(::java::lang::String
*);
58 virtual ::javax::swing::text::Style
* getStyle(::java::lang::String
*);
59 virtual ::java::util::Enumeration
* getStyleNames();
61 void readObject(::java::io::ObjectInputStream
*);
62 void writeObject(::java::io::ObjectOutputStream
*);
64 virtual ::java::awt::Font
* getFont(::javax::swing::text::AttributeSet
*);
65 virtual ::java::awt::Font
* getFont(::java::lang::String
*, jint
, jint
);
66 virtual ::java::awt::FontMetrics
* getFontMetrics(::java::awt::Font
*);
67 virtual ::java::awt::Color
* getForeground(::javax::swing::text::AttributeSet
*);
68 virtual ::java::awt::Color
* getBackground(::javax::swing::text::AttributeSet
*);
69 public: // actually protected
70 virtual jint
getCompressionThreshold();
72 static ::javax::swing::text::StyleContext
* getDefaultStyleContext();
73 virtual ::javax::swing::text::AttributeSet
* addAttribute(::javax::swing::text::AttributeSet
*, ::java::lang::Object
*, ::java::lang::Object
*);
74 virtual ::javax::swing::text::AttributeSet
* addAttributes(::javax::swing::text::AttributeSet
*, ::javax::swing::text::AttributeSet
*);
75 virtual ::javax::swing::text::AttributeSet
* getEmptySet();
76 virtual void reclaim(::javax::swing::text::AttributeSet
*);
77 virtual ::javax::swing::text::AttributeSet
* removeAttribute(::javax::swing::text::AttributeSet
*, ::java::lang::Object
*);
78 virtual ::javax::swing::text::AttributeSet
* removeAttributes(::javax::swing::text::AttributeSet
*, ::javax::swing::text::AttributeSet
*);
79 virtual ::javax::swing::text::AttributeSet
* removeAttributes(::javax::swing::text::AttributeSet
*, ::java::util::Enumeration
*);
80 static ::java::lang::Object
* getStaticAttribute(::java::lang::Object
*);
81 static ::java::lang::Object
* getStaticAttributeKey(::java::lang::Object
*);
82 static void readAttributeSet(::java::io::ObjectInputStream
*, ::javax::swing::text::MutableAttributeSet
*);
83 static void writeAttributeSet(::java::io::ObjectOutputStream
*, ::javax::swing::text::AttributeSet
*);
84 virtual void readAttributes(::java::io::ObjectInputStream
*, ::javax::swing::text::MutableAttributeSet
*);
85 virtual void writeAttributes(::java::io::ObjectOutputStream
*, ::javax::swing::text::AttributeSet
*);
86 static void registerStaticAttributeKey(::java::lang::Object
*);
87 virtual ::java::lang::String
* toString();
89 ::javax::swing::text::AttributeSet
* searchImmutableSet();
91 ::javax::swing::text::MutableAttributeSet
* getMutableAttributeSet(::javax::swing::text::AttributeSet
*);
92 static const jlong serialVersionUID
= 8042858831190784241LL;
94 static ::java::lang::String
* DEFAULT_STYLE
;
95 public: // actually package-private
96 static ::java::util::Hashtable
* sharedAttributeSets
;
97 static ::java::util::Hashtable
* sharedFonts
;
98 static ::javax::swing::text::StyleContext
* defaultStyleContext
;
99 static const jint compressionThreshold
= 9;
101 static ::java::util::Hashtable
* writeAttributeKeys
;
102 static ::java::util::Hashtable
* readAttributeKeys
;
103 ::javax::swing::text::StyleContext$NamedStyle
* __attribute__((aligned(__alignof__( ::java::lang::Object
)))) styles
;
104 ::javax::swing::text::MutableAttributeSet
* search
;
105 ::java::util::Map
* attributeSetPool
;
107 static ::java::lang::Class
class$
;
110 #endif // __javax_swing_text_StyleContext__