Font.h

Go to the documentation of this file.
00001 #ifndef JAVA_AWT_FONT_H
00002 #define JAVA_AWT_FONT_H 1
00003 
00004 #ifndef JAVA_UTIL_MAP_H
00005 #include <java_util/Map.h>
00006 #endif /* JAVA_UTIL_MAP_H */
00007 #ifndef JAVA_AWT_GEOM_AFFINETRANSFORM_H
00008 #include <java_awt_geom/AffineTransform.h>
00009 #endif /* JAVA_AWT_GEOM_AFFINETRANSFORM_H */
00010 #ifndef JAVA_AWT_SPEC
00011 #include <java_awt/Spec.h>
00012 #endif /* JAVA_AWT_SPEC */
00013 
00014 namespace java {
00015   namespace awt {
00016 
00017     using namespace geom;
00018     using namespace java::util;
00019 
00118     class JAVA_AWT_SPEC Font : virtual public Object {
00119 
00120     public:
00121 
00122       enum FONT_STYLE {
00123 
00127         PLAIN,
00128 
00133         BOLD,
00134 
00139         ITALIC,
00140 
00141       };
00142 
00143       enum FONT_BASELINE {
00144 
00148         ROMAN_BASELINE,
00149 
00154         CENTER_BASELINE,
00155 
00160         HANGING_BASELINE,
00161 
00162       };
00163 
00164       enum FONT_TYPE {
00165 
00170         TRUETYPE_FONT,
00171 
00172       };
00173 
00177       Font();
00178 
00198       Font(const String& name, jint style, jint size);
00199 
00209       Font(const Map& attrs);
00210 
00217       virtual AffineTransform& getTransform() const;
00218 
00229       virtual String getName() const;
00230 
00240       virtual jint getStyle() const;
00241 
00264       virtual jint getSize() const;
00265 
00274       virtual jfloat getSize2D() const;
00275 
00285       virtual jboolean isPlain() const;
00286 
00296       virtual jboolean isBold() const;
00297 
00307       virtual jboolean isItalic() const;
00308 
00319       virtual jboolean isTransformed() const;
00320 
00326       virtual jint hashCode() const;
00327 
00338       virtual jboolean equals(const Object& obj) const;
00339 
00340       virtual String toString() const;
00341 
00342     private:
00343 
00344       ObjectRef impl;
00345       REGISTER_MEMBERS;
00346 
00347     };
00348 
00349   } // namespace awt
00350 } // namespace java
00351 
00352 #endif /* JAVA_AWT_FONT_H */

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