ThinkGeo.MapSuite.Core.DotDensityStyle
Note: The page was created before Map Suite 10. Map Suite 10.0 organized many classes into new namespaces and assemblies as well as had a few minor breaks in compatibility. The majority of previously built code should work without modification assuming the new namespaces are added. For guidance on upgrading your existing code, please check out MapSuite 10 Upgrade Guide.
This class allows you to display information by drawing points on an area based on a value from the features data.
Inheritance Hierarchy
Members Summary
Public Constructors
DotDensityStyle()
Parameters
DotDensityStyle(String,Double,Int32,GeoColor)
Parameters
DotDensityStyle(String,Double,PointStyle)
Parameters
Protected Constructors
Public Methods
CloneDeep()
Return Value
Parameters
Draw(IEnumerable<Feature>,GeoCanvas,Collection<SimpleCandidate>,Collection<SimpleCandidate>)
Return Value
Type:Void
Description:N/A
Parameters
Draw(IEnumerable<BaseShape>,GeoCanvas,Collection<SimpleCandidate>,Collection<SimpleCandidate>)
Return Value
Type:Void
Description:N/A
Parameters
GetRequiredColumnNames()
Return Value
Type:Collection<String>
Description:N/A
Parameters
DrawSample(GeoCanvas,DrawingRectangleF)
Return Value
Type:Void
Description:N/A
Parameters
DrawSample(GeoCanvas)
Return Value
Type:Void
Description:N/A
Parameters
SaveStyle(String)
Return Value
Type:Void
Description:N/A
Parameters
filePathName
Type:String
Description:N/A
SaveStyle(Stream)
Return Value
Type:Void
Description:N/A
Parameters
stream
Type:Stream
Description:N/A
ToString()
Return Value
Type:String
Description:N/A
Parameters
Equals(Object)
Return Value
Type:Boolean
Description:N/A
Parameters
obj
Type:Object
Description:N/A
GetHashCode()
Return Value
Type:Int32
Description:N/A
Parameters
GetType()
Return Value
Type:Type
Description:N/A
Parameters
Protected Methods
GetRequiredColumnNamesCore()
This abstract method is called from the concrete public method GetRequiredFieldNames. In this method, we return the column names that are required for the style to draw the feature properly. For example, if you have a style that colors areas blue when a certain column value is over 100, then you need to be sure you include that column name. This will ensure that the column data is returned to you in the feature when it is ready to draw. In many of the styles, we add properties to allow the user to specify which field they need; then, in the GetRequiredColumnNamesCore, we read that property and add it to the collection.
Return Value
Parameters
DrawCore(IEnumerable<Feature>,GeoCanvas,Collection<SimpleCandidate>,Collection<SimpleCandidate>)
This overridden method is called from the concrete public method Draw. In this method, we take the features you passed in and draw them on the canvas you provided. Each style (based on its properties) may draw each feature differently. When overriding this method, consider each feature and its column data values. You can use the full power of the GeoCanvas to do the drawing. If you need column data for a feature, be sure to override the GetRequiredColumnNamesCore and add the columns you need to the collection. In many of the styles, we add properties to allow the user to specify which field they need; then, in the GetRequiredColumnNamesCore, we read that property and add it to the collection.
Return Value
Type:Void
Description:None
Parameters
CloneDeepCore()
Return Value
Parameters
DrawSampleCore(GeoCanvas,DrawingRectangleF)
Return Value
Type:Void
Description:N/A
Parameters
Finalize()
Return Value
Type:Void
Description:N/A
Parameters
MemberwiseClone()
Return Value
Type:Object
Description:N/A
Parameters
Public Properties
CustomPointStyle
This property gets and sets a custom point style.
You will use this property when you want to specify a point style that is not just a simple colored dot. You may want to use a bitmap or take advantage of a custom fill brush.
Return Value
ColumnName
This property gets and sets the column name that will be used for the density value.
This value should represent a value in the FeatureSource that is numeric. It will be used in conjunction with the PointToValueRatio property to deterime how many points are drawn in the area.
Return Value
PointSize
This property gets and sets the point size of the density points.
If you have sparse data, one way to better fill the area is to use larger point sizes. The opposite is also true; if you have lots of data, smaller point sizes look better.
Return Value
PointColor
This property gets and sets the color of the density points.
Return Value
PointToValueRatio
This property gets and sets the ratio of points to value in the data.
This property controls the ratio of points on the screen to numeric value in the data. For example, if you have a value of 100 in the data and you have the ratio set to 1, then you will get 100 points drawn. A ratio of higher than 1 will draw more points than the data value; in our example, a ratio of 2 will draw 200 points. Conversely, a ratio of less than 1 will draw fewer points than the data value; in our example, a ratio of 0.5 would draw 50 points.
Return Value
CachedPoints
The cachedPoints for the dotdensity style to speed it up.
Return Value
Type:Dictionary<String,Collection<
Vertexยป
Name
N/A
Return Value
IsActive
N/A
Return Value
RequiredColumnNames
N/A
Return Value
Filters
N/A
Return Value
Protected Properties
FiltersCore
N/A
Return Value
Public Events