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

public abstract class Thematic extends LocalizedObject implements Serializable, Cloneable
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 Details

    • enabled

      protected boolean enabled
    • name

      protected String name
    • description

      protected String description
    • primitiveType

      protected int primitiveType
    • baseLayerStyle

      protected Style baseLayerStyle
    • elemCount

      protected int elemCount
    • attributeIndexes

      protected int[] attributeIndexes
    • attribStats

      protected AttributeStat[] attribStats
    • title

      protected String title
    • subTitle

      protected String subTitle
    • outOfSampleDataIgnored

      protected boolean outOfSampleDataIgnored
    • nullValueCategorized

      @Deprecated protected boolean nullValueCategorized
      Deprecated.
    • userDefined

      protected boolean userDefined
  • Constructor Details

    • Thematic

      public Thematic()
  • Method Details

    • getName

      public String getName()
      Returns the thematic name
      Returns:
      the thematic name
    • getName

      public String getName(Locale locale)
      Gets the name of this thematic for a specific locale.
      Parameters:
      locale -
      Returns:
      name.
    • setName

      public void setName(String name)
      Sets the thematic name
      Parameters:
      name - the thematic name
    • setName

      public void setName(String name, Locale locale)
      Sets the name of this thematic for the specified Locale.
      Parameters:
      name - the new given name.
      locale - the locale for this name
    • getDescription

      public String getDescription()
      gets the thematic description
      Returns:
      the thematic description
    • getDescription

      public String getDescription(Locale locale)
      Gets the description of this thematic for a specific locale.
      Parameters:
      locale -
      Returns:
      description.
    • setDescription

      public void setDescription(String description)
      sets the thematic description
      Parameters:
      description -
    • setDescription

      public void setDescription(String description, Locale locale)
      Sets the description of this thematic for the specified Locale.
      Parameters:
      description - the new given description.
      locale - the locale for this description
    • clone

      public abstract Object clone()
      Constructs a clone of this theme.
      Overrides:
      clone in class Object
      Returns:
      a new KTheme object cloned on this theme.
    • clone

      protected void clone(Thematic thematic)
    • getAttribStats

      public AttributeStat[] 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

      public void setAttribStats(AttributeStat[] stats)
      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

      public String getSubTitle()
    • getSubTitle

      public String getSubTitle(Locale locale)
    • setSubTitle

      public void setSubTitle(String subTitle)
    • setSubTitle

      public void setSubTitle(String subTitle, Locale locale)
    • getTitle

      public String getTitle()
    • getTitle

      public String getTitle(Locale locale)
    • setTitle

      public void setTitle(String title)
    • setTitle

      public void setTitle(String title, Locale locale)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • isNullValueCategorized

      @Deprecated public boolean isNullValueCategorized()
      Deprecated.
      If null values are categorized.
      Returns:
      true if a category should be created for null values
    • setNullValueCategorized

      @Deprecated public void setNullValueCategorized(boolean nullValueCategorized)
      Deprecated.
      Sets whether a category should be created for null values
      Parameters:
      nullValueCategorized -
    • isNamed

      public boolean isNamed(String value)
      Checks if the thematic is named (including available translations, case insensitive) as the specified value.
      Parameters:
      value -
      Returns:
    • getNullThematicCategory

      @Deprecated public ThematicCategory 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 public void setNullThematicCategory(ThematicCategory thematicCategory)
      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

      public void removeTranslationsOtherThan(Locale[] locales)
      Description copied from class: LocalizedObject
      Removes any Locale from this object that are not in the specified locales. locales[0] should be the default language
      Overrides:
      removeTranslationsOtherThan in class LocalizedObject
      Parameters:
      locales -