Package net.imglib2.display
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 java.lang.Object implements ColorConverter, Converter<R,ARGBType>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classARGBARGBColorConverter.ToGrayA 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 classARGBARGBColorConverter.VolatileToGray
-
Constructor Summary
Constructors Constructor Description ARGBARGBColorConverter(double min, double max)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) intconvertColor(int color)ARGBTypegetColor()doublegetMax()doublegetMin()voidsetColor(ARGBType c)voidsetMax(double max)voidsetMin(double min)booleansupportsColor()private voidupdate()
-
-
-
Field Detail
-
min
protected double min
-
max
protected double max
-
color
protected final ARGBType color
-
A
protected int A
-
scaleR
protected double scaleR
-
scaleG
protected double scaleG
-
scaleB
protected double scaleB
-
black
protected int black
-
-
Method Detail
-
getColor
public ARGBType getColor()
- Specified by:
getColorin interfaceColorConverter
-
setColor
public void setColor(ARGBType c)
- 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)
-
-