public abstract class ARGBtoRandomARGBColorConverter<R> extends Object implements ColorConverter, Converter<R,ARGBType>
| Modifier and Type | Class and Description |
|---|---|
static class |
ARGBtoRandomARGBColorConverter.ToGray
A converter from a ARGB to ARGB that initially converts the input color to grayscale,
then scales the resulting grayscale value with the set color.
|
static class |
ARGBtoRandomARGBColorConverter.VolatileToGray |
| Modifier and Type | Field and Description |
|---|---|
protected int |
A |
protected int |
black |
protected ARGBType |
color |
protected HashSet<Integer> |
colorset |
protected HashMap<Integer,Integer> |
map |
protected double |
max |
protected double |
min |
protected double |
scaleB |
protected double |
scaleG |
protected double |
scaleR |
| Constructor and Description |
|---|
ARGBtoRandomARGBColorConverter(double min,
double max) |
| Modifier and Type | Method and Description |
|---|---|
ARGBType |
getColor() |
double |
getMax() |
double |
getMin() |
int |
newColor() |
void |
setColor(ARGBType c) |
void |
setMax(double max) |
void |
setMin(double min) |
boolean |
supportsColor() |
protected double min
protected double max
protected final ARGBType color
protected int A
protected double scaleR
protected double scaleG
protected double scaleB
protected int black
public ARGBtoRandomARGBColorConverter(double min,
double max)
public ARGBType getColor()
getColor in interface ColorConverterpublic void setColor(ARGBType c)
setColor in interface ColorConverterpublic boolean supportsColor()
supportsColor in interface ColorConverterpublic double getMin()
getMin in interface LinearRangepublic double getMax()
getMax in interface LinearRangepublic void setMax(double max)
setMax in interface LinearRangepublic void setMin(double min)
setMin in interface LinearRangepublic int newColor()
Copyright © 2015–2021 Fiji. All rights reserved.