|
Quaqua 8.0 2011-10-02 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.image.MemoryImageSource
ch.randelshofer.quaqua.colorchooser.ColorWheelImageProducer
public class ColorWheelImageProducer
Produces the image of a ColorWheel.
Field Summary | |
---|---|
protected int[] |
alphas
Lookup table for alphas. |
protected float |
brightness
|
protected int |
h
|
protected float[] |
hues
Lookup table for hues. |
protected boolean |
isDirty
|
protected int[] |
pixels
|
protected float[] |
saturations
Lookup table for saturations. |
protected int |
w
|
Constructor Summary | |
---|---|
ColorWheelImageProducer(int w,
int h)
Creates a new instance. |
Method Summary | |
---|---|
void |
generateColorWheel()
|
protected void |
generateLookupTables()
|
protected float[] |
getColorAt(int x,
int y,
int width,
int height)
|
protected java.awt.Point |
getColorLocation(java.awt.Color c,
int width,
int height)
|
protected java.awt.Point |
getColorLocation(float hue,
float saturation,
float brightness,
int width,
int height)
|
int |
getRadius()
|
boolean |
needsGeneration()
|
void |
regenerateColorWheel()
|
void |
setBrightness(float newValue)
|
Methods inherited from class java.awt.image.MemoryImageSource |
---|
addConsumer, isConsumer, newPixels, newPixels, newPixels, newPixels, newPixels, removeConsumer, requestTopDownLeftRightResend, setAnimated, setFullBufferUpdates, startProduction |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int[] pixels
protected int w
protected int h
protected float brightness
protected boolean isDirty
protected float[] hues
protected float[] saturations
protected int[] alphas
Constructor Detail |
---|
public ColorWheelImageProducer(int w, int h)
Method Detail |
---|
public int getRadius()
protected void generateLookupTables()
public void setBrightness(float newValue)
public boolean needsGeneration()
public void regenerateColorWheel()
public void generateColorWheel()
protected java.awt.Point getColorLocation(java.awt.Color c, int width, int height)
protected java.awt.Point getColorLocation(float hue, float saturation, float brightness, int width, int height)
protected float[] getColorAt(int x, int y, int width, int height)
|
Copyright 2003-2007 (c) Werner Randelshofer. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |