Package idare.imagenode.ColorManagement
Class ColorScaleFactory
- java.lang.Object
-
- idare.imagenode.ColorManagement.ColorScaleFactory
-
public class ColorScaleFactory extends Object
TheColorScaleFactory
can either generate individualColorScale
s or sets ofColorScale
s which possess specific properties.- Author:
- Thomas Pfau
-
-
Field Summary
Fields Modifier and Type Field Description static String
BLUEWHITERED
-
Constructor Summary
Constructors Constructor Description ColorScaleFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ColorScale
getColorScale(String ColorScaleClass)
Get a ColorScale based on a given class namestatic Vector<ColorScale>
getContinousColorScales()
Get a set of continuousColorScale
s.static Collection<ColorScale>
getDiscreetColorScales(int colorcount)
Get a set of discreetColorScale
s.static Vector<ColorScale>
getNonWhiteDiscreteColorScales(int colorcount)
-
-
-
Field Detail
-
BLUEWHITERED
public static String BLUEWHITERED
-
-
Method Detail
-
getColorScale
public static ColorScale getColorScale(String ColorScaleClass)
Get a ColorScale based on a given class name- Parameters:
ColorScaleClass
- The java canonical class name of theColorScale
- Returns:
- an instance of the requested
ColorScale
or aBlueWhiteRedScale
if the class could not be found.
-
getDiscreetColorScales
public static Collection<ColorScale> getDiscreetColorScales(int colorcount)
Get a set of discreetColorScale
s.- Parameters:
colorcount
- - The number of colors to use for the Discreet scale.- Returns:
- a Collection of Color Scales which are discreet
-
getContinousColorScales
public static Vector<ColorScale> getContinousColorScales()
Get a set of continuousColorScale
s.- Returns:
- a Collection of Color Scales which are continuous
-
getNonWhiteDiscreteColorScales
public static Vector<ColorScale> getNonWhiteDiscreteColorScales(int colorcount)
-
-