public class PrintColor extends Color
Modifier and Type | Field and Description |
---|---|
protected boolean |
asBlack |
protected float |
asGray |
static int |
BLACK_AND_WHITE |
static int |
COLOR |
protected static Color[] |
defaultColors |
static int |
GRAYSCALE |
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 |
---|
PrintColor(Color color,
float asGray,
boolean asBlack) |
PrintColor(float red,
float green,
float blue,
float asGray,
boolean asBlack) |
PrintColor(float red,
float green,
float blue,
float alpha,
float asGray,
boolean asBlack) |
Modifier and Type | Method and Description |
---|---|
static PrintColor |
createPrintColor(Color color) |
boolean |
equals(Object obj) |
boolean |
getAsBlack() |
float |
getAsGray() |
PrintColor |
getColor(int mode) |
static Color |
getDefaultColor(int index) |
int |
hashCode() |
static PrintColor |
invert(Color color) |
static Color |
mixColor(Color c1,
Color c2) |
String |
toString() |
brighter, createContext, darker, decode, getAlpha, getBlue, getColor, getColor, getColor, getColorComponents, getColorComponents, getColorSpace, getComponents, getComponents, getGreen, getHSBColor, getRed, getRGB, getRGBColorComponents, getRGBComponents, getTransparency, HSBtoRGB, RGBtoHSB
public static final int COLOR
public static final int GRAYSCALE
public static final int BLACK_AND_WHITE
protected static Color[] defaultColors
protected float asGray
protected boolean asBlack
public PrintColor(float red, float green, float blue, float asGray, boolean asBlack)
public PrintColor(float red, float green, float blue, float alpha, float asGray, boolean asBlack)
public PrintColor(Color color, float asGray, boolean asBlack)
public float getAsGray()
public boolean getAsBlack()
public PrintColor getColor(int mode)
public static PrintColor createPrintColor(Color color)
public static Color getDefaultColor(int index)
public static PrintColor invert(Color color)
Copyright © 2014. All rights reserved.