public abstract class ARGBARGBColorConverter<R> extends Object implements ColorConverter, Converter<R,ARGBType>
Modifier and Type | Class and Description |
---|---|
static class |
ARGBARGBColorConverter.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 |
ARGBARGBColorConverter.VolatileToGray |
Modifier and Type | Field and Description |
---|---|
protected int |
A |
protected int |
black |
protected ARGBType |
color |
protected double |
max |
protected double |
min |
protected double |
scaleB |
protected double |
scaleG |
protected double |
scaleR |
Constructor and Description |
---|
ARGBARGBColorConverter(double min,
double max) |
Modifier and Type | Method and Description |
---|---|
ARGBType |
getColor() |
double |
getMax() |
double |
getMin() |
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 ARGBType getColor()
getColor
in interface ColorConverter
public void setColor(ARGBType c)
setColor
in interface ColorConverter
public boolean supportsColor()
supportsColor
in interface ColorConverter
public double getMin()
getMin
in interface LinearRange
public double getMax()
getMax
in interface LinearRange
public void setMax(double max)
setMax
in interface LinearRange
public void setMin(double min)
setMin
in interface LinearRange
Copyright © 2015–2021 Fiji. All rights reserved.