Class ColorWheelImageProducer
java.lang.Object
java.awt.image.MemoryImageSource
org.pushingpixels.radiance.theming.internal.contrib.randelshofer.quaqua.colorchooser.ColorWheelImageProducer
- All Implemented Interfaces:
ImageProducer
Produces the image of a ColorWheel.
- Version:
- 1.0 August 27, 2005 Created.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int[]Lookup table for alphas.private floatprivate intprivate float[]Lookup table for hues.private booleanprivate int[]private float[]Lookup table for saturations.private int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprivate voidintbooleanvoidvoidsetBrightness(float newValue) Methods inherited from class MemoryImageSource
addConsumer, isConsumer, newPixels, newPixels, newPixels, newPixels, newPixels, removeConsumer, requestTopDownLeftRightResend, setAnimated, setFullBufferUpdates, startProduction
-
Field Details
-
pixels
private int[] pixels -
w
private int w -
h
private int h -
brightness
private float brightness -
isDirty
private boolean isDirty -
hues
private float[] huesLookup table for hues. -
saturations
private float[] saturationsLookup table for saturations. -
alphas
private int[] alphasLookup table for alphas. The alpha value is used for antialiasing the color wheel.
-
-
Constructor Details
-
ColorWheelImageProducer
public ColorWheelImageProducer(int w, int h) Creates a new instance.
-
-
Method Details
-
getRadius
public int getRadius() -
generateLookupTables
private void generateLookupTables() -
setBrightness
public void setBrightness(float newValue) -
needsGeneration
public boolean needsGeneration() -
regenerateColorWheel
public void regenerateColorWheel() -
generateColorWheel
public void generateColorWheel()
-