This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
thinkgeo.mapsuite.silverlightcore.areastyle [2015/09/21 03:19] admin |
thinkgeo.mapsuite.silverlightcore.areastyle [2017/03/16 21:59] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== ThinkGeo.MapSuite.SilverlightCore.AreaStyle ====== | ====== ThinkGeo.MapSuite.SilverlightCore.AreaStyle ====== | ||
+ | |||
+ | {{section>upgrade_map_suite_to_10.0}} | ||
+ | |||
This class is used to draw area features. | This class is used to draw area features. | ||
===== Inheritance Hierarchy ===== | ===== Inheritance Hierarchy ===== | ||
Line 10: | Line 13: | ||
** {{wiki:PublicMethod.gif|}} AreaStyle() ** | ** {{wiki:PublicMethod.gif|}} AreaStyle() ** | ||
- | This is the constructor for the class. | + | * //This is the constructor for the class.// |
== Remarks == | == Remarks == | ||
- | If you use this constructor, you will need to set the properties of the fill brush and outline pen manually. | + | * //If you use this constructor, you will need to set the properties of the fill brush and outline pen manually.// |
== Parameters == | == Parameters == | ||
<div newline></div> | <div newline></div> | ||
** {{wiki:PublicMethod.gif|}} AreaStyle(GeoSolidBrush) ** | ** {{wiki:PublicMethod.gif|}} AreaStyle(GeoSolidBrush) ** | ||
- | This is the constructor for the class. | + | * //This is the constructor for the class.// |
== Remarks == | == Remarks == | ||
- | This constructor allows you to specify just a fill brush. In this way, the area you draw will not have an outline. | + | * //This constructor allows you to specify just a fill brush. In this way, the area you draw will not have an outline.// |
== Parameters == | == Parameters == | ||
* //fillSolidBrush// | * //fillSolidBrush// | ||
Line 28: | Line 31: | ||
** {{wiki:PublicMethod.gif|}} AreaStyle(GeoPen) ** | ** {{wiki:PublicMethod.gif|}} AreaStyle(GeoPen) ** | ||
- | This is the constructor for the class. | + | * //This is the constructor for the class.// |
== Remarks == | == Remarks == | ||
- | This constructor allows you to specify just an outline pen. In this way, the area you draw will have an outline, but a transparent interior (no fill). | + | * //This constructor allows you to specify just an outline pen. In this way, the area you draw will have an outline, but a transparent interior (no fill).// |
== Parameters == | == Parameters == | ||
* //outlinePen// | * //outlinePen// | ||
Line 39: | Line 42: | ||
** {{wiki:PublicMethod.gif|}} AreaStyle(GeoPen,GeoSolidBrush) ** | ** {{wiki:PublicMethod.gif|}} AreaStyle(GeoPen,GeoSolidBrush) ** | ||
- | This is the constructor for the class. | + | * //This is the constructor for the class.// |
== Remarks == | == Remarks == | ||
- | This constructor allows you to specify a fill brush and an outline pen. | + | * //This constructor allows you to specify a fill brush and an outline pen.// |
== Parameters == | == Parameters == | ||
* //outlinePen// | * //outlinePen// | ||
Line 54: | Line 57: | ||
** {{wiki:PublicMethod.gif|}} AreaStyle(GeoPen,GeoSolidBrush,PenBrushDrawingOrder) ** | ** {{wiki:PublicMethod.gif|}} AreaStyle(GeoPen,GeoSolidBrush,PenBrushDrawingOrder) ** | ||
- | This is the constructor for the class. | + | * //This is the constructor for the class.// |
== Remarks == | == Remarks == | ||
- | This constructor allows you to specify a fill brush and an outline pen. It also allows you to specify which is drawn first. If the pen is drawn first, the outline will be thinner than if the pen is drawn last. The effect is subtle but noticeable. | + | * //This constructor allows you to specify a fill brush and an outline pen. It also allows you to specify which is drawn first. If the pen is drawn first, the outline will be thinner than if the pen is drawn last. The effect is subtle but noticeable.// |
== Parameters == | == Parameters == | ||
* //outlinePen// | * //outlinePen// | ||
Line 75: | Line 78: | ||
** {{wiki:PublicMethod.gif|}} Draw(IEnumerable<Feature>,GeoCanvas,Collection<SimpleCandidate>,Collection<SimpleCandidate>) ** | ** {{wiki:PublicMethod.gif|}} Draw(IEnumerable<Feature>,GeoCanvas,Collection<SimpleCandidate>,Collection<SimpleCandidate>) ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 103: | Line 106: | ||
** {{wiki:PublicMethod.gif|}} Draw(IEnumerable<BaseShape>,GeoCanvas,Collection<SimpleCandidate>,Collection<SimpleCandidate>) ** | ** {{wiki:PublicMethod.gif|}} Draw(IEnumerable<BaseShape>,GeoCanvas,Collection<SimpleCandidate>,Collection<SimpleCandidate>) ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 131: | Line 134: | ||
** {{wiki:PublicMethod.gif|}} GetRequiredColumnNames() ** | ** {{wiki:PublicMethod.gif|}} GetRequiredColumnNames() ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 143: | Line 146: | ||
** {{wiki:PublicMethod.gif|}} DrawSample(GeoCanvas,DrawingRectangleF) ** | ** {{wiki:PublicMethod.gif|}} DrawSample(GeoCanvas,DrawingRectangleF) ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 163: | Line 166: | ||
** {{wiki:PublicMethod.gif|}} ToString() ** | ** {{wiki:PublicMethod.gif|}} ToString() ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 175: | Line 178: | ||
** {{wiki:PublicMethod.gif|}} Equals(Object) ** | ** {{wiki:PublicMethod.gif|}} Equals(Object) ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 191: | Line 194: | ||
** {{wiki:PublicMethod.gif|}} GetHashCode() ** | ** {{wiki:PublicMethod.gif|}} GetHashCode() ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 203: | Line 206: | ||
** {{wiki:PublicMethod.gif|}} GetType() ** | ** {{wiki:PublicMethod.gif|}} GetType() ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 216: | Line 219: | ||
** {{wiki:ProtectedMethod.gif|}} DrawCore(IEnumerable<Feature>,GeoCanvas,Collection<SimpleCandidate>,Collection<SimpleCandidate>) ** | ** {{wiki:ProtectedMethod.gif|}} DrawCore(IEnumerable<Feature>,GeoCanvas,Collection<SimpleCandidate>,Collection<SimpleCandidate>) ** | ||
- | This method draws the features on the canvas you provided. | + | * //This method draws the features on the canvas you provided.// |
== Remarks == | == 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 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. | + | * //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 == | == Return Value == | ||
Line 244: | Line 247: | ||
** {{wiki:ProtectedMethod.gif|}} DrawSampleCore(GeoCanvas,DrawingRectangleF) ** | ** {{wiki:ProtectedMethod.gif|}} DrawSampleCore(GeoCanvas,DrawingRectangleF) ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 264: | Line 267: | ||
** {{wiki:ProtectedMethod.gif|}} GetRequiredColumnNamesCore() ** | ** {{wiki:ProtectedMethod.gif|}} GetRequiredColumnNamesCore() ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 276: | Line 279: | ||
** {{wiki:ProtectedMethod.gif|}} Finalize() ** | ** {{wiki:ProtectedMethod.gif|}} Finalize() ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 288: | Line 291: | ||
** {{wiki:ProtectedMethod.gif|}} MemberwiseClone() ** | ** {{wiki:ProtectedMethod.gif|}} MemberwiseClone() ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == |