PlainView.h 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __javax_swing_text_PlainView__
  3. #define __javax_swing_text_PlainView__
  4. #pragma interface
  5. #include <javax/swing/text/View.h>
  6. #include <gcj/array.h>
  7. extern "Java"
  8. {
  9. namespace java
  10. {
  11. namespace awt
  12. {
  13. class Color;
  14. class Component;
  15. class Font;
  16. class FontMetrics;
  17. class Graphics;
  18. class Rectangle;
  19. class Shape;
  20. }
  21. }
  22. namespace javax
  23. {
  24. namespace swing
  25. {
  26. namespace event
  27. {
  28. class DocumentEvent;
  29. }
  30. namespace text
  31. {
  32. class Element;
  33. class PlainView;
  34. class Position$Bias;
  35. class Segment;
  36. class ViewFactory;
  37. }
  38. }
  39. }
  40. }
  41. class javax::swing::text::PlainView : public ::javax::swing::text::View
  42. {
  43. public:
  44. PlainView(::javax::swing::text::Element *);
  45. public: // actually protected
  46. virtual void updateMetrics();
  47. virtual ::java::awt::Rectangle * lineToRect(::java::awt::Shape *, jint);
  48. public:
  49. virtual ::java::awt::Shape * modelToView(jint, ::java::awt::Shape *, ::javax::swing::text::Position$Bias *);
  50. public: // actually protected
  51. virtual void drawLine(jint, ::java::awt::Graphics *, jint, jint);
  52. virtual jint drawSelectedText(::java::awt::Graphics *, jint, jint, jint, jint);
  53. virtual jint drawUnselectedText(::java::awt::Graphics *, jint, jint, jint, jint);
  54. public:
  55. virtual void paint(::java::awt::Graphics *, ::java::awt::Shape *);
  56. public: // actually protected
  57. virtual jint getTabSize();
  58. public:
  59. virtual jfloat nextTabStop(jfloat, jint);
  60. public: // actually package-private
  61. virtual jfloat determineMaxLineLength();
  62. public:
  63. virtual jfloat getPreferredSpan(jint);
  64. virtual jint viewToModel(jfloat, jfloat, ::java::awt::Shape *, JArray< ::javax::swing::text::Position$Bias * > *);
  65. public: // actually protected
  66. virtual void updateDamage(::javax::swing::event::DocumentEvent *, ::java::awt::Shape *, ::javax::swing::text::ViewFactory *);
  67. public:
  68. virtual void insertUpdate(::javax::swing::event::DocumentEvent *, ::java::awt::Shape *, ::javax::swing::text::ViewFactory *);
  69. virtual void removeUpdate(::javax::swing::event::DocumentEvent *, ::java::awt::Shape *, ::javax::swing::text::ViewFactory *);
  70. virtual void changedUpdate(::javax::swing::event::DocumentEvent *, ::java::awt::Shape *, ::javax::swing::text::ViewFactory *);
  71. public: // actually protected
  72. virtual void damageLineRange(jint, jint, ::java::awt::Shape *, ::java::awt::Component *);
  73. virtual ::javax::swing::text::Segment * getLineBuffer();
  74. private:
  75. void findLongestLine(jint, jint);
  76. jint getLineLength(jint);
  77. public: // actually package-private
  78. ::java::awt::Color * __attribute__((aligned(__alignof__( ::javax::swing::text::View)))) selectedColor;
  79. ::java::awt::Color * unselectedColor;
  80. ::java::awt::Color * disabledColor;
  81. jint selectionStart;
  82. jint selectionEnd;
  83. ::java::awt::Font * font;
  84. jfloat maxLineLength;
  85. ::javax::swing::text::Element * longestLine;
  86. public: // actually protected
  87. ::java::awt::FontMetrics * metrics;
  88. private:
  89. ::javax::swing::text::Segment * lineBuffer;
  90. jint tabBase;
  91. jint tabSize;
  92. public:
  93. static ::java::lang::Class class$;
  94. };
  95. #endif // __javax_swing_text_PlainView__