com.supermap.mapping

Class ThemeUniqueItem

  • java.lang.Object
    • com.supermap.mapping.ThemeUniqueItem


  • public class ThemeUniqueItem
    extends java.lang.Object
    The ThemeUniqueItem class.

    In a unique values map, features whose field expression values are the same are classified into one class. Different classes are rendered with different styles. For example, when producing the administrative map based on the Name field, which has 5 values, the administrative map has 5 items. Features belong to one item have the same Name value.

    • Constructor Summary

      Constructors 
      Constructor and Description
      ThemeUniqueItem()
      The default constructor for constructing a new object.
      ThemeUniqueItem(java.lang.String unique, GeoStyle style)
      Initializes a new instance of the ThemeUniqueItem class with the specified parameters.
      ThemeUniqueItem(java.lang.String unique, java.lang.String caption, GeoStyle style)
      Initializes a new instance of the ThemeUniqueItem class with the specified parameters.
      ThemeUniqueItem(ThemeUniqueItem themeUniqueItem)
      Copy constructor, initializes a new instance of the class which is identical with the specified ImportSettingGML object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String getCaption()
      Returns whether the unique values map item is visible.
      GeoStyle getStyle()
      Returns the display style of each unique values map item.
      java.lang.String getUnique()
      Returns the value for unique values map item.
      boolean isVisible()
      Whether the unique values map item is visible.
      void setCaption(java.lang.String caption)
      Sets the name of each unique values map item.
      void setStyle(GeoStyle style)
      Sets the display style of each unique values map item.
      void setUnique(java.lang.String value)
      Sets the value for unique values map item.
      void setVisible(boolean value)
      Sets whether the unique values map item is visible.
      java.lang.String toString()
      Returns a string that indicates the current ThemeUnique item.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ThemeUniqueItem

        public ThemeUniqueItem()
        The default constructor for constructing a new object.
      • ThemeUniqueItem

        public ThemeUniqueItem(java.lang.String unique,
                               GeoStyle style)
        Initializes a new instance of the ThemeUniqueItem class with the specified parameters.
        Parameters:
        unique - The Single Value of the specified ThemeUniqueItem object .
        style - The specified style of the ThemeUniqueItem object.
      • ThemeUniqueItem

        public ThemeUniqueItem(java.lang.String unique,
                               java.lang.String caption,
                               GeoStyle style)
        Initializes a new instance of the ThemeUniqueItem class with the specified parameters.
        Parameters:
        unique - The Single Value of the specified ThemeUniqueItem object .
        caption - The specified caption of the ThemeUniqueItem object.
        style - The specified style of the ThemeUniqueItem object.
      • ThemeUniqueItem

        public ThemeUniqueItem(ThemeUniqueItem themeUniqueItem)
        Copy constructor, initializes a new instance of the class which is identical with the specified ImportSettingGML object.
        Parameters:
        themeUniqueItem - The specified object of the ThemeUniqueItem.
    • Method Detail

      • getUnique

        public java.lang.String getUnique()
        Returns the value for unique values map item.
        Returns:
        The value for the unique values map item.
        Default:
        The default is a null string.
      • setUnique

        public void setUnique(java.lang.String value)
        Sets the value for unique values map item.
        Parameters:
        value - The Single Value of the specified ThemeUniqueItem object .
      • isVisible

        public boolean isVisible()
        Whether the unique values map item is visible.
        Returns:
        True or false indicating whether the unique values map item is visible.
        Default:
        The default value is true.
      • setVisible

        public void setVisible(boolean value)
        Sets whether the unique values map item is visible.
        Parameters:
        value - Whether the unique values map item is visible.
      • getCaption

        public java.lang.String getCaption()
        Returns whether the unique values map item is visible.
        Returns:
        The name of each unique values map item.
        Default:
        The default value is "UntitledThemeUniqueItem".
      • setCaption

        public void setCaption(java.lang.String caption)
        Sets the name of each unique values map item.
        Parameters:
        caption - The specified each caption of the ThemeUniqueItem object.
      • getStyle

        public GeoStyle getStyle()
        Returns the display style of each unique values map item.
        Returns:
        The display style of each unique values map item.
        Default:
        The default value is {FillBackColor=Color [A=255, R=255, G=255, B=255],FillForeColor=Color [A=255, R=189, G=235, B=255],FillGradientAngle=0,FillGradientMode=None,FillGradientOffsetRatioX=0,FillGradientOffsetRatioY=0,FillOpaqueRate=100,FillSymbolID=0,LineColor=Color [A=255, R=0, G=0, B=0],LineSymbolID=0,LineWidth=1,MarkerAngle=0,MarkerSize={Width=28,Height=-1},MarkerSymbolID=0}.
      • setStyle

        public void setStyle(GeoStyle style)
        Sets the display style of each unique values map item.
        Parameters:
        style - The display style of each unique values map item.
      • toString

        public java.lang.String toString()
        Returns a string that indicates the current ThemeUnique item. The format is {Caption="china",Unique =20, Visible=true?false ,Style={linestyle=,markerstyle=,fillstyle=} }.
        Overrides:
        toString in class java.lang.Object
        Returns:
        The formatted string representing the current unique values map item.