public class PolarColorWheelImageProducer extends AbstractColorWheelImageProducer
JColorWheel
by interpreting two components
of a ColorSpace
as polar coordinates (angle and radius).Modifier and Type | Field and Description |
---|---|
protected int[] |
alphas
Lookup table for alphas.
|
protected float[] |
angulars
Lookup table for angular component values.
|
protected float[] |
radials
Lookup table for radial component values.
|
angularIndex, colorSpace, h, isLookupValid, isPixelsValid, pixels, radialIndex, verticalIndex, verticalValue, w
Constructor and Description |
---|
PolarColorWheelImageProducer(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(java.awt.Color c) |
java.awt.Point |
getColorLocation(float[] components) |
getRadius, needsGeneration, regenerateColorWheel, setAngularComponentIndex, setRadialComponentIndex, setVerticalComponentIndex, setVerticalValue
protected float[] angulars
protected float[] radials
protected int[] alphas
public PolarColorWheelImageProducer(java.awt.color.ColorSpace sys, int w, int h)
protected void generateLookupTables()
public void generateColorWheel()
generateColorWheel
in class AbstractColorWheelImageProducer
public java.awt.Point getColorLocation(java.awt.Color c)
getColorLocation
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