com.alee.laf.colorchooser
Class PaletteColorChooserPaint
java.lang.Object
com.alee.laf.colorchooser.PaletteColorChooserPaint
- All Implemented Interfaces:
- java.awt.Paint, java.awt.Transparency
public class PaletteColorChooserPaint
- extends java.lang.Object
- implements java.awt.Paint
User: mgarin Date: 07.07.2010 Time: 17:30:58
Fields inherited from interface java.awt.Transparency |
BITMASK, OPAQUE, TRANSLUCENT |
Method Summary |
java.awt.PaintContext |
createContext(java.awt.image.ColorModel cm,
java.awt.Rectangle deviceBounds,
java.awt.geom.Rectangle2D userBounds,
java.awt.geom.AffineTransform xform,
java.awt.RenderingHints hints)
|
java.awt.Color |
getColor(int xCoord,
int yCoord)
|
java.awt.Color |
getCornerColor()
|
int |
getTransparency()
|
boolean |
isWebSafe()
|
void |
setWebSafe(boolean webSafe)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PaletteColorChooserPaint
public PaletteColorChooserPaint(int x,
int y,
int width,
int height,
java.awt.Color cornerColor)
createContext
public java.awt.PaintContext createContext(java.awt.image.ColorModel cm,
java.awt.Rectangle deviceBounds,
java.awt.geom.Rectangle2D userBounds,
java.awt.geom.AffineTransform xform,
java.awt.RenderingHints hints)
- Specified by:
createContext
in interface java.awt.Paint
getColor
public java.awt.Color getColor(int xCoord,
int yCoord)
getTransparency
public int getTransparency()
- Specified by:
getTransparency
in interface java.awt.Transparency
getCornerColor
public java.awt.Color getCornerColor()
isWebSafe
public boolean isWebSafe()
setWebSafe
public void setWebSafe(boolean webSafe)