public class CMYKColor extends ExtendedColor
Modifier and Type | Field and Description |
---|---|
(package private) float |
black |
(package private) float |
cyan |
(package private) float |
magenta |
private static long |
serialVersionUID |
(package private) float |
yellow |
type, TYPE_CMYK, TYPE_GRAY, TYPE_PATTERN, TYPE_RGB, TYPE_SEPARATION, TYPE_SHADING
Constructor and Description |
---|
CMYKColor(float floatCyan,
float floatMagenta,
float floatYellow,
float floatBlack)
Construct a CMYK Color.
|
CMYKColor(int intCyan,
int intMagenta,
int intYellow,
int intBlack)
Constructs a CMYK Color based on 4 color values (values are integers from 0 to 255).
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
float |
getBlack() |
float |
getCyan() |
float |
getMagenta() |
float |
getYellow() |
int |
hashCode() |
getType, getType, normalize
brighter, createContext, darker, decode, getAlpha, getBlue, getColor, getColor, getColor, getColorComponents, getColorComponents, getColorSpace, getComponents, getComponents, getGreen, getHSBColor, getRed, getRGB, getRGBColorComponents, getRGBComponents, getTransparency, HSBtoRGB, RGBtoHSB, toString
private static final long serialVersionUID
float cyan
float magenta
float yellow
float black
public CMYKColor(int intCyan, int intMagenta, int intYellow, int intBlack)
intCyan
- intMagenta
- intYellow
- intBlack
- public CMYKColor(float floatCyan, float floatMagenta, float floatYellow, float floatBlack)
floatCyan
- floatMagenta
- floatYellow
- floatBlack
- public float getCyan()
public float getMagenta()
public float getYellow()
public float getBlack()
public boolean equals(java.lang.Object obj)
equals
in class java.awt.Color
public int hashCode()
hashCode
in class java.awt.Color