summaryrefslogtreecommitdiff
path: root/libjava/javax/swing/text/StyleContext.h
blob: c8f91994ee8621b13645fabd740b59fea87f3382 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __javax_swing_text_StyleContext__
#define __javax_swing_text_StyleContext__

#pragma interface

#include <java/lang/Object.h>
#include <gcj/array.h>

extern "Java"
{
  namespace java
  {
    namespace awt
    {
        class Color;
        class Font;
        class FontMetrics;
    }
  }
  namespace javax
  {
    namespace swing
    {
      namespace event
      {
          class ChangeListener;
      }
      namespace text
      {
          class AttributeSet;
          class MutableAttributeSet;
          class Style;
          class StyleContext;
          class StyleContext$NamedStyle;
          class StyleContext$SmallAttributeSet;
      }
    }
  }
}

class javax::swing::text::StyleContext : public ::java::lang::Object
{

public:
  StyleContext();
public: // actually protected
  virtual ::javax::swing::text::StyleContext$SmallAttributeSet * createSmallAttributeSet(::javax::swing::text::AttributeSet *);
  virtual ::javax::swing::text::MutableAttributeSet * createLargeAttributeSet(::javax::swing::text::AttributeSet *);
public:
  virtual void addChangeListener(::javax::swing::event::ChangeListener *);
  virtual void removeChangeListener(::javax::swing::event::ChangeListener *);
  virtual JArray< ::javax::swing::event::ChangeListener * > * getChangeListeners();
  virtual ::javax::swing::text::Style * addStyle(::java::lang::String *, ::javax::swing::text::Style *);
  virtual void removeStyle(::java::lang::String *);
  virtual ::javax::swing::text::Style * getStyle(::java::lang::String *);
  virtual ::java::util::Enumeration * getStyleNames();
private:
  void readObject(::java::io::ObjectInputStream *);
  void writeObject(::java::io::ObjectOutputStream *);
public:
  virtual ::java::awt::Font * getFont(::javax::swing::text::AttributeSet *);
  virtual ::java::awt::Font * getFont(::java::lang::String *, jint, jint);
  virtual ::java::awt::FontMetrics * getFontMetrics(::java::awt::Font *);
  virtual ::java::awt::Color * getForeground(::javax::swing::text::AttributeSet *);
  virtual ::java::awt::Color * getBackground(::javax::swing::text::AttributeSet *);
public: // actually protected
  virtual jint getCompressionThreshold();
public:
  static ::javax::swing::text::StyleContext * getDefaultStyleContext();
  virtual ::javax::swing::text::AttributeSet * addAttribute(::javax::swing::text::AttributeSet *, ::java::lang::Object *, ::java::lang::Object *);
  virtual ::javax::swing::text::AttributeSet * addAttributes(::javax::swing::text::AttributeSet *, ::javax::swing::text::AttributeSet *);
  virtual ::javax::swing::text::AttributeSet * getEmptySet();
  virtual void reclaim(::javax::swing::text::AttributeSet *);
  virtual ::javax::swing::text::AttributeSet * removeAttribute(::javax::swing::text::AttributeSet *, ::java::lang::Object *);
  virtual ::javax::swing::text::AttributeSet * removeAttributes(::javax::swing::text::AttributeSet *, ::javax::swing::text::AttributeSet *);
  virtual ::javax::swing::text::AttributeSet * removeAttributes(::javax::swing::text::AttributeSet *, ::java::util::Enumeration *);
  static ::java::lang::Object * getStaticAttribute(::java::lang::Object *);
  static ::java::lang::Object * getStaticAttributeKey(::java::lang::Object *);
  static void readAttributeSet(::java::io::ObjectInputStream *, ::javax::swing::text::MutableAttributeSet *);
  static void writeAttributeSet(::java::io::ObjectOutputStream *, ::javax::swing::text::AttributeSet *);
  virtual void readAttributes(::java::io::ObjectInputStream *, ::javax::swing::text::MutableAttributeSet *);
  virtual void writeAttributes(::java::io::ObjectOutputStream *, ::javax::swing::text::AttributeSet *);
  static void registerStaticAttributeKey(::java::lang::Object *);
  virtual ::java::lang::String * toString();
private:
  ::javax::swing::text::AttributeSet * searchImmutableSet();
  void cleanupPool();
  ::javax::swing::text::MutableAttributeSet * getMutableAttributeSet(::javax::swing::text::AttributeSet *);
  static const jlong serialVersionUID = 8042858831190784241LL;
public:
  static ::java::lang::String * DEFAULT_STYLE;
public: // actually package-private
  static ::java::util::Hashtable * sharedAttributeSets;
  static ::java::util::Hashtable * sharedFonts;
  static ::javax::swing::text::StyleContext * defaultStyleContext;
  static const jint compressionThreshold = 9;
private:
  static ::java::util::Hashtable * writeAttributeKeys;
  static ::java::util::Hashtable * readAttributeKeys;
  ::javax::swing::text::StyleContext$NamedStyle * __attribute__((aligned(__alignof__( ::java::lang::Object)))) styles;
  ::javax::swing::text::MutableAttributeSet * search;
  ::java::util::Map * attributeSetPool;
public:
  static ::java::lang::Class class$;
};

#endif // __javax_swing_text_StyleContext__