Package org.geotools.brewer.color
Class PaletteType
- Object
-
- PaletteType
-
public class PaletteType extends Object
This class doubles as a filter and an identifier for colour palettes.
-
-
Constructor Summary
Constructors Constructor Description PaletteType()
PaletteType(boolean suitableRanged, boolean suitableUnique)
PaletteType(boolean suitableRanged, boolean suitableUnique, String name)
Creates an identifier for palettes
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object arg0)
String
getName()
int
hashCode()
boolean
isMatch(PaletteType filter)
boolean
isSuitableRanged()
Deterines if this PaletteType instance is suitable ranged.boolean
isSuitableUnique()
-
-
-
Constructor Detail
-
PaletteType
public PaletteType(boolean suitableRanged, boolean suitableUnique, String name)
Creates an identifier for palettes- Parameters:
name
- simple identifier
-
PaletteType
public PaletteType(boolean suitableRanged, boolean suitableUnique)
- Parameters:
suitableRanged
- true, false, or null (for don't care)
-
PaletteType
public PaletteType()
-
-
Method Detail
-
getName
public String getName()
-
isSuitableRanged
public boolean isSuitableRanged()
Deterines if this PaletteType instance is suitable ranged.- Returns:
- a boolean, true if the paletteType is sutableRanged.
-
isSuitableUnique
public boolean isSuitableUnique()
-
isMatch
public boolean isMatch(PaletteType filter)
-
-