public class GraduatedStyles extends Ranges implements IncludeInStyle, java.lang.Cloneable
categories, elemCountPerCategory, nbCategories, nullThematicCategory, nullValueSupportedattribStats, attributeIndexes, baseLayerStyle, description, elemCount, enabled, name, nullValueCategorized, outOfSampleDataIgnored, primitiveType, subTitle, title, userDefined| Constructor and Description |
|---|
GraduatedStyles() |
GraduatedStyles(java.lang.String name,
java.lang.String description,
CategoriesFactory factory,
int primitiveType,
Style[] styleArr,
Style baseStyle,
double percentGradient1,
int[] attributeIndexes,
AttributeStat[] stats,
double roundAt,
boolean validated)
Constructs the GraduatedStyles instance with the specified parameters
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Constructs a clone of this theme.
|
boolean |
equals(java.lang.Object o) |
Style[] |
getCategoriesStyle(double percentGradient1)
return an array of Style representing the thematic's styles
|
Style[] |
getCategoriesStyle(java.lang.String paletteName,
boolean isApplyToFillColor,
boolean isApplyToLineColor,
boolean isApplyToBorderColor,
boolean isApplyToPatternColor)
return an array of Style representing the thematic's styles based on a
ColorBrewer Palette
|
Style |
getStyle(java.lang.Object[] values)
Returns the style that corresponds to the specified values in the thematic.
|
clone, createFormatString, findCategory, findRangeIndex, getDoubleValue, getFirstStyle, getLastStyle, getMidStyles, isCustomizable, updateThematicgetCategories, getColorPaletteApplyToBorderColor, getColorPaletteApplyToFillColor, getColorPaletteApplyToLineColor, getColorPaletteApplyToPatternColor, getColorPaletteName, getElemCountPerCategory, getNbCategories, getNullThematicCategory, getStyles, isDynamicLegend, isNullValueSupported, removeTranslationsOtherThan, setCategories, setColorPaletteApplyToBorderColor, setColorPaletteApplyToFillColor, setColorPaletteApplyToLineColor, setColorPaletteApplyToPatternColor, setColorPaletteName, setDynamicLegend, setElemCountPerCategory, setNbCategories, setNullThematicCategory, setNullValueSupportedgetAttribStats, getAttributeIndexes, getDescription, getDescription, getName, getName, getSubTitle, getSubTitle, getTitle, getTitle, isNamed, isNullValueCategorized, setAttribStats, setAttributeIndexes, setDescription, setDescription, setName, setName, setNullValueCategorized, setSubTitle, setSubTitle, setTitle, setTitlegetAvailableLocales, getTranslation, isTranslationExists, setTranslation, updateTranslationspublic GraduatedStyles(java.lang.String name,
java.lang.String description,
CategoriesFactory factory,
int primitiveType,
Style[] styleArr,
Style baseStyle,
double percentGradient1,
int[] attributeIndexes,
AttributeStat[] stats,
double roundAt,
boolean validated)
name - the name of the thematicdescription - the thematic descriptionfactory - the good factory (equalCountCategories, EqualRangeCategories...)primitiveType - the type of elements (point, line ...)styleArr - the styles for the beginning, the inflexion and the end of the
classification by rangebaseStyle - the initial stylepercentGradient1 - represent the percent for the inflexion pointattributeIndexes - the indexes of the attributes in the table (only one here,
represents the attribute needed to make the thematic)stats - the attributeStat instance that keep different information on the
values used to separate the categories.roundAt - used for rounding off to determine the upper and lower bounds ofpublic GraduatedStyles()
public java.lang.Object clone()
Thematicpublic Style[] getCategoriesStyle(double percentGradient1)
RangesgetCategoriesStyle in class RangespercentGradient1 - represent the percent for the inflexion pointpublic Style[] getCategoriesStyle(java.lang.String paletteName, boolean isApplyToFillColor, boolean isApplyToLineColor, boolean isApplyToBorderColor, boolean isApplyToPatternColor)
RangesgetCategoriesStyle in class Rangespublic Style getStyle(java.lang.Object[] values)
IncludeInStylegetStyle in interface IncludeInStylevalues - the values to use.