org.jhotdraw.color
Class ComplexColorWheelImageProducer
- java.lang.Object
-
- java.awt.image.MemoryImageSource
-
- org.jhotdraw.color.AbstractColorWheelImageProducer
-
- org.jhotdraw.color.ComplexColorWheelImageProducer
-
- All Implemented Interfaces:
- java.awt.image.ImageProducer
public class ComplexColorWheelImageProducer extends AbstractColorWheelImageProducer
Produces the image of aJColorWheelby interpreting two components of aColorSpaceas complex numbers (real and imaginary).- See Also:
JColorWheel
-
-
Constructor Summary
Constructors Constructor and Description ComplexColorWheelImageProducer(java.awt.color.ColorSpace sys, int w, int h)Creates a new instance.ComplexColorWheelImageProducer(java.awt.color.ColorSpace sys, int w, int h, boolean flipX, boolean flipY)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(float[] components)booleanneedsGeneration()voidregenerateColorWheel()-
Methods inherited from class org.jhotdraw.color.AbstractColorWheelImageProducer
getColorLocation, getRadius, setAngularComponentIndex, setRadialComponentIndex, setVerticalComponentIndex, setVerticalValue
-
-
-
-
Constructor Detail
-
ComplexColorWheelImageProducer
public ComplexColorWheelImageProducer(java.awt.color.ColorSpace sys, int w, int h)Creates a new instance.
-
ComplexColorWheelImageProducer
public ComplexColorWheelImageProducer(java.awt.color.ColorSpace sys, int w, int h, boolean flipX, boolean flipY)Creates a new instance.
-
-
Method Detail
-
needsGeneration
public boolean needsGeneration()
- Overrides:
needsGenerationin classAbstractColorWheelImageProducer
-
regenerateColorWheel
public void regenerateColorWheel()
- Overrides:
regenerateColorWheelin classAbstractColorWheelImageProducer
-
generateColorWheel
public void generateColorWheel()
-
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