instance(PaletteType type) Creates a static instance of ColorBrewer containing a subset of the
default palettes.
Parameters: type - A PaletteType object which will be used to configure thereturned ColorBrewer.
loadPalettes() Loads the default ColorBrewer palettes.
public void
loadPalettes(PaletteType type) Loads into the ColorBrewer instance the set of palettes which have the
PaletteType matching that of the parameter.
public void
loadPalettes(InputStream XMLinput, PaletteType type) Loads into the ColorBrewer instance the set of palettes matching the
given parameters.
Parameters: XMLinput - Parameters: type - identifier for palettes.
Generates a String array with the names of the palettes in the
ColorBrewer instance.
A String array with the names of the palettes in the ColorBrewerinstance.
getPaletteNames
publicString[] getPaletteNames(int minClasses, int maxClasses)(Code)
Generates an array of palette names for palettes which have at least x
classes and at most y classes.
Parameters: minClasses - x Parameters: maxClasses - y A string array of palette names filtered by number of classes.
public boolean hasPalette(String paletteName)(Code)
Returns true if the palette exists in this ColorBrewer
Parameters: paletteName - A String with the name of the palette A boolean, true if the ColorBrewer has a palette of the namegiven.
Creates a static instance of ColorBrewer containing a subset of the
default palettes.
Parameters: type - A PaletteType object which will be used to configure thereturned ColorBrewer. The ColorBrewer instance with the palette from the parameter. throws: IOException -
isSet
public boolean isSet(int singleValue, int multipleValue)(Code)
Loads into the ColorBrewer instance the set of palettes which have the
PaletteType matching that of the parameter.
Parameters: type - The PaletteType for the palettes to load. throws: IOException -
Loads into the ColorBrewer instance the set of palettes matching the
given parameters.
Parameters: XMLinput - Parameters: type - identifier for palettes. use "new PaletteType();"