2 // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
4 #ifndef __java_awt_Font__
5 #define __java_awt_Font__
9 #include <java/lang/Object.h>
10 #include <gcj/array.h>
20 class ClasspathToolkit
;
23 class ClasspathFontPeer
;
35 class FontRenderContext
;
41 class AffineTransform
;
51 class AttributedCharacterIterator$Attribute
;
52 class CharacterIterator
;
57 class java::awt::Font
: public ::java::lang::Object
61 static ::java::awt::Font
* decode(::java::lang::String
*);
62 public: // actually package-private
63 static ::gnu::java::awt::ClasspathToolkit
* tk();
64 static ::java::awt::Font
* getFontFromToolkit(::java::lang::String
*, ::java::util::Map
*);
65 static ::gnu::java::awt::peer::ClasspathFontPeer
* getPeerFromToolkit(::java::lang::String
*, ::java::util::Map
*);
67 static ::java::awt::Font
* getFont(::java::lang::String
*, ::java::awt::Font
*);
68 static ::java::awt::Font
* getFont(::java::lang::String
*);
69 public: // actually protected
70 Font(::java::awt::Font
*);
72 Font(::java::lang::String
*, jint
, jint
);
73 Font(::java::util::Map
*);
74 public: // actually package-private
75 Font(::java::lang::String
*, ::java::util::Map
*);
77 virtual ::java::lang::String
* getName();
78 virtual jint
getSize();
79 virtual jfloat
getSize2D();
80 virtual jboolean
isPlain();
81 virtual jboolean
isBold();
82 virtual jboolean
isItalic();
83 virtual ::java::lang::String
* getFamily();
84 virtual jint
getStyle();
85 virtual jboolean
canDisplay(jchar
);
86 virtual jboolean
canDisplay(jint
);
87 virtual jint
canDisplayUpTo(::java::lang::String
*);
88 virtual jint
canDisplayUpTo(JArray
< jchar
> *, jint
, jint
);
89 virtual jint
canDisplayUpTo(::java::text::CharacterIterator
*, jint
, jint
);
90 static ::java::awt::Font
* createFont(jint
, ::java::io::InputStream
*);
91 static ::java::awt::Font
* createFont(jint
, ::java::io::File
*);
92 virtual ::java::awt::font::GlyphVector
* createGlyphVector(::java::awt::font::FontRenderContext
*, ::java::lang::String
*);
93 virtual ::java::awt::font::GlyphVector
* createGlyphVector(::java::awt::font::FontRenderContext
*, ::java::text::CharacterIterator
*);
94 virtual ::java::awt::font::GlyphVector
* createGlyphVector(::java::awt::font::FontRenderContext
*, JArray
< jchar
> *);
95 virtual ::java::awt::font::GlyphVector
* createGlyphVector(::java::awt::font::FontRenderContext
*, JArray
< jint
> *);
96 virtual ::java::awt::Font
* deriveFont(jint
, jfloat
);
97 virtual ::java::awt::Font
* deriveFont(jfloat
);
98 virtual ::java::awt::Font
* deriveFont(jint
);
99 virtual ::java::awt::Font
* deriveFont(jint
, ::java::awt::geom::AffineTransform
*);
100 virtual ::java::awt::Font
* deriveFont(::java::awt::geom::AffineTransform
*);
101 virtual ::java::awt::Font
* deriveFont(::java::util::Map
*);
102 virtual ::java::util::Map
* getAttributes();
103 virtual JArray
< ::java::text::AttributedCharacterIterator$Attribute
* > * getAvailableAttributes();
104 virtual jbyte
getBaselineFor(jchar
);
105 virtual ::java::lang::String
* getFamily(::java::util::Locale
*);
106 static ::java::awt::Font
* getFont(::java::util::Map
*);
107 virtual ::java::lang::String
* getFontName();
108 virtual ::java::lang::String
* getFontName(::java::util::Locale
*);
109 virtual jfloat
getItalicAngle();
110 virtual ::java::awt::font::LineMetrics
* getLineMetrics(::java::lang::String
*, jint
, jint
, ::java::awt::font::FontRenderContext
*);
111 virtual ::java::awt::font::LineMetrics
* getLineMetrics(JArray
< jchar
> *, jint
, jint
, ::java::awt::font::FontRenderContext
*);
112 virtual ::java::awt::font::LineMetrics
* getLineMetrics(::java::text::CharacterIterator
*, jint
, jint
, ::java::awt::font::FontRenderContext
*);
113 virtual ::java::awt::geom::Rectangle2D
* getMaxCharBounds(::java::awt::font::FontRenderContext
*);
114 virtual jint
getMissingGlyphCode();
115 virtual jint
getNumGlyphs();
116 virtual ::java::lang::String
* getPSName();
117 virtual ::java::awt::geom::Rectangle2D
* getStringBounds(::java::lang::String
*, ::java::awt::font::FontRenderContext
*);
118 virtual ::java::awt::geom::Rectangle2D
* getStringBounds(::java::lang::String
*, jint
, jint
, ::java::awt::font::FontRenderContext
*);
119 virtual ::java::awt::geom::Rectangle2D
* getStringBounds(::java::text::CharacterIterator
*, jint
, jint
, ::java::awt::font::FontRenderContext
*);
120 virtual ::java::awt::geom::Rectangle2D
* getStringBounds(JArray
< jchar
> *, jint
, jint
, ::java::awt::font::FontRenderContext
*);
121 virtual ::java::awt::geom::AffineTransform
* getTransform();
122 virtual jboolean
hasUniformLineMetrics();
123 virtual jboolean
isTransformed();
124 virtual ::java::awt::font::GlyphVector
* layoutGlyphVector(::java::awt::font::FontRenderContext
*, JArray
< jchar
> *, jint
, jint
, jint
);
125 virtual ::java::awt::peer::FontPeer
* getPeer();
126 virtual jint
hashCode();
127 virtual jboolean
equals(::java::lang::Object
*);
128 virtual ::java::lang::String
* toString();
129 virtual ::java::awt::font::LineMetrics
* getLineMetrics(::java::lang::String
*, ::java::awt::font::FontRenderContext
*);
130 virtual jboolean
hasLayoutAttributes();
132 void readObject(::java::io::ObjectInputStream
*);
134 static const jint PLAIN
= 0;
135 static const jint BOLD
= 1;
136 static const jint ITALIC
= 2;
137 static const jint ROMAN_BASELINE
= 0;
138 static const jint CENTER_BASELINE
= 1;
139 static const jint HANGING_BASELINE
= 2;
140 static const jint TRUETYPE_FONT
= 0;
141 static const jint TYPE1_FONT
= 1;
142 static const jint LAYOUT_LEFT_TO_RIGHT
= 0;
143 static const jint LAYOUT_RIGHT_TO_LEFT
= 1;
144 static const jint LAYOUT_NO_START_CONTEXT
= 2;
145 static const jint LAYOUT_NO_LIMIT_CONTEXT
= 4;
146 static ::java::lang::String
* DIALOG
;
147 static ::java::lang::String
* DIALOG_INPUT
;
148 static ::java::lang::String
* MONOSPACED
;
149 static ::java::lang::String
* SANS_SERIF
;
150 static ::java::lang::String
* SERIF
;
151 public: // actually protected
152 ::java::lang::String
* __attribute__((aligned(__alignof__( ::java::lang::Object
)))) name
;
157 static const jlong serialVersionUID
= -4206021311591459213LL;
158 ::gnu::java::awt::peer::ClasspathFontPeer
* peer
;
161 static ::java::lang::Class
class$
;
164 #endif // __java_awt_Font__