public class QuantizingColorWheelImageProducer extends AbstractColorWheelImageProducer
JColorWheel| Modifier and Type | Field and Description |
|---|---|
protected int[] |
alphas
Lookup table for alphas.
|
protected int |
angularQuantization |
protected float[] |
angulars
Lookup table for angular component values.
|
protected int |
radialQuantization |
protected float[] |
radials
Lookup table for radial component values.
|
angularIndex, colorSpace, h, isLookupValid, isPixelsValid, pixels, radialIndex, verticalIndex, verticalValue, w| Constructor and Description |
|---|
QuantizingColorWheelImageProducer(java.awt.color.ColorSpace sys,
int w,
int h)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
generateColorWheel() |
protected void |
generateLookupTables() |
float[] |
getColorAt(int x,
int y) |
java.awt.Point |
getColorLocation(float[] components) |
boolean |
needsGeneration() |
void |
regenerateColorWheel() |
getColorLocation, getRadius, setAngularComponentIndex, setRadialComponentIndex, setVerticalComponentIndex, setVerticalValueprotected float[] angulars
protected float[] radials
protected int[] alphas
protected int angularQuantization
protected int radialQuantization
public QuantizingColorWheelImageProducer(java.awt.color.ColorSpace sys,
int w,
int h)
protected void generateLookupTables()
public boolean needsGeneration()
needsGeneration in class AbstractColorWheelImageProducerpublic void regenerateColorWheel()
regenerateColorWheel in class AbstractColorWheelImageProducerpublic void generateColorWheel()
generateColorWheel in class AbstractColorWheelImageProducerpublic java.awt.Point getColorLocation(float[] components)
getColorLocation in class AbstractColorWheelImageProducerpublic float[] getColorAt(int x,
int y)
getColorAt in class AbstractColorWheelImageProducer