public class ColorSquareImageProducer extends AbstractColorWheelImageProducer
JColorWheel
by interpreting two
components of a ColorSpace
as x and y coordinates.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 |
---|
ColorSquareImageProducer(java.awt.color.ColorSpace sys,
int w,
int h)
Creates a new instance.
|
ColorSquareImageProducer(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() |
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 ColorSquareImageProducer(java.awt.color.ColorSpace sys, int w, int h)
public ColorSquareImageProducer(java.awt.color.ColorSpace sys, int w, int h, boolean flipX, boolean flipY)
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