public class JBColor
extends java.awt.Color
Modifier and Type | Field and Description |
---|---|
static JBColor |
black |
static JBColor |
BLACK |
static JBColor |
blue |
static JBColor |
BLUE |
static java.awt.Color |
cyan |
static java.awt.Color |
CYAN |
static JBColor |
DARK_GRAY |
static JBColor |
darkGray |
static JBColor |
gray |
static JBColor |
GRAY |
static JBColor |
green |
static JBColor |
GREEN |
static JBColor |
LIGHT_GRAY |
static JBColor |
lightGray |
static java.awt.Color |
magenta |
static java.awt.Color |
MAGENTA |
static JBColor |
orange |
static JBColor |
ORANGE |
static java.awt.Color |
PanelBackground |
static JBColor |
pink |
static JBColor |
PINK |
static JBColor |
red |
static JBColor |
RED |
static JBColor |
white |
static JBColor |
WHITE |
static JBColor |
yellow |
static JBColor |
YELLOW |
Constructor and Description |
---|
JBColor(java.awt.Color regular,
java.awt.Color dark) |
JBColor(int rgb,
int darkRGB) |
JBColor(NotNullProducer<? extends java.awt.Color> function) |
Modifier and Type | Method and Description |
---|---|
static java.awt.Color |
background() |
static java.awt.Color |
border() |
java.awt.Color |
brighter() |
java.awt.PaintContext |
createContext(java.awt.image.ColorModel cm,
java.awt.Rectangle r,
java.awt.geom.Rectangle2D r2d,
java.awt.geom.AffineTransform affineTransform,
java.awt.RenderingHints hints) |
java.awt.Color |
darker() |
boolean |
equals(java.lang.Object obj) |
static java.awt.Color |
foreground() |
static java.awt.Color |
get(java.lang.String colorId,
java.awt.Color defaultColor) |
int |
getAlpha() |
int |
getBlue() |
float [] |
getColorComponents(java.awt.color.ColorSpace colorSpace,
float[] compArray) |
float [] |
getColorComponents(float[] compArray) |
java.awt.color.ColorSpace |
getColorSpace() |
float [] |
getComponents(java.awt.color.ColorSpace colorSpace,
float[] compArray) |
float [] |
getComponents(float[] compArray) |
int |
getGreen() |
int |
getRed() |
int |
getRGB() |
float [] |
getRGBColorComponents(float[] compArray) |
float [] |
getRGBComponents(float[] compArray) |
int |
getTransparency() |
int |
hashCode() |
static boolean |
isBright() |
static java.awt.Color |
link()
Deprecated.
use
JBUI.CurrentTheme.Link#linkColor() |
static JBColor |
namedColor(java.lang.String propertyName,
java.awt.Color defaultColor) |
static JBColor |
namedColor(java.lang.String propertyName,
int defaultValueRGB) |
static JBColor |
namedColor(java.lang.String propertyName,
int defaultValueRGB,
int darkValueRGB) |
static void |
setDark(boolean dark) |
java.lang.String |
toString() |
public static final java.awt.Color PanelBackground
public static final JBColor red
public static final JBColor RED
public static final JBColor blue
public static final JBColor BLUE
public static final JBColor white
public static final JBColor WHITE
public static final JBColor black
public static final JBColor BLACK
public static final JBColor gray
public static final JBColor GRAY
public static final JBColor lightGray
public static final JBColor LIGHT_GRAY
public static final JBColor darkGray
public static final JBColor DARK_GRAY
public static final JBColor pink
public static final JBColor PINK
public static final JBColor orange
public static final JBColor ORANGE
public static final JBColor yellow
public static final JBColor YELLOW
public static final JBColor green
public static final JBColor GREEN
public static final java.awt.Color magenta
public static final java.awt.Color MAGENTA
public static final java.awt.Color cyan
public static final java.awt.Color CYAN
public JBColor(int rgb, int darkRGB)
public JBColor(java.awt.Color regular, java.awt.Color dark)
public JBColor(NotNullProducer<? extends java.awt.Color> function)
public static JBColor namedColor(java.lang.String propertyName, int defaultValueRGB)
public static JBColor namedColor(java.lang.String propertyName, int defaultValueRGB, int darkValueRGB)
public static JBColor namedColor(java.lang.String propertyName, java.awt.Color defaultColor)
@Deprecated public static java.awt.Color link()
JBUI.CurrentTheme.Link#linkColor()
public static void setDark(boolean dark)
public static boolean isBright()
public int getRed()
getRed
in class java.awt.Color
public int getGreen()
getGreen
in class java.awt.Color
public int getBlue()
getBlue
in class java.awt.Color
public int getAlpha()
getAlpha
in class java.awt.Color
public int getRGB()
getRGB
in class java.awt.Color
public java.awt.Color brighter()
brighter
in class java.awt.Color
public java.awt.Color darker()
darker
in class java.awt.Color
public int hashCode()
hashCode
in class java.awt.Color
public boolean equals(java.lang.Object obj)
equals
in class java.awt.Color
public java.lang.String toString()
toString
in class java.awt.Color
public float [] getRGBComponents(float[] compArray)
getRGBComponents
in class java.awt.Color
public float [] getRGBColorComponents(float[] compArray)
getRGBColorComponents
in class java.awt.Color
public float [] getComponents(float[] compArray)
getComponents
in class java.awt.Color
public float [] getColorComponents(float[] compArray)
getColorComponents
in class java.awt.Color
public float [] getComponents(java.awt.color.ColorSpace colorSpace, float[] compArray)
getComponents
in class java.awt.Color
public float [] getColorComponents(java.awt.color.ColorSpace colorSpace, float[] compArray)
getColorComponents
in class java.awt.Color
public java.awt.color.ColorSpace getColorSpace()
getColorSpace
in class java.awt.Color
public java.awt.PaintContext createContext(java.awt.image.ColorModel cm, java.awt.Rectangle r, java.awt.geom.Rectangle2D r2d, java.awt.geom.AffineTransform affineTransform, java.awt.RenderingHints hints)
createContext
in interface java.awt.Paint
createContext
in class java.awt.Color
public int getTransparency()
getTransparency
in interface java.awt.Transparency
getTransparency
in class java.awt.Color
public static java.awt.Color foreground()
public static java.awt.Color background()
public static java.awt.Color border()
public static java.awt.Color get(java.lang.String colorId, java.awt.Color defaultColor)