|
JHotDraw 7.4.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.image.MemoryImageSource
org.jhotdraw.color.ColorWheelImageProducer
public class ColorWheelImageProducer
Produces the image of a ColorWheel.
JColorWheel| Field Summary | |
|---|---|
protected int[] |
alphas
Lookup table for alphas. |
protected int |
angularIndex
|
protected float[] |
angulars
Lookup table for angular component values. |
protected ColorSystem |
colorSystem
|
protected int |
h
|
protected boolean |
isLookupValid
|
protected boolean |
isPixelsValid
|
protected int[] |
pixels
|
protected int |
radialIndex
|
protected float[] |
radials
Lookup table for radial component values. |
protected int |
verticalIndex
|
protected float |
verticalValue
|
protected int |
w
|
| Constructor Summary | |
|---|---|
ColorWheelImageProducer(ColorSystem sys,
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(CompositeColor c,
int width,
int height)
|
protected java.awt.Point |
getColorLocation(float[] components,
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 |
setAngularComponentIndex(int newValue)
|
void |
setRadialComponentIndex(int newValue)
|
void |
setVerticalComponentIndex(int newValue)
|
void |
setVerticalValue(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 verticalValue
protected boolean isLookupValid
protected boolean isPixelsValid
protected float[] angulars
protected float[] radials
protected int[] alphas
protected ColorSystem colorSystem
protected int radialIndex
protected int angularIndex
protected int verticalIndex
| Constructor Detail |
|---|
public ColorWheelImageProducer(ColorSystem sys,
int w,
int h)
| Method Detail |
|---|
public int getRadius()
public void setRadialComponentIndex(int newValue)
public void setAngularComponentIndex(int newValue)
public void setVerticalComponentIndex(int newValue)
protected void generateLookupTables()
public void setVerticalValue(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 java.awt.Point getColorLocation(CompositeColor c,
int width,
int height)
protected java.awt.Point getColorLocation(float[] components,
int width,
int height)
protected float[] getColorAt(int x,
int y,
int width,
int height)
|
Copyright 1996-2010 (c) by the authors and contributors of the JHotDraw project. Some rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||