DotDensityStyle¶
Inheritance Hierarchy¶
Object
Style
DotDensityStyle
Members Summary¶
Public Constructors Summary¶
Name |
---|
DotDensityStyle() |
DotDensityStyle(String,Double,Int32,GeoColor) |
DotDensityStyle(String,Double,PointStyle) |
Protected Constructors Summary¶
Name |
---|
N/A |
Public Properties Summary¶
Name | Return Type | Description |
---|---|---|
CachedPoints | Dictionary<String ,Collection<Vertex >> | The cachedPoints for the dotdensity style to speed it up. |
ColumnName | String | This property gets and sets the column name that will be used for the density value. |
CustomPointStyle | PointStyle | This property gets and sets a custom point style. |
Filters | Collection<String > | N/A |
IsActive | Boolean | N/A |
Name | String | N/A |
PointColor | GeoColor | This property gets and sets the color of the density points. |
PointSize | Int32 | This property gets and sets the point size of the density points. |
PointToValueRatio | Double | This property gets and sets the ratio of points to value in the data. |
RequiredColumnNames | Collection<String > | N/A |
Protected Properties Summary¶
Name | Return Type | Description |
---|---|---|
FiltersCore | Collection<String > | N/A |
IsDefault | Boolean | N/A |
Public Methods Summary¶
Protected Methods Summary¶
Public Events Summary¶
Name | Event Arguments | Description |
---|---|---|
N/A | N/A | N/A |
Members Detail¶
Public Constructors¶
Name |
---|
DotDensityStyle() |
DotDensityStyle(String,Double,Int32,GeoColor) |
DotDensityStyle(String,Double,PointStyle) |
Protected Constructors¶
Public Properties¶
CachedPoints
¶
Summary
The cachedPoints for the dotdensity style to speed it up.
Remarks
N/A
Return Value
Dictionary<String
,Collection<Vertex
>>
ColumnName
¶
Summary
This property gets and sets the column name that will be used for the density value.
Remarks
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
String
CustomPointStyle
¶
Summary
This property gets and sets a custom point style.
Remarks
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
Filters
¶
Summary
N/A
Remarks
N/A
Return Value
Collection<String
>
IsActive
¶
Summary
N/A
Remarks
N/A
Return Value
Boolean
Name
¶
Summary
N/A
Remarks
N/A
Return Value
String
PointColor
¶
Summary
This property gets and sets the color of the density points.
Remarks
None
Return Value
PointSize
¶
Summary
This property gets and sets the point size of the density points.
Remarks
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
Int32
PointToValueRatio
¶
Summary
This property gets and sets the ratio of points to value in the data.
Remarks
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
Double
RequiredColumnNames
¶
Summary
N/A
Remarks
N/A
Return Value
Collection<String
>
Protected Properties¶
FiltersCore
¶
Summary
N/A
Remarks
N/A
Return Value
Collection<String
>
IsDefault
¶
Summary
N/A
Remarks
N/A
Return Value
Boolean
Public Methods¶
CloneDeep()
¶
Summary
N/A
Remarks
N/A
Return Value
Type | Description |
---|---|
Style | N/A |
Parameters
Name | Type | Description |
---|---|---|
N/A | N/A | N/A |
Draw(IEnumerable<Feature>,GeoCanvas,Collection<SimpleCandidate>,Collection<SimpleCandidate>)
¶
Summary
N/A
Remarks
N/A
Return Value
Type | Description |
---|---|
Void | N/A |
Parameters
Name | Type | Description |
---|---|---|
features | IEnumerable<Feature > | N/A |
canvas | GeoCanvas | N/A |
labelsInThisLayer | Collection<SimpleCandidate > | N/A |
labelsInAllLayers | Collection<SimpleCandidate > | N/A |
Draw(IEnumerable<BaseShape>,GeoCanvas,Collection<SimpleCandidate>,Collection<SimpleCandidate>)
¶
Summary
N/A
Remarks
N/A
Return Value
Type | Description |
---|---|
Void | N/A |
Parameters
Name | Type | Description |
---|---|---|
shapes | IEnumerable<BaseShape > | N/A |
canvas | GeoCanvas | N/A |
labelsInThisLayer | Collection<SimpleCandidate > | N/A |
labelsInAllLayers | Collection<SimpleCandidate > | N/A |
DrawSample(GeoCanvas,DrawingRectangleF)
¶
Summary
N/A
Remarks
N/A
Return Value
Type | Description |
---|---|
Void | N/A |
Parameters
Name | Type | Description |
---|---|---|
canvas | GeoCanvas | N/A |
drawingExtent | DrawingRectangleF | N/A |
DrawSample(GeoCanvas)
¶
Summary
N/A
Remarks
N/A
Return Value
Type | Description |
---|---|
Void | N/A |
Parameters
Name | Type | Description |
---|---|---|
canvas | GeoCanvas | N/A |
Equals(Object)
¶
Summary
N/A
Remarks
N/A
Return Value
Type | Description |
---|---|
Boolean | N/A |
Parameters
Name | Type | Description |
---|---|---|
obj | Object | N/A |
GetHashCode()
¶
Summary
N/A
Remarks
N/A
Return Value
Type | Description |
---|---|
Int32 | N/A |
Parameters
Name | Type | Description |
---|---|---|
N/A | N/A | N/A |
GetRequiredColumnNames()
¶
Summary
N/A
Remarks
N/A
Return Value
Type | Description |
---|---|
Collection<String > | N/A |
Parameters
Name | Type | Description |
---|---|---|
N/A | N/A | N/A |
GetType()
¶
Summary
N/A
Remarks
N/A
Return Value
Type | Description |
---|---|
Type | N/A |
Parameters
Name | Type | Description |
---|---|---|
N/A | N/A | N/A |
SaveStyle(String)
¶
Summary
N/A
Remarks
N/A
Return Value
Type | Description |
---|---|
Void | N/A |
Parameters
Name | Type | Description |
---|---|---|
filePathName | String | N/A |
SaveStyle(Stream)
¶
Summary
N/A
Remarks
N/A
Return Value
Type | Description |
---|---|
Void | N/A |
Parameters
Name | Type | Description |
---|---|---|
stream | Stream | N/A |
ToString()
¶
Summary
N/A
Remarks
N/A
Return Value
Type | Description |
---|---|
String | N/A |
Parameters
Name | Type | Description |
---|---|---|
N/A | N/A | N/A |
Protected Methods¶
CloneDeepCore()
¶
Summary
N/A
Remarks
N/A
Return Value
Type | Description |
---|---|
Style | N/A |
Parameters
Name | Type | Description |
---|---|---|
N/A | N/A | N/A |
DrawCore(IEnumerable<Feature>,GeoCanvas,Collection<SimpleCandidate>,Collection<SimpleCandidate>)
¶
Summary
This method draws the features on the view you provided.
Remarks
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 view 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 | Description |
---|---|
Void | None |
Parameters
Name | Type | Description |
---|---|---|
features | IEnumerable<Feature > | This parameter represents the features you want to draw on the view. |
canvas | GeoCanvas | This parameter represents the view you want to draw the features on. |
labelsInThisLayer | Collection<SimpleCandidate > | The labels will be drawn in the current layer only. |
labelsInAllLayers | Collection<SimpleCandidate > | The labels will be drawn in all layers. |
DrawSampleCore(GeoCanvas,DrawingRectangleF)
¶
Summary
N/A
Remarks
N/A
Return Value
Type | Description |
---|---|
Void | N/A |
Parameters
Name | Type | Description |
---|---|---|
canvas | GeoCanvas | N/A |
drawingExtent | DrawingRectangleF | N/A |
Finalize()
¶
Summary
N/A
Remarks
N/A
Return Value
Type | Description |
---|---|
Void | N/A |
Parameters
Name | Type | Description |
---|---|---|
N/A | N/A | N/A |
GetRequiredColumnNamesCore()
¶
Summary
This method returns the column data for each feature that is required for the style to properly draw.
Remarks
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
Type | Description |
---|---|
Collection<String > | This method returns a collection of column names that it needs. |
Parameters
Name | Type | Description |
---|---|---|
N/A | N/A | N/A |
MemberwiseClone()
¶
Summary
N/A
Remarks
N/A
Return Value
Type | Description |
---|---|
Object | N/A |
Parameters
Name | Type | Description |
---|---|---|
N/A | N/A | N/A |