GraphicAttribute.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __java_awt_font_GraphicAttribute__
  3. #define __java_awt_font_GraphicAttribute__
  4. #pragma interface
  5. #include <java/lang/Object.h>
  6. extern "Java"
  7. {
  8. namespace java
  9. {
  10. namespace awt
  11. {
  12. class Graphics2D;
  13. namespace font
  14. {
  15. class GlyphJustificationInfo;
  16. class GraphicAttribute;
  17. }
  18. namespace geom
  19. {
  20. class Rectangle2D;
  21. }
  22. }
  23. }
  24. }
  25. class java::awt::font::GraphicAttribute : public ::java::lang::Object
  26. {
  27. public: // actually protected
  28. GraphicAttribute(jint);
  29. public:
  30. virtual void draw(::java::awt::Graphics2D *, jfloat, jfloat) = 0;
  31. virtual jfloat getAdvance() = 0;
  32. virtual jfloat getAscent() = 0;
  33. virtual jfloat getDescent() = 0;
  34. virtual jint getAlignment();
  35. virtual ::java::awt::geom::Rectangle2D * getBounds();
  36. virtual ::java::awt::font::GlyphJustificationInfo * getJustificationInfo();
  37. static const jint BOTTOM_ALIGNMENT = -2;
  38. static const jint CENTER_BASELINE = 1;
  39. static const jint HANGING_BASELINE = 2;
  40. static const jint ROMAN_BASELINE = 0;
  41. static const jint TOP_ALIGNMENT = -1;
  42. private:
  43. jint __attribute__((aligned(__alignof__( ::java::lang::Object)))) alignment;
  44. public:
  45. static ::java::lang::Class class$;
  46. };
  47. #endif // __java_awt_font_GraphicAttribute__