FontMetrics.h

Go to the documentation of this file.
00001 #ifndef JAVA_AWT_FONTMETRICS_H
00002 #define JAVA_AWT_FONTMETRICS_H 1
00003 
00004 #ifndef JAVA_AWT_FONT_H
00005 #include <java_awt/Font.h>
00006 #endif /* JAVA_AWT_FONT_H */
00007 #ifndef JAVA_AWT_SPEC
00008 #include <java_awt/Spec.h>
00009 #endif /* JAVA_AWT_SPEC */
00010 
00011 namespace java {
00012   namespace awt {
00013 
00080     class JAVA_AWT_SPEC FontMetrics : virtual public Object {
00081 
00082     public:
00083 
00091       FontMetrics(const Ref<Font>& font = 0);
00092 
00099       virtual Ref<Font> getFont() const;
00100 
00113       virtual jint getLeading() const;
00114 
00124       virtual jint getAscent() const;
00125 
00137       virtual jint getDescent() const;
00138 
00152       virtual jint getHeight() const;
00153 
00162       virtual jint getMaxAscent() const;
00163 
00172       virtual jint getMaxDescent() const;
00173 
00184       virtual jint getMaxAdvance() const;
00185 
00200       virtual jint charWidth(jchar ch) const;
00201 
00225       virtual jint stringWidth(const String& str) const;
00226 
00238       virtual Array<jint> getWidths() const;
00239 
00247       virtual String toString() const;
00248 
00249     private:
00250 
00251       ObjectRef impl;
00252       REGISTER_MEMBERS;
00253 
00254     };
00255 
00256   } // namespace awt
00257 } // namespace java
00258 
00259 #endif /* JAVA_AWT_FONTMETRICS_H */

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