Package com.intellij.ui
Class JBColor
java.lang.Object
java.awt.Color
com.intellij.ui.JBColor
- All Implemented Interfaces:
Paint,Transparency,Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JBColorstatic final JBColorstatic final JBColorstatic final JBColorstatic final Colorstatic final Colorstatic final JBColorstatic final JBColorstatic final JBColorstatic final JBColorstatic final JBColorstatic final JBColorstatic final JBColorstatic final JBColorstatic final Colorstatic final Colorstatic final JBColorstatic final JBColorstatic final JBColorstatic final JBColorstatic final JBColorstatic final JBColorstatic final JBColorstatic final JBColorstatic final JBColorstatic final JBColorFields inherited from interface java.awt.Transparency
BITMASK, OPAQUE, TRANSLUCENT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Colorstatic Colorborder()brighter()createContext(ColorModel cm, Rectangle r, Rectangle2D r2d, AffineTransform xform, RenderingHints hints) darker()booleanstatic ColorintgetAlpha()intgetBlue()float[]getColorComponents(float[] compArray) float[]getColorComponents(ColorSpace cspace, float[] compArray) float[]getComponents(float[] compArray) float[]getComponents(ColorSpace cspace, float[] compArray) intgetGreen()intgetRed()intgetRGB()float[]getRGBColorComponents(float[] compArray) float[]getRGBComponents(float[] compArray) intinthashCode()static booleanisBright()static voidsetDark(boolean dark) toString()
-
Field Details
-
red
-
RED
-
blue
-
BLUE
-
white
-
WHITE
-
black
-
BLACK
-
gray
-
GRAY
-
lightGray
-
LIGHT_GRAY
-
darkGray
-
DARK_GRAY
-
pink
-
PINK
-
orange
-
ORANGE
-
yellow
-
YELLOW
-
green
-
GREEN
-
magenta
-
MAGENTA
-
cyan
-
CYAN
-
-
Constructor Details
-
JBColor
public JBColor(int rgb, int darkRGB) -
JBColor
-
JBColor
-
-
Method Details
-
setDark
public static void setDark(boolean dark) -
isBright
public static boolean isBright() -
getRed
public int getRed() -
getGreen
public int getGreen() -
getBlue
public int getBlue() -
getAlpha
public int getAlpha() -
getRGB
public int getRGB() -
brighter
-
darker
-
hashCode
public int hashCode() -
equals
-
toString
-
getRGBComponents
public float[] getRGBComponents(float[] compArray) - Overrides:
getRGBComponentsin classColor
-
getRGBColorComponents
public float[] getRGBColorComponents(float[] compArray) - Overrides:
getRGBColorComponentsin classColor
-
getComponents
public float[] getComponents(float[] compArray) - Overrides:
getComponentsin classColor
-
getColorComponents
public float[] getColorComponents(float[] compArray) - Overrides:
getColorComponentsin classColor
-
getComponents
- Overrides:
getComponentsin classColor
-
getColorComponents
- Overrides:
getColorComponentsin classColor
-
getColorSpace
- Overrides:
getColorSpacein classColor
-
createContext
public PaintContext createContext(ColorModel cm, Rectangle r, Rectangle2D r2d, AffineTransform xform, RenderingHints hints) - Specified by:
createContextin interfacePaint- Overrides:
createContextin classColor
-
getTransparency
public int getTransparency()- Specified by:
getTransparencyin interfaceTransparency- Overrides:
getTransparencyin classColor
-
foreground
-
background
-
border
-