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 voiddispose()Releases the thematic mapbooleanfromXML(java.lang.String xml)Turns a xml file to a thematic mapdoublegetBaseValue()The size of each symbol is equal to PositiveStyle ( ZeroStyle or NegativeStyle).SymbolSize*value/basevalue.java.lang.StringgetExpression()Returns the field or field expression which is used for creating a graduated symbol thematic mapGraduatedModegetGraduatedMode()display mode.GeoStylegetLeaderLineStyle()Gets the styles of restriction lines among objectsGeoStylegetNegativeStyle()Gets the styles of thematic types of negative valuesjava.lang.StringgetOffsetX()Gets the false easting of the coordinates.java.lang.StringgetOffsetY()Gets the false northingGeoStylegetPositiveStyle()Gets the styles of thematic types of positive valueGeoStylegetZeroStyle()Gets the styles of thematic types of 0booleanisFlowEnabled()Gets whether to allow the statistical thematic map to display objects flowingbooleanisLeaderLineDisplayed()Gets whether to show the leader line that connects the thematic map and the corresponding objects.booleanisNegativeDisplayed()Whether to display the thematic types of negative values, True means yesbooleanisOffsetFixed()Returns whether the offsets of symbols in the current thematic map are fixedbooleanisZeroDisplayed()Returns whether to display the thematic types of 0, True means yesstatic ThemeGraduatedSymbolmakeDefault(DatasetVector dataset, java.lang.String expression, GraduatedMode graduatedMode)Generates a symbol thematic map according to the given dataset, field expression, and display modevoidsetBaseValue(double value)The size of each symbol is equal to PositiveStyle ( ZeroStyle or NegativeStyle).SymbolSize*value/basevalue.voidsetExpression(java.lang.String value)Sets the field or field expression which is used for creating a graduated symbol thematic mapvoidsetFlowEnabled(boolean value)Sets whether to allow the statistical thematic map to display objects flowingvoidsetGraduatedMode(GraduatedMode value)display mode.voidsetLeaderLineDisplayed(boolean value)Sets whether to show the leader line that connects the thematic map and the corresponding objects.voidsetLeaderLineStyle(GeoStyle style)Sets the styles of restriction lines among objectsvoidsetNegativeDisplayed(boolean value)Sets whether to display the thematic types of negative values, True means yesvoidsetNegativeStyle(GeoStyle style)Sets the styles of thematic types of negative valuesvoidsetOffsetFixed(boolean value)Sets whether the offsets of symbols in the current thematic map are fixedvoidsetOffsetX(java.lang.String value)Sets the false eastingvoidsetOffsetY(java.lang.String value)Sets the false northingvoidsetPositiveStyle(GeoStyle style)Sets the styles of thematic types of positive valuevoidsetZeroDisplayed(boolean value)Sets whether to display the thematic types of 0, True means yesvoidsetZeroStyle(GeoStyle style)Sets the styles of thematic types of 0java.lang.StringtoString()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
-
-