Java Swing Tutorial - Color Example








Field

  1. Java Color black
  2. Java Color BLACK
  3. Java Color blue
  4. Java Color BLUE
  5. Java Color cyan
  6. Java Color CYAN
  7. Java Color DARK_GRAY
  8. Java Color darkGray
  9. Java Color gray
  10. Java Color GRAY
  11. Java Color green
  12. Java Color GREEN
  13. Java Color LIGHT_GRAY
  14. Java Color lightGray
  15. Java Color magenta
  16. Java Color MAGENTA
  17. Java Color orange
  18. Java Color ORANGE
  19. Java Color pink
  20. Java Color PINK
  21. Java Color red
  22. Java Color RED
  23. Java Color white
  24. Java Color WHITE
  25. Java Color yellow
  26. Java Color YELLOW




Constructor

  1. Java Color(ColorSpace cspace, float[] components, float alpha) Constructor
  2. Java Color(float r, float g, float b) Constructor
  3. Java Color(float r, float g, float b, float a) Constructor
  4. Java Color(int rgb) Constructor
  5. Java Color(int rgba, boolean hasalpha) Constructor
  6. Java Color(int r, int g, int b) Constructor
  7. Java Color(int r, int g, int b, int a) Constructor




Method

  1. Java Color.brighter()
  2. Java Color.darker()
  3. Java Color.decode(String nm)
  4. Java Color.equals(Object obj)
  5. Java Color.getAlpha()
  6. Java Color.getBlue()
  7. Java Color.getColor(String nm)
  8. Java Color.getColor(String nm, Color v)
  9. Java Color.getColor(String nm, int v)
  10. Java Color .getColorComponents (ColorSpace cspace, float[] compArray)
  11. Java Color .getColorComponents (float[] compArray)
  12. Java Color.getColorSpace()
  13. Java Color .getComponents (ColorSpace cspace, float[] compArray)
  14. Java Color.getComponents(float[] compArray)
  15. Java Color.getGreen()
  16. Java Color.getHSBColor(float h, float s, float b)
  17. Java Color.getRed()
  18. Java Color.getRGB()
  19. Java Color .getRGBColorComponents (float[] compArray)
  20. Java Color .getRGBComponents (float[] compArray)
  21. Java Color.getTransparency()
  22. Java Color.hashCode()
  23. Java Color.HSBtoRGB(float hue, float saturation, float brightness)
  24. Java Color.RGBtoHSB(int r, int g, int b, float[] hsbvals)
  25. Java Color.toString()