com.supermap.mapping
Class ThemeGraduatedSymbol
- java.lang.Object
-
- com.supermap.mapping.Theme
-
- com.supermap.mapping.ThemeGraduatedSymbol
-
public class ThemeGraduatedSymbol extends Theme
The graduated symbol thematic map
-
-
Constructor Summary
Constructors Constructor and Description ThemeGraduatedSymbol()
Construction methodThemeGraduatedSymbol(ThemeGraduatedSymbol themeGraduatedSymbol)
Construction method
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
dispose()
Releases the thematic mapboolean
fromXML(java.lang.String xml)
Turns a xml file to a thematic mapdouble
getBaseValue()
The size of each symbol is equal to PositiveStyle ( ZeroStyle or NegativeStyle).SymbolSize*value/basevalue.java.lang.String
getExpression()
Returns the field or field expression which is used for creating a graduated symbol thematic mapGraduatedMode
getGraduatedMode()
display mode.GeoStyle
getLeaderLineStyle()
Gets the styles of restriction lines among objectsGeoStyle
getNegativeStyle()
Gets the styles of thematic types of negative valuesjava.lang.String
getOffsetX()
Gets the false easting of the coordinates.java.lang.String
getOffsetY()
Gets the false northingGeoStyle
getPositiveStyle()
Gets the styles of thematic types of positive valueGeoStyle
getZeroStyle()
Gets the styles of thematic types of 0boolean
isFlowEnabled()
Gets whether to allow the statistical thematic map to display objects flowingboolean
isLeaderLineDisplayed()
Gets whether to show the leader line that connects the thematic map and the corresponding objects.boolean
isNegativeDisplayed()
Whether to display the thematic types of negative values, True means yesboolean
isOffsetFixed()
Returns whether the offsets of symbols in the current thematic map are fixedboolean
isZeroDisplayed()
Returns whether to display the thematic types of 0, True means yesstatic ThemeGraduatedSymbol
makeDefault(DatasetVector dataset, java.lang.String expression, GraduatedMode graduatedMode)
Generates a symbol thematic map according to the given dataset, field expression, and display modevoid
setBaseValue(double value)
The size of each symbol is equal to PositiveStyle ( ZeroStyle or NegativeStyle).SymbolSize*value/basevalue.void
setExpression(java.lang.String value)
Sets the field or field expression which is used for creating a graduated symbol thematic mapvoid
setFlowEnabled(boolean value)
Sets whether to allow the statistical thematic map to display objects flowingvoid
setGraduatedMode(GraduatedMode value)
display mode.void
setLeaderLineDisplayed(boolean value)
Sets whether to show the leader line that connects the thematic map and the corresponding objects.void
setLeaderLineStyle(GeoStyle style)
Sets the styles of restriction lines among objectsvoid
setNegativeDisplayed(boolean value)
Sets whether to display the thematic types of negative values, True means yesvoid
setNegativeStyle(GeoStyle style)
Sets the styles of thematic types of negative valuesvoid
setOffsetFixed(boolean value)
Sets whether the offsets of symbols in the current thematic map are fixedvoid
setOffsetX(java.lang.String value)
Sets the false eastingvoid
setOffsetY(java.lang.String value)
Sets the false northingvoid
setPositiveStyle(GeoStyle style)
Sets the styles of thematic types of positive valuevoid
setZeroDisplayed(boolean value)
Sets whether to display the thematic types of 0, True means yesvoid
setZeroStyle(GeoStyle style)
Sets the styles of thematic types of 0java.lang.String
toString()
Converts data to xml-
Methods inherited from class com.supermap.mapping.Theme
getMemoryData, getType, setMemoryData, toXML
-
-
-
-
Constructor Detail
-
ThemeGraduatedSymbol
public ThemeGraduatedSymbol()
Construction method
-
ThemeGraduatedSymbol
public ThemeGraduatedSymbol(ThemeGraduatedSymbol themeGraduatedSymbol)
Construction method- Parameters:
themeGraduatedSymbol
- The graduated symbol thematic map
-
-
Method Detail
-
getExpression
public java.lang.String getExpression()
Returns the field or field expression which is used for creating a graduated symbol thematic map- Returns:
- Returns the field or field expression which is used for creating a graduated symbol thematic map
-
setExpression
public void setExpression(java.lang.String value)
Sets the field or field expression which is used for creating a graduated symbol thematic map- Parameters:
value
- Sets the field or field expression which is used for creating a graduated symbol thematic map
-
getGraduatedMode
public GraduatedMode getGraduatedMode()
display mode.- Returns:
- display mode.
-
setGraduatedMode
public void setGraduatedMode(GraduatedMode value)
display mode.- Parameters:
value
- display mode.
-
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
-
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()
Gets 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.
-
isFlowEnabled
public boolean isFlowEnabled()
Gets whether to allow the statistical thematic map to display objects flowing- Returns:
- whether to allow the statistical thematic map to display objects flowing
-
setFlowEnabled
public void setFlowEnabled(boolean value)
Sets whether to allow the statistical thematic map to display objects flowing- Parameters:
value
- whether to allow the statistical thematic map to display objects flowing
-
getNegativeStyle
public GeoStyle getNegativeStyle()
Gets the styles of thematic types of negative values- Returns:
- Gets the styles of thematic types of negative values
-
setNegativeStyle
public void setNegativeStyle(GeoStyle style)
Sets the styles of thematic types of negative values- Parameters:
style
- Gets the styles of thematic types of negative values
-
isNegativeDisplayed
public boolean isNegativeDisplayed()
Whether to display the thematic types of negative values, True means yes- Returns:
- Whether to display the thematic types of negative values, True means yes
-
setNegativeDisplayed
public void setNegativeDisplayed(boolean value)
Sets whether to display the thematic types of negative values, True means yes- Parameters:
value
- Sets whether to display the thematic types of negative values, True means yes
-
getZeroStyle
public GeoStyle getZeroStyle()
Gets the styles of thematic types of 0- Returns:
- the styles of thematic types of 0
-
setZeroStyle
public void setZeroStyle(GeoStyle style)
Sets the styles of thematic types of 0- Parameters:
style
- the styles of thematic types of 0
-
isZeroDisplayed
public boolean isZeroDisplayed()
Returns whether to display the thematic types of 0, True means yes- Returns:
- Whether to display the thematic types of 0, True means yes
-
setZeroDisplayed
public void setZeroDisplayed(boolean value)
Sets whether to display the thematic types of 0, True means yes- Parameters:
value
- Whether to display the thematic types of 0, True means yes
-
getPositiveStyle
public GeoStyle getPositiveStyle()
Gets the styles of thematic types of positive value- Returns:
- the styles of thematic types of positive value
-
setPositiveStyle
public void setPositiveStyle(GeoStyle style)
Sets the styles of thematic types of positive value- Parameters:
style
- the styles of thematic types of positive value
-
getBaseValue
public double getBaseValue()
The size of each symbol is equal to PositiveStyle ( ZeroStyle or NegativeStyle).SymbolSize*value/basevalue. Value is the value after classification. value is the value corresponding with Expression.- Returns:
- The size of each symbol is equal to PositiveStyle ( ZeroStyle or NegativeStyle).SymbolSize*value/basevalue. Value is the value after classification. value is the value corresponding with Expression.
-
setBaseValue
public void setBaseValue(double value)
The size of each symbol is equal to PositiveStyle ( ZeroStyle or NegativeStyle).SymbolSize*value/basevalue. Value is the value after classification. value is the value corresponding with Expression.- Parameters:
value
- The size of each symbol is equal to PositiveStyle ( ZeroStyle or NegativeStyle).SymbolSize*value/basevalue. Value is the value after classification. value is the value corresponding with Expression.
-
fromXML
public boolean fromXML(java.lang.String xml)
Turns a xml file to a thematic map
-
isOffsetFixed
public boolean isOffsetFixed()
Returns whether the offsets of symbols in the current thematic map are fixed- Returns:
- whether the offsets of symbols in the current thematic map are fixed
-
setOffsetFixed
public void setOffsetFixed(boolean value)
Sets whether the offsets of symbols in the current thematic map are fixed- Parameters:
value
- whether the offsets of symbols in the current thematic map are fixed
-
toString
public java.lang.String toString()
Converts data to xml
-
dispose
public void dispose()
Releases the thematic map
-
makeDefault
public static ThemeGraduatedSymbol makeDefault(DatasetVector dataset, java.lang.String expression, GraduatedMode graduatedMode)
Generates a symbol thematic map according to the given dataset, field expression, and display mode- Parameters:
dataset
- the datasetexpression
- the expressiongraduatedMode
- the display mode- Returns:
- thematic map
-
-