public class ComplexColorWheelImageProducer extends AbstractColorWheelImageProducer
JColorWheel
by interpreting two components
of a ColorSpace
as complex numbers (real and imaginary).JColorWheel
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 |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
void |
generateColorWheel() |
protected void |
generateLookupTables() |
protected void |
generateLookupTables1() |
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
public ComplexColorWheelImageProducer(java.awt.color.ColorSpace sys, int w, int h)
public ComplexColorWheelImageProducer(java.awt.color.ColorSpace sys, int w, int h, boolean flipX, boolean flipY)
protected void generateLookupTables1()
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