com.supermap.mapping

Class ThemeGraph



  • public class ThemeGraph
    extends Theme
    Statistical thematic map
    • Constructor Detail

      • ThemeGraph

        public ThemeGraph()
        Construction method
      • ThemeGraph

        public ThemeGraph(ThemeGraph themeGraph)
        Construction method
        Parameters:
        themeGraph - the statistical thematic map
    • Method Detail

      • getItem

        public ThemeGraphItem getItem(int index)
        Gets the sub items of the specified thematic map
        Parameters:
        index - index
        Returns:
        the sub items of the specified thematic map
      • setItem

        public void setItem(int index,
                            ThemeGraphItem item)
        Sets the sub items of the specified thematic map
        Parameters:
        index - index
        item - the sub items of the specified thematic map
      • getCount

        public int getCount()
        Gets the number of the items in the statistical thematic map.
        Returns:
        the number of sum items
      • isGraphSizeFixed

        public boolean isGraphSizeFixed()
        Whether to fix
        Returns:
        Whether to fix
      • setGraphSizeFixed

        public void setGraphSizeFixed(boolean value)
        Sets the symbol fixed
        Parameters:
        value - Whether to fix
      • getOffsetX

        public java.lang.String getOffsetX()
        Gets the false easting of the coordinates.
        Returns:
        The false easting
      • setOffsetX

        public void setOffsetX(java.lang.String value)
        Sets the false easting
        Parameters:
        value - The false easting
      • getOffsetY

        public java.lang.String getOffsetY()
        Gets the false northing
        Returns:
        The false northing
      • setOffsetY

        public void setOffsetY(java.lang.String value)
        Sets the false northing
        Parameters:
        value - The false northing
      • getGraphType

        public ThemeGraphType getGraphType()
        Gets the display types of a thematic map
        Returns:
        the display types of a thematic map
      • setGraphType

        public void setGraphType(ThemeGraphType themeGraphType)
        Sets the display types of a thematic map
        Parameters:
        themeGraphType - the display types of a thematic map
      • isFlowEnabled

        public boolean isFlowEnabled()
        Gets whether to allow the statistical thematic map to display objects flowing
        Returns:
        Gets whether to allow the statistical thematic map to display objects flowing
      • setFlowEnabled

        public void setFlowEnabled(boolean value)
        Gets whether to allow the statistical thematic map to display objects flowing
        Parameters:
        value - Gets whether to allow the statistical thematic map to display objects flowing
      • getLeaderLineStyle

        public GeoStyle getLeaderLineStyle()
        Gets the styles of restriction lines among objects
        Returns:
        the styles of restriction lines among objects
      • setLeaderLineStyle

        public void setLeaderLineStyle(GeoStyle style)
        Sets the styles of restriction lines among objects
        Parameters:
        style - the styles of restriction lines among objects
      • isLeaderLineDisplayed

        public boolean isLeaderLineDisplayed()
        Whether to show the leader line that connects the thematic map and the corresponding objects.
        Returns:
        Whether to show the leader line that connects the thematic map and the corresponding objects.
      • setLeaderLineDisplayed

        public void setLeaderLineDisplayed(boolean value)
        Sets whether to show the leader line that connects the thematic map and the corresponding objects.
        Parameters:
        value - Whether to show the leader line that connects the thematic map and the corresponding objects.
      • isNegativeDisplayed

        public boolean isNegativeDisplayed()
        Whether to display a negative value
        Returns:
        Whether to display a negative value
      • setNegativeDisplayed

        public void setNegativeDisplayed(boolean value)
        Sets whether to display a negative value
        Parameters:
        value - Whether to display a negative value
      • getAxesColor

        public Color getAxesColor()
        Gets the color of coordinate axis.
        Returns:
        The color of coordinate axis.
      • setAxesColor

        public void setAxesColor(Color color)
        Sets the color of coordinate axis.
        Parameters:
        color - The color of coordinate axis.
      • isAxesDisplayed

        public boolean isAxesDisplayed()
        Whether to display the coordinate axises.
        Returns:
        Whether to display the coordinate axises.
      • setAxesDisplayed

        public void setAxesDisplayed(boolean value)
        Sets whether to display the coordinate axises.
        Parameters:
        value - Whether to display the coordinate axises.
      • getAxesTextStyle

        public TextStyle getAxesTextStyle()
        Gets the styles of text of coordinate axises.
        Returns:
        the styles of text of coordinate axises.
      • isAxesGridDisplayed

        public boolean isAxesGridDisplayed()
        Whether to display the grid coordinate.
        Returns:
        Whether to display the grid coordinate.
      • setAxesGridDisplayed

        public void setAxesGridDisplayed(boolean value)
        Sets whether to display the grid coordinate.
        Parameters:
        value - Whether to display the grid coordinate.
      • getGraphTextStyle

        public TextStyle getGraphTextStyle()
        Gets text label styles of a diagram
        Returns:
        text label styles of a diagram
      • setGraphTextStyle

        public void setGraphTextStyle(TextStyle textStyle)
        Sets text label styles of a diagram
        Parameters:
        textStyle - text label styles of a diagram
      • getGraphTextFormat

        public ThemeGraphTextFormat getGraphTextFormat()
        Gets display formats of text of a statistical thematic map
        Returns:
        Display formats of text of a statistical thematic map
      • setGraphTextFormat

        public void setGraphTextFormat(ThemeGraphTextFormat themeGraphTextFormat)
        Sets display formats of text of a statistical thematic map
        Parameters:
        themeGraphTextFormat - display formats of text of a statistical thematic map
      • isGraphTextDisplayed

        public boolean isGraphTextDisplayed()
        Whether to display text labels of a diagram
        Returns:
        Whether to display text labels of a diagram
      • setGraphTextDisplayed

        public void setGraphTextDisplayed(boolean value)
        Sets whether to display text labels of a diagram
        Parameters:
        value - Whether to display text labels of a diagram
      • isOffsetFixed

        public boolean isOffsetFixed()
        Returns whether to fix the offsets.
        Returns:
        Whether to fix the offsets.
      • setOffsetFixed

        public void setOffsetFixed(boolean value)
        Sets whether to fix the offsets.
        Parameters:
        value - Whether to fix the offsets
      • getMinGraphSize

        public double getMinGraphSize()
        Returns a diagram displays the minimum value
        Returns:
        a diagram displays the minimum value
      • setMinGraphSize

        public void setMinGraphSize(double value)
        Sets a diagram displays the minimum value
        Parameters:
        value - a diagram displays the minimum value
      • getMaxGraphSize

        public double getMaxGraphSize()
        Returns a diagram displays the maximum value
        Returns:
        a diagram displays the maximum value
      • setMaxGraphSize

        public void setMaxGraphSize(double value)
        Sets a diagram displays the maximum value
        Parameters:
        value - a diagram displays the maximum value
      • getGraduatedMode

        public GraduatedMode getGraduatedMode()
        Gets the calculation mode
        Returns:
        the calculation mode
      • setGraduatedMode

        public void setGraduatedMode(GraduatedMode value)
        Sets the calculation mode
        Parameters:
        value - the calculation mode
      • isOverlapAvoided

        public boolean isOverlapAvoided()
        Whether to avoid
        Returns:
        Whether to avoid
      • setOverlapAvoided

        public void setOverlapAvoided(boolean value)
        Sets whether to avoid
        Parameters:
        value - Whether to avoid
      • add

        public int add(ThemeGraphItem item)
        Adds sub items of a statistical thematic map
        Parameters:
        item - the sub items of the thematic map
        Returns:
        the current index
      • insert

        public boolean insert(int index,
                              ThemeGraphItem item)
        Inserts sub items of a statistical thematic map
        Parameters:
        index - index
        item - the sub items of the thematic map
        Returns:
        whether the inserting is successful.
      • exchangeItem

        public boolean exchangeItem(int index1,
                                    int index2)
        Exchanges sub items of a statistical thematic map
        Parameters:
        index1 - Exchanges sub items of a statistical thematic map
        index2 - Exchanges sub items of a statistical thematic map
        Returns:
        whether the exchanging is successful.
      • indexOf

        public int indexOf(java.lang.String graphExpression)
        Gets the position of sub item according to the field expression
        Parameters:
        graphExpression - the field expression
        Returns:
        index
      • remove

        public boolean remove(int index)
        Removes the specified item.
        Parameters:
        index - index
        Returns:
        Whether the removal was successful
      • clear

        public void clear()
        Clears
      • toString

        public java.lang.String toString()
        Output the formatted string of the thematic map.
        Specified by:
        toString in class Theme
        Returns:
        The formatted string for the thematic map.
      • dispose

        public void dispose()
        Release
      • isAllDirectionsOverlappedAvoided

        public boolean isAllDirectionsOverlappedAvoided()
        Whether the automatic avoiding in every direction is enabled. False is by default
        Returns:
        Whether the automatic avoiding in every direction is enabled. False is by default
      • setAllDirectionsOverlappedAvoided

        public void setAllDirectionsOverlappedAvoided(boolean value)
        Sets whether the automatic avoiding in every direction is enabled. False is by default
        Parameters:
        value - sets whether the automatic avoiding in every direction is enabled. False is by default
      • fromXML

        public boolean fromXML(java.lang.String xml)
        Turns the formatted string into a thematic map
        Overrides:
        fromXML in class Theme
        Parameters:
        xml - The XML strings that contains the information about a thematic map.
        Returns:
        A boolean, return true if it is removed successfully; false otherwise.