public class ColorUIResource extends Color implements UIResource
Warning:
Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is
appropriate for short term storage or RMI between applications running
the same version of Swing. As of 1.4, support for long term storage
of all JavaBeans™
has been added to the java.beans
package.
Please see XMLEncoder
.
UIResource
black, BLACK, blue, BLUE, cyan, CYAN, DARK_GRAY, darkGray, gray, GRAY, green, GREEN, LIGHT_GRAY, lightGray, magenta, MAGENTA, orange, ORANGE, pink, PINK, red, RED, white, WHITE, yellow, YELLOW
BITMASK, OPAQUE, TRANSLUCENT
Constructor and Description |
---|
ColorUIResource(Color c)
Constructs a
ColorUIResource . |
ColorUIResource(float r,
float g,
float b)
Constructs a
ColorUIResource . |
ColorUIResource(int rgb)
Constructs a
ColorUIResource . |
ColorUIResource(int r,
int g,
int b)
Constructs a
ColorUIResource . |
brighter, createContext, darker, decode, equals, getAlpha, getBlue, getColor, getColor, getColor, getColorComponents, getColorComponents, getColorSpace, getComponents, getComponents, getGreen, getHSBColor, getRed, getRGB, getRGBColorComponents, getRGBComponents, getTransparency, hashCode, HSBtoRGB, RGBtoHSB, toString
@ConstructorProperties(value={"red","green","blue"}) public ColorUIResource(int r, int g, int b)
ColorUIResource
.r
- the red componentg
- the green componentb
- the blue componentpublic ColorUIResource(int rgb)
ColorUIResource
.rgb
- the combined RGB componentspublic ColorUIResource(float r, float g, float b)
ColorUIResource
.r
- the red componentg
- the green componentb
- the blue componentpublic ColorUIResource(Color c)
ColorUIResource
.c
- the color Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2016, Oracle and/or its affiliates. All rights reserved.
DRAFT 9-internal+0-2016-01-26-133437.ivan.openjdk9onspinwait