org.jhotdraw.color
Class PolarColorWheelImageProducer
- java.lang.Object
-
- java.awt.image.MemoryImageSource
-
- org.jhotdraw.color.AbstractColorWheelImageProducer
-
- org.jhotdraw.color.PolarColorWheelImageProducer
-
- All Implemented Interfaces:
- java.awt.image.ImageProducer
- Direct Known Subclasses:
- HSLHarmonicColorWheelImageProducer, HSVHarmonicColorWheelImageProducer
public class PolarColorWheelImageProducer extends AbstractColorWheelImageProducer
Produces the image of aJColorWheelby interpreting two components of aColorSpaceas polar coordinates (angle and radius).
-
-
Constructor Summary
Constructors Constructor and Description PolarColorWheelImageProducer(java.awt.color.ColorSpace sys, int w, int h)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidgenerateColorWheel()float[]getColorAt(int x, int y)java.awt.PointgetColorLocation(java.awt.Color c)java.awt.PointgetColorLocation(float[] components)-
Methods inherited from class org.jhotdraw.color.AbstractColorWheelImageProducer
getRadius, needsGeneration, regenerateColorWheel, setAngularComponentIndex, setRadialComponentIndex, setVerticalComponentIndex, setVerticalValue
-
-
-
-
Constructor Detail
-
PolarColorWheelImageProducer
public PolarColorWheelImageProducer(java.awt.color.ColorSpace sys, int w, int h)Creates a new instance.
-
-
Method Detail
-
generateColorWheel
public void generateColorWheel()
-
getColorLocation
public java.awt.Point getColorLocation(java.awt.Color c)
- Overrides:
getColorLocationin classAbstractColorWheelImageProducer
-
getColorLocation
public java.awt.Point getColorLocation(float[] components)
- Specified by:
getColorLocationin classAbstractColorWheelImageProducer
-
getColorAt
public float[] getColorAt(int x, int y)- Specified by:
getColorAtin classAbstractColorWheelImageProducer
-
-
DataMelt 3.0 © DataMelt by jWork.ORG