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, setVerticalValue
protected 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 AbstractColorWheelImageProducer
public void regenerateColorWheel()
regenerateColorWheel
in class AbstractColorWheelImageProducer
public void generateColorWheel()
generateColorWheel
in class AbstractColorWheelImageProducer
public java.awt.Point getColorLocation(float[] components)
getColorLocation
in class AbstractColorWheelImageProducer
public float[] getColorAt(int x, int y)
getColorAt
in class AbstractColorWheelImageProducer