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