Color.h 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __java_awt_Color__
  3. #define __java_awt_Color__
  4. #pragma interface
  5. #include <java/lang/Object.h>
  6. #include <gcj/array.h>
  7. extern "Java"
  8. {
  9. namespace java
  10. {
  11. namespace awt
  12. {
  13. class Color;
  14. class ColorPaintContext;
  15. class PaintContext;
  16. class Rectangle;
  17. class RenderingHints;
  18. namespace color
  19. {
  20. class ColorSpace;
  21. }
  22. namespace geom
  23. {
  24. class AffineTransform;
  25. class Rectangle2D;
  26. }
  27. namespace image
  28. {
  29. class ColorModel;
  30. }
  31. }
  32. }
  33. }
  34. class java::awt::Color : public ::java::lang::Object
  35. {
  36. public:
  37. Color(jint, jint, jint);
  38. Color(jint, jint, jint, jint);
  39. Color(jint);
  40. Color(jint, jboolean);
  41. Color(jfloat, jfloat, jfloat);
  42. Color(jfloat, jfloat, jfloat, jfloat);
  43. Color(::java::awt::color::ColorSpace *, JArray< jfloat > *, jfloat);
  44. virtual jint getRed();
  45. virtual jint getGreen();
  46. virtual jint getBlue();
  47. virtual jint getAlpha();
  48. virtual jint getRGB();
  49. virtual ::java::awt::Color * brighter();
  50. virtual ::java::awt::Color * darker();
  51. virtual jint hashCode();
  52. virtual jboolean equals(::java::lang::Object *);
  53. virtual ::java::lang::String * toString();
  54. static ::java::awt::Color * decode(::java::lang::String *);
  55. static ::java::awt::Color * getColor(::java::lang::String *);
  56. static ::java::awt::Color * getColor(::java::lang::String *, ::java::awt::Color *);
  57. static ::java::awt::Color * getColor(::java::lang::String *, jint);
  58. static jint HSBtoRGB(jfloat, jfloat, jfloat);
  59. static JArray< jfloat > * RGBtoHSB(jint, jint, jint, JArray< jfloat > *);
  60. static ::java::awt::Color * getHSBColor(jfloat, jfloat, jfloat);
  61. virtual JArray< jfloat > * getRGBComponents(JArray< jfloat > *);
  62. virtual JArray< jfloat > * getRGBColorComponents(JArray< jfloat > *);
  63. virtual JArray< jfloat > * getComponents(JArray< jfloat > *);
  64. virtual JArray< jfloat > * getColorComponents(JArray< jfloat > *);
  65. virtual JArray< jfloat > * getComponents(::java::awt::color::ColorSpace *, JArray< jfloat > *);
  66. virtual JArray< jfloat > * getColorComponents(::java::awt::color::ColorSpace *, JArray< jfloat > *);
  67. virtual ::java::awt::color::ColorSpace * getColorSpace();
  68. virtual ::java::awt::PaintContext * createContext(::java::awt::image::ColorModel *, ::java::awt::Rectangle *, ::java::awt::geom::Rectangle2D *, ::java::awt::geom::AffineTransform *, ::java::awt::RenderingHints *);
  69. virtual jint getTransparency();
  70. private:
  71. static jint convert(jfloat, jfloat, jfloat, jfloat);
  72. static const jlong serialVersionUID = 118526816881161077LL;
  73. public:
  74. static ::java::awt::Color * white;
  75. static ::java::awt::Color * WHITE;
  76. static ::java::awt::Color * lightGray;
  77. static ::java::awt::Color * LIGHT_GRAY;
  78. static ::java::awt::Color * gray;
  79. static ::java::awt::Color * GRAY;
  80. static ::java::awt::Color * darkGray;
  81. static ::java::awt::Color * DARK_GRAY;
  82. static ::java::awt::Color * black;
  83. static ::java::awt::Color * BLACK;
  84. static ::java::awt::Color * red;
  85. static ::java::awt::Color * RED;
  86. static ::java::awt::Color * pink;
  87. static ::java::awt::Color * PINK;
  88. static ::java::awt::Color * orange;
  89. static ::java::awt::Color * ORANGE;
  90. static ::java::awt::Color * yellow;
  91. static ::java::awt::Color * YELLOW;
  92. static ::java::awt::Color * green;
  93. static ::java::awt::Color * GREEN;
  94. static ::java::awt::Color * magenta;
  95. static ::java::awt::Color * MAGENTA;
  96. static ::java::awt::Color * cyan;
  97. static ::java::awt::Color * CYAN;
  98. static ::java::awt::Color * blue;
  99. static ::java::awt::Color * BLUE;
  100. private:
  101. static const jint RED_MASK = 16711680;
  102. static const jint GREEN_MASK = 65280;
  103. static const jint BLUE_MASK = 255;
  104. public: // actually package-private
  105. static const jint ALPHA_MASK = -16777216;
  106. private:
  107. static jfloat BRIGHT_SCALE;
  108. public: // actually package-private
  109. jint __attribute__((aligned(__alignof__( ::java::lang::Object)))) value;
  110. private:
  111. JArray< jfloat > * frgbvalue;
  112. JArray< jfloat > * fvalue;
  113. jfloat falpha;
  114. ::java::awt::color::ColorSpace * cs;
  115. public: // actually package-private
  116. ::java::awt::ColorPaintContext * context;
  117. public:
  118. static ::java::lang::Class class$;
  119. };
  120. #endif // __java_awt_Color__