Class ARGBARGBColorConverter<R>
java.lang.Object
net.imglib2.display.ARGBARGBColorConverter<R>
- All Implemented Interfaces:
Converter<R,ARGBType>, ColorConverter, LinearRange
- Direct Known Subclasses:
ARGBARGBColorConverter.ToGray, ARGBARGBColorConverter.VolatileToGray
public abstract class ARGBARGBColorConverter<R>
extends Object
implements ColorConverter, Converter<R,ARGBType>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA 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 -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
min
protected double min -
max
protected double max -
color
-
A
protected int A -
scaleR
protected double scaleR -
scaleG
protected double scaleG -
scaleB
protected double scaleB -
black
protected int black
-
-
Constructor Details
-
ARGBARGBColorConverter
public ARGBARGBColorConverter(double min, double max)
-
-
Method Details
-
getColor
- Specified by:
getColorin interfaceColorConverter
-
setColor
- Specified by:
setColorin interfaceColorConverter
-
supportsColor
public boolean supportsColor()- Specified by:
supportsColorin interfaceColorConverter
-
getMin
public double getMin()- Specified by:
getMinin interfaceLinearRange
-
getMax
public double getMax()- Specified by:
getMaxin interfaceLinearRange
-
setMax
public void setMax(double max) - Specified by:
setMaxin interfaceLinearRange
-
setMin
public void setMin(double min) - Specified by:
setMinin interfaceLinearRange
-
update
private void update() -
convertColor
int convertColor(int color)
-