Package com.incors.plaf
Class ColorUIResource2
java.lang.Object
java.awt.Color
javax.swing.plaf.ColorUIResource
com.incors.plaf.ColorUIResource2
- All Implemented Interfaces:
java.awt.Paint
,java.awt.Transparency
,java.io.Serializable
,javax.swing.plaf.UIResource
public class ColorUIResource2
extends javax.swing.plaf.ColorUIResource
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description private java.awt.Color
myColor
-
Constructor Summary
Constructors Constructor Description ColorUIResource2(float r, float g, float b)
ColorUIResource2(float r, float g, float b, float alpha)
ColorUIResource2(int rgb)
ColorUIResource2(int rgba, boolean hasalpha)
ColorUIResource2(int r, int g, int b)
ColorUIResource2(int r, int g, int b, int a)
ColorUIResource2(java.awt.Color c)
-
Method Summary
Modifier and Type Method Description 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 xform, java.awt.RenderingHints hints)
java.awt.Color
darker()
boolean
equals(java.lang.Object obj)
int
getAlpha()
int
getBlue()
float[]
getColorComponents(float[] compArray)
float[]
getColorComponents(java.awt.color.ColorSpace cspace, float[] compArray)
java.awt.color.ColorSpace
getColorSpace()
float[]
getComponents(float[] compArray)
float[]
getComponents(java.awt.color.ColorSpace cspace, float[] compArray)
int
getGreen()
int
getRed()
int
getRGB()
float[]
getRGBColorComponents(float[] compArray)
float[]
getRGBComponents(float[] compArray)
int
getTransparency()
int
hashCode()
java.lang.String
toString()
-
Field Details
-
myColor
private java.awt.Color myColor
-
-
Constructor Details
-
ColorUIResource2
public ColorUIResource2(java.awt.Color c) -
ColorUIResource2
public ColorUIResource2(int r, int g, int b) -
ColorUIResource2
public ColorUIResource2(int r, int g, int b, int a) -
ColorUIResource2
public ColorUIResource2(int rgb) -
ColorUIResource2
public ColorUIResource2(int rgba, boolean hasalpha) -
ColorUIResource2
public ColorUIResource2(float r, float g, float b) -
ColorUIResource2
public ColorUIResource2(float r, float g, float b, float alpha)
-
-
Method Details
-
getRed
public int getRed()- Overrides:
getRed
in classjava.awt.Color
-
getGreen
public int getGreen()- Overrides:
getGreen
in classjava.awt.Color
-
getBlue
public int getBlue()- Overrides:
getBlue
in classjava.awt.Color
-
getAlpha
public int getAlpha()- Overrides:
getAlpha
in classjava.awt.Color
-
getRGB
public int getRGB()- Overrides:
getRGB
in classjava.awt.Color
-
brighter
public java.awt.Color brighter()- Overrides:
brighter
in classjava.awt.Color
-
darker
public java.awt.Color darker()- Overrides:
darker
in classjava.awt.Color
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.awt.Color
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equals
in classjava.awt.Color
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.awt.Color
-
getRGBComponents
public float[] getRGBComponents(float[] compArray)- Overrides:
getRGBComponents
in classjava.awt.Color
-
getRGBColorComponents
public float[] getRGBColorComponents(float[] compArray)- Overrides:
getRGBColorComponents
in classjava.awt.Color
-
getComponents
public float[] getComponents(float[] compArray)- Overrides:
getComponents
in classjava.awt.Color
-
getColorComponents
public float[] getColorComponents(float[] compArray)- Overrides:
getColorComponents
in classjava.awt.Color
-
getComponents
public float[] getComponents(java.awt.color.ColorSpace cspace, float[] compArray)- Overrides:
getComponents
in classjava.awt.Color
-
getColorComponents
public float[] getColorComponents(java.awt.color.ColorSpace cspace, float[] compArray)- Overrides:
getColorComponents
in classjava.awt.Color
-
getColorSpace
public java.awt.color.ColorSpace getColorSpace()- Overrides:
getColorSpace
in classjava.awt.Color
-
createContext
public java.awt.PaintContext createContext(java.awt.image.ColorModel cm, java.awt.Rectangle r, java.awt.geom.Rectangle2D r2d, java.awt.geom.AffineTransform xform, java.awt.RenderingHints hints)- Specified by:
createContext
in interfacejava.awt.Paint
- Overrides:
createContext
in classjava.awt.Color
-
getTransparency
public int getTransparency()- Specified by:
getTransparency
in interfacejava.awt.Transparency
- Overrides:
getTransparency
in classjava.awt.Color
-