DefaultHSBChooserPanel.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __javax_swing_colorchooser_DefaultHSBChooserPanel__
  3. #define __javax_swing_colorchooser_DefaultHSBChooserPanel__
  4. #pragma interface
  5. #include <javax/swing/colorchooser/AbstractColorChooserPanel.h>
  6. #include <gcj/array.h>
  7. extern "Java"
  8. {
  9. namespace java
  10. {
  11. namespace awt
  12. {
  13. class Container;
  14. class Graphics;
  15. class Image;
  16. class Point;
  17. }
  18. }
  19. namespace javax
  20. {
  21. namespace swing
  22. {
  23. class Icon;
  24. class JColorChooser;
  25. class JLabel;
  26. class JPanel;
  27. class JRadioButton;
  28. class JSlider;
  29. class JSpinner;
  30. namespace colorchooser
  31. {
  32. class DefaultHSBChooserPanel;
  33. }
  34. }
  35. }
  36. }
  37. class javax::swing::colorchooser::DefaultHSBChooserPanel : public ::javax::swing::colorchooser::AbstractColorChooserPanel
  38. {
  39. public: // actually package-private
  40. DefaultHSBChooserPanel();
  41. public:
  42. virtual ::java::lang::String * getDisplayName();
  43. virtual void updateChooser();
  44. public: // actually protected
  45. virtual void buildChooser();
  46. public:
  47. virtual void uninstallChooserPanel(::javax::swing::JColorChooser *);
  48. private:
  49. ::java::awt::Container * buildRightPanel();
  50. public:
  51. virtual ::javax::swing::Icon * getSmallDisplayIcon();
  52. virtual ::javax::swing::Icon * getLargeDisplayIcon();
  53. virtual void paint(::java::awt::Graphics *);
  54. private:
  55. void updateHLockImage();
  56. void updateBLockImage();
  57. void updateSLockImage();
  58. public: // actually package-private
  59. virtual void updateImage();
  60. private:
  61. void updateTextFields();
  62. public: // actually package-private
  63. virtual void updateSlider();
  64. virtual void updateTrack();
  65. private:
  66. void updateHTrack();
  67. void updateSTrack();
  68. void updateBTrack();
  69. JArray< jfloat > * getHSBValues();
  70. public: // actually package-private
  71. ::java::awt::Image * __attribute__((aligned(__alignof__( ::javax::swing::colorchooser::AbstractColorChooserPanel)))) gradientImage;
  72. private:
  73. ::javax::swing::JPanel * gradientPanel;
  74. public: // actually package-private
  75. ::java::awt::Image * trackImage;
  76. private:
  77. ::javax::swing::JPanel * trackPanel;
  78. public: // actually package-private
  79. ::javax::swing::JSlider * slider;
  80. ::javax::swing::JRadioButton * hRadio;
  81. ::javax::swing::JRadioButton * sRadio;
  82. ::javax::swing::JRadioButton * bRadio;
  83. ::javax::swing::JSpinner * hSpinner;
  84. ::javax::swing::JSpinner * sSpinner;
  85. ::javax::swing::JSpinner * bSpinner;
  86. private:
  87. static const jint imgWidth = 200;
  88. static const jint imgHeight = 200;
  89. static const jint trackWidth = 30;
  90. static ::javax::swing::JLabel * R;
  91. static ::javax::swing::JLabel * G;
  92. static ::javax::swing::JLabel * B;
  93. ::javax::swing::JLabel * rFull;
  94. ::javax::swing::JLabel * gFull;
  95. ::javax::swing::JLabel * bFull;
  96. public: // actually package-private
  97. ::java::awt::Point * gradientPoint;
  98. jboolean internalChange;
  99. jboolean spinnerTrigger;
  100. jint locked;
  101. static const jint HLOCKED = 0;
  102. static const jint SLOCKED = 1;
  103. static const jint BLOCKED = 2;
  104. jboolean handlingMouse;
  105. public:
  106. static ::java::lang::Class class$;
  107. };
  108. #endif // __javax_swing_colorchooser_DefaultHSBChooserPanel__