|
JSR 217 (Maintenance Release) | ||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Color | |
java.awt | Contains all of the classes for creating user interfaces and for painting graphics and images. |
Uses of Color in java.awt |
Subclasses of Color in java.awt | |
class |
SystemColor
A class to encapsulate symbolic colors representing the color of native GUI objects on a system. |
Fields in java.awt declared as Color | |
static Color |
Color.white
An object of type Color representing
the color white. |
static Color |
Color.WHITE
An object of type Color representing
the color white. |
static Color |
Color.lightGray
An object of type Color representing
the color light gray. |
static Color |
Color.LIGHT_GRAY
An object of type Color representing
the color light gray. |
static Color |
Color.gray
An object of type Color representing
the color gray. |
static Color |
Color.GRAY
An object of type Color representing
the color gray. |
static Color |
Color.darkGray
An object of type Color representing
the color dark gray. |
static Color |
Color.DARK_GRAY
An object of type Color representing
the color dark gray. |
static Color |
Color.black
An object of type Color representing
the color black. |
static Color |
Color.BLACK
An object of type Color representing
the color black. |
static Color |
Color.red
An object of type Color representing
the color red. |
static Color |
Color.RED
An object of type Color representing
the color red. |
static Color |
Color.pink
An object of type Color representing
the color pink. |
static Color |
Color.PINK
An object of type Color representing
the color pink. |
static Color |
Color.orange
An object of type Color representing
the color orange. |
static Color |
Color.ORANGE
An object of type Color representing
the color orange. |
static Color |
Color.yellow
An object of type Color representing
the color yellow. |
static Color |
Color.YELLOW
An object of type Color representing
the color yellow. |
static Color |
Color.green
An object of type Color representing
the color green. |
static Color |
Color.GREEN
An object of type Color representing
the color green. |
static Color |
Color.magenta
An object of type Color representing
the color magenta. |
static Color |
Color.MAGENTA
An object of type Color representing
the color magenta. |
static Color |
Color.cyan
An object of type Color representing
the color cyan. |
static Color |
Color.CYAN
An object of type Color representing
the color cyan. |
static Color |
Color.blue
An object of type Color representing
the color blue. |
static Color |
Color.BLUE
An object of type Color representing
the color blue. |
Methods in java.awt that return Color | |
abstract Color |
Graphics.getColor()
Gets this graphics context's current color. |
Color |
Component.getForeground()
Gets the foreground color of this component. |
Color |
Component.getBackground()
Gets the background color of this component. |
Color |
Color.brighter()
Creates a new Color that is a brighter version of this
Color . |
Color |
Color.darker()
Creates a new Color that is a darker version of this
Color . |
static Color |
Color.decode(String nm)
Converts a String to an integer and returns the
specified opaque Color . |
static Color |
Color.getColor(String nm)
Finds a color in the system properties. |
static Color |
Color.getColor(String nm,
Color v)
Finds a color in the system properties. |
static Color |
Color.getColor(String nm,
int v)
Finds a color in the system properties. |
static Color |
Color.getHSBColor(float h,
float s,
float b)
Creates a Color object based on the specified values
for the HSB color model. |
Methods in java.awt with parameters of type Color | |
abstract void |
Graphics.setColor(Color c)
Sets this graphics context's current color to the specified color. |
abstract void |
Graphics.setXORMode(Color c1)
Sets the paint mode of this graphics context to alternate between this graphics context's current color and the new specified color. |
abstract boolean |
Graphics.drawImage(Image img,
int x,
int y,
Color bgcolor,
ImageObserver observer)
Draws as much of the specified image as is currently available. |
abstract boolean |
Graphics.drawImage(Image img,
int x,
int y,
int width,
int height,
Color bgcolor,
ImageObserver observer)
Draws as much of the specified image as has already been scaled to fit inside the specified rectangle. |
abstract boolean |
Graphics.drawImage(Image img,
int dx1,
int dy1,
int dx2,
int dy2,
int sx1,
int sy1,
int sx2,
int sy2,
Color bgcolor,
ImageObserver observer)
Draws as much of the specified area of the specified image as is currently available, scaling it on the fly to fit inside the specified area of the destination drawable surface. |
void |
Component.setForeground(Color c)
Sets the foreground color of this component. |
void |
Component.setBackground(Color c)
Sets the background color of this component. |
static Color |
Color.getColor(String nm,
Color v)
Finds a color in the system properties. |
|
JSR 217 (Maintenance Release) | ||||||||||
PREV NEXT | FRAMES NO FRAMES |