|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.image.MemoryImageSource
ij2x.plugin.color.AbstractColorWheel
public abstract class AbstractColorWheel
Title:
Description:
Copyright: Copyright (c) 2011
Company:
Field Summary | |
---|---|
protected int |
angularIndex
|
protected java.awt.color.ColorSpace |
colorSpace
|
protected int |
h
|
protected boolean |
isLookupValid
|
protected boolean |
isPixelsValid
|
protected int[] |
pixels
|
protected int |
radialIndex
|
protected int |
verticalIndex
|
protected float |
verticalValue
|
protected int |
w
|
Constructor Summary | |
---|---|
AbstractColorWheel(java.awt.color.ColorSpace sys,
int[] pixels,
int w,
int h)
|
|
AbstractColorWheel(java.awt.color.ColorSpace sys,
int w,
int h)
|
Method Summary | |
---|---|
static float[] |
fromColor(java.awt.color.ColorSpace colorSpace,
java.awt.Color c)
Returns the color components in the specified color space from a Color object. |
static float[] |
fromRGB(java.awt.color.ColorSpace colorSpace,
int rgb)
Returns the color components in the specified color space from an rgb value. |
static float[] |
fromRGB(java.awt.color.ColorSpace colorSpace,
int r,
int g,
int b)
Returns the color components in the specified color space from RGB values. |
protected abstract void |
generateColorWheel()
|
abstract float[] |
getColorAt(int x,
int y)
|
java.awt.Point |
getColorLocation(java.awt.Color c)
|
abstract java.awt.Point |
getColorLocation(float[] components)
|
int |
getRadius()
|
static boolean |
isEqual(java.awt.color.ColorSpace a,
java.awt.color.ColorSpace b)
Returns true, if the two color spaces are equal. |
boolean |
needsGeneration()
|
void |
regenerateColorWheel()
|
void |
setAngularComponentIndex(int newValue)
|
void |
setRadialComponentIndex(int newValue)
|
void |
setVerticalComponentIndex(int newValue)
|
void |
setVerticalValue(float newValue)
|
static int |
toRGB(java.awt.color.ColorSpace colorSpace,
float... components)
Returns an rgb value from color components in the specified color space. |
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 java.awt.color.ColorSpace colorSpace
protected int radialIndex
protected int angularIndex
protected int verticalIndex
protected boolean isPixelsValid
protected float verticalValue
protected boolean isLookupValid
Constructor Detail |
---|
public AbstractColorWheel(java.awt.color.ColorSpace sys, int w, int h)
public AbstractColorWheel(java.awt.color.ColorSpace sys, int[] pixels, int w, int h)
Method Detail |
---|
public void setRadialComponentIndex(int newValue)
public void setAngularComponentIndex(int newValue)
public void setVerticalComponentIndex(int newValue)
public void setVerticalValue(float newValue)
public boolean needsGeneration()
public void regenerateColorWheel()
public int getRadius()
protected abstract void generateColorWheel()
public java.awt.Point getColorLocation(java.awt.Color c)
public abstract java.awt.Point getColorLocation(float[] components)
public abstract float[] getColorAt(int x, int y)
public static float[] fromColor(java.awt.color.ColorSpace colorSpace, java.awt.Color c)
Color
object.
public static boolean isEqual(java.awt.color.ColorSpace a, java.awt.color.ColorSpace b)
public static float[] fromRGB(java.awt.color.ColorSpace colorSpace, int rgb)
public static float[] fromRGB(java.awt.color.ColorSpace colorSpace, int r, int g, int b)
public static int toRGB(java.awt.color.ColorSpace colorSpace, float... components)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |