PR testsuite/44195
[official-gcc.git] / libjava / javax / swing / text / StyleContext.h
blobc8f91994ee8621b13645fabd740b59fea87f3382
2 // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
4 #ifndef __javax_swing_text_StyleContext__
5 #define __javax_swing_text_StyleContext__
7 #pragma interface
9 #include <java/lang/Object.h>
10 #include <gcj/array.h>
12 extern "Java"
14 namespace java
16 namespace awt
18 class Color;
19 class Font;
20 class FontMetrics;
23 namespace javax
25 namespace swing
27 namespace event
29 class ChangeListener;
31 namespace text
33 class AttributeSet;
34 class MutableAttributeSet;
35 class Style;
36 class StyleContext;
37 class StyleContext$NamedStyle;
38 class StyleContext$SmallAttributeSet;
44 class javax::swing::text::StyleContext : public ::java::lang::Object
47 public:
48 StyleContext();
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 *);
52 public:
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();
60 private:
61 void readObject(::java::io::ObjectInputStream *);
62 void writeObject(::java::io::ObjectOutputStream *);
63 public:
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();
71 public:
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();
88 private:
89 ::javax::swing::text::AttributeSet * searchImmutableSet();
90 void cleanupPool();
91 ::javax::swing::text::MutableAttributeSet * getMutableAttributeSet(::javax::swing::text::AttributeSet *);
92 static const jlong serialVersionUID = 8042858831190784241LL;
93 public:
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;
100 private:
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;
106 public:
107 static ::java::lang::Class class$;
110 #endif // __javax_swing_text_StyleContext__