API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing.plaf. ColorUIResource View Source
Author(s)
Since
Version
Serial
Hierarchy
 Object
      Color
          ColorUIResource
Implements
 UIResource
Subclasses
Description
public class ColorUIResource
See also:   
Constructors
public ColorUIResource (Color c)
public ColorUIResource (float r, float g, float b)
public ColorUIResource (int rgb)
public ColorUIResource (int r, int g, int b)
Methods
Hide/Show inherited methods
public Color brighter () [Inherited From Color]
  Creates a new Color that is a brighter version of this Color.
publicsynchronized PaintContext createContext (ColorModel cm, Rectangle r, Rectangle2D r2d, AffineTransform xform, RenderingHints hints) [Inherited From Color]
  Creates and returns a PaintContext used to generate a solid color pattern.
public Color darker () [Inherited From Color]
  Creates a new Color that is a darker version of this Color.
publicstatic Color decode (String nm) throws NumberFormatException [Inherited From Color]
  Converts a String to an integer and returns the specified opaque Color.
public boolean equals (Object obj) [Inherited From Color]
  Determines whether another object is equal to this Color.
public int getAlpha () [Inherited From Color]
  Returns the alpha component in the range 0-255.
public int getBlue () [Inherited From Color]
  Returns the blue component in the range 0-255 in the default sRGB space.
publicstatic Color getColor (String nm) [Inherited From Color]
  Finds a color in the system properties.
publicstatic Color getColor (String nm, Color v) [Inherited From Color]
  Finds a color in the system properties.
publicstatic Color getColor (String nm, int v) [Inherited From Color]
  Finds a color in the system properties.
public float getColorComponents (ColorSpace cspace, float[] compArray) [Inherited From Color]
  Returns a float array containing only the color components of the Color in the ColorSpace specified by the cspace parameter.
public float getColorComponents (float[] compArray) [Inherited From Color]
  Returns a float array containing only the color components of the Color, in the ColorSpace of the Color.
public ColorSpace getColorSpace () [Inherited From Color]
  Returns the ColorSpace of this Color.
public float getComponents (ColorSpace cspace, float[] compArray) [Inherited From Color]
  Returns a float array containing the color and alpha components of the Color, in the ColorSpace specified by the cspace parameter.
public float getComponents (float[] compArray) [Inherited From Color]
  Returns a float array containing the color and alpha components of the Color, in the ColorSpace of the Color.
public int getGreen () [Inherited From Color]
  Returns the green component in the range 0-255 in the default sRGB space.
publicstatic Color getHSBColor (float h, float s, float b) [Inherited From Color]
  Creates a Color object based on the specified values for the HSB color model.
public int getRed () [Inherited From Color]
  Returns the red component in the range 0-255 in the default sRGB space.
public int getRGB () [Inherited From Color]
  Returns the RGB value representing the color in the default sRGB ColorModel.
public float getRGBColorComponents (float[] compArray) [Inherited From Color]
  Returns a float array containing only the color components of the Color, in the default sRGB color space.
public float getRGBComponents (float[] compArray) [Inherited From Color]
  Returns a float array containing the color and alpha components of the Color, as represented in the default sRGB color space.
public int getTransparency () [Inherited From Color]
  Returns the transparency mode for this Color.
public int hashCode () [Inherited From Color]
  Computes the hash code for this Color.
publicstatic int HSBtoRGB (float hue, float saturation, float brightness) [Inherited From Color]
  Converts the components of a color, as specified by the HSB model, to an equivalent set of values for the default RGB model.
publicstatic float RGBtoHSB (int r, int g, int b, float[] hsbvals) [Inherited From Color]
  Converts the components of a color, as specified by the default RGB model, to an equivalent set of values for hue, saturation, and brightness that are the three components of the HSB model.
public String toString () [Inherited From Color]
  Returns a string representation of this Color.
Fields
Hide/Show inherited fields
publicfinalstatic Color black [Inherited From Color]
  The color black.
publicfinalstatic Color BLACK [Inherited From Color]
  The color black.
publicfinalstatic Color blue [Inherited From Color]
  The color blue.
publicfinalstatic Color BLUE [Inherited From Color]
  The color blue.
publicfinalstatic Color cyan [Inherited From Color]
  The color cyan.
publicfinalstatic Color CYAN [Inherited From Color]
  The color cyan.
publicfinalstatic Color DARK_GRAY [Inherited From Color]
  The color dark gray.
publicfinalstatic Color darkGray [Inherited From Color]
  The color dark gray.
publicfinalstatic Color gray [Inherited From Color]
  The color gray.
publicfinalstatic Color GRAY [Inherited From Color]
  The color gray.
publicfinalstatic Color green [Inherited From Color]
  The color green.
publicfinalstatic Color GREEN [Inherited From Color]
  The color green.
publicfinalstatic Color LIGHT_GRAY [Inherited From Color]
  The color light gray.
publicfinalstatic Color lightGray [Inherited From Color]
  The color light gray.
publicfinalstatic Color magenta [Inherited From Color]
  The color magenta.
publicfinalstatic Color MAGENTA [Inherited From Color]
  The color magenta.
publicfinalstatic Color orange [Inherited From Color]
  The color orange.
publicfinalstatic Color ORANGE [Inherited From Color]
  The color orange.
publicfinalstatic Color pink [Inherited From Color]
  The color pink.
publicfinalstatic Color PINK [Inherited From Color]
  The color pink.
publicfinalstatic Color red [Inherited From Color]
  The color red.
publicfinalstatic Color RED [Inherited From Color]
  The color red.
publicfinalstatic Color white [Inherited From Color]
  The color white.
publicfinalstatic Color WHITE [Inherited From Color]
  The color white.
publicfinalstatic Color yellow [Inherited From Color]
  The color yellow.
publicfinalstatic Color YELLOW [Inherited From Color]
  The color yellow.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar