Package com.kheops.jmap.client.thematic
Class Thematic
java.lang.Object
com.kheops.jmap.metadata.LocalizedObject
com.kheops.jmap.client.thematic.Thematic
- All Implemented Interfaces:
Serializable,Cloneable
- Direct Known Subclasses:
Classification,ProportionalQuantities
This is an abstract class that represents a theme that can be applied to a
layer to produce a thematic map. A thematic map represents the elements with
different styles depending on the value of a certain field of data. A theme
has a certain number of categories or classes that are used to match the
values to the correct style.
Subclasses of this class must implement the mechanisms necessary to build the categories and to provide the correct style for any given value accordingly. TODO : implement normalization natural breaks density dot raster density
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Objectclone()Constructs a clone of this theme.protected voidbooleangets the stats array linked with the attributeIndexes arrayint[]gets an array of attribute indexes this array only contains many indexes for the ChartThematicgets the thematic descriptiongetDescription(Locale locale) Gets the description of this thematic for a specific locale.getName()Returns the thematic nameGets the name of this thematic for a specific locale.Deprecated.getSubTitle(Locale locale) getTitle()booleanChecks if the thematic is named (including available translations, case insensitive) as the specified value.booleanDeprecated.voidremoveTranslationsOtherThan(Locale[] locales) Removes anyLocalefrom this object that are not in the specifiedlocales.voidsetAttribStats(AttributeStat[] stats) sets the stats array linked with the attributeIndexes arrayvoidsetAttributeIndexes(int[] is) sets an array of attribute indexes this array only contains many indexes for the ChartThematicvoidsetDescription(String description) sets the thematic descriptionvoidsetDescription(String description, Locale locale) Sets the description of this thematic for the specified Locale.voidSets the thematic namevoidSets the name of this thematic for the specified Locale.voidsetNullThematicCategory(ThematicCategory thematicCategory) Deprecated.voidsetNullValueCategorized(boolean nullValueCategorized) Deprecated.voidsetSubTitle(String subTitle) voidsetSubTitle(String subTitle, Locale locale) voidvoidMethods inherited from class com.kheops.jmap.metadata.LocalizedObject
getAvailableLocales, getTranslation, isTranslationExists, setTranslation, updateTranslations
-
Field Details
-
enabled
protected boolean enabled -
name
-
description
-
primitiveType
protected int primitiveType -
baseLayerStyle
-
elemCount
protected int elemCount -
attributeIndexes
protected int[] attributeIndexes -
attribStats
-
title
-
subTitle
-
outOfSampleDataIgnored
protected boolean outOfSampleDataIgnored -
nullValueCategorized
Deprecated. -
userDefined
protected boolean userDefined
-
-
Constructor Details
-
Thematic
public Thematic()
-
-
Method Details
-
getName
Returns the thematic name- Returns:
- the thematic name
-
getName
Gets the name of this thematic for a specific locale.- Parameters:
locale-- Returns:
- name.
-
setName
Sets the thematic name- Parameters:
name- the thematic name
-
setName
Sets the name of this thematic for the specified Locale.- Parameters:
name- the new given name.locale- the locale for this name
-
getDescription
gets the thematic description- Returns:
- the thematic description
-
getDescription
Gets the description of this thematic for a specific locale.- Parameters:
locale-- Returns:
- description.
-
setDescription
sets the thematic description- Parameters:
description-
-
setDescription
Sets the description of this thematic for the specified Locale.- Parameters:
description- the new given description.locale- the locale for this description
-
clone
Constructs a clone of this theme. -
clone
-
getAttribStats
gets the stats array linked with the attributeIndexes array- Returns:
-
getAttributeIndexes
public int[] getAttributeIndexes()gets an array of attribute indexes this array only contains many indexes for the ChartThematic- Returns:
- an array of indexes
-
setAttribStats
sets the stats array linked with the attributeIndexes array- Parameters:
stats-
-
setAttributeIndexes
public void setAttributeIndexes(int[] is) sets an array of attribute indexes this array only contains many indexes for the ChartThematic- Parameters:
is-
-
getSubTitle
-
getSubTitle
-
setSubTitle
-
setSubTitle
-
getTitle
-
getTitle
-
setTitle
-
setTitle
-
equals
-
isNullValueCategorized
Deprecated.If null values are categorized.- Returns:
- true if a category should be created for null values
-
setNullValueCategorized
Deprecated.Sets whether a category should be created for null values- Parameters:
nullValueCategorized-
-
isNamed
Checks if the thematic is named (including available translations, case insensitive) as the specified value.- Parameters:
value-- Returns:
-
getNullThematicCategory
Deprecated.Returns the ThematicCategory for the null value, if it applies to the Thematic type. Null otherwise. Must be overridden and implemented for extending thematics as the base thematic class does not handle the null value category.- Returns:
- ThematicCategory for the null value
-
setNullThematicCategory
Deprecated.Sets the null value ThematicCategory. Must be overridden and implemented for extending thematics as the base thematic class does not handle null categories.- Parameters:
thematicCategory- associated with the null value
-
removeTranslationsOtherThan
Description copied from class:LocalizedObjectRemoves anyLocalefrom this object that are not in the specifiedlocales.locales[0]should be the default language- Overrides:
removeTranslationsOtherThanin classLocalizedObject- Parameters:
locales-
-