User Tools

Site Tools


thinkgeo.mapsuite.windowsphonecore.classbreak

ThinkGeo.MapSuite.WindowsPhoneCore.ClassBreak

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.

<!– Class –> This class represents a single class break.

Remarks

Class breaks are used in the ClassBreakStyle. They allow you to display data differently depending on ranges of data in the FeatureSource.

How class breaks work:

You add a number of ClassBreak classes to the ClassBreak collection. The numeric values of the breaks are important and you must place the breaks in numerical order. For example, break 0 must be added before break 100. In each ClassBreak, you specify the style you want to represent that break. Additionally, in the ColumnName property, you specify the name of the column where we will find the data used to compare the breaks. The column name must point to a column that is numeric.

When we proceed to draw the style, we look through the ClassBreaks and select the ClassBreak that is where the features column data is greater than and closest to the break value.

Example:

Feature Value = 42

ClassBreak1.Value = 0 ClassBreak2.Value = 20 ClassBreak3.Value = 40 ClassBreak4.Value = 60

In this case, the break closest to the feature value without exceeding it is ClassBreak3(40). If the feature value had been less than zero, nothing would have been drawn. If the feature value were 1000, then ClassBreak4 would draw.

If you wanted to represent a value that is less then zero, you could do that as shown in the sample below.

Feature Value = -1

ClassBreak1.Value = Double.Min ClassBreak2.Value = 0 ClassBreak3.Value = 20 ClassBreak4.Value = 40

In this example, the first class break would be used.

Inheritance Hierarchy

Members Summary

Public Constructors

Name Parameters DeclaringType Summary
Public MethodClassBreak This is the class constructor.
Public MethodClassBreak Double, AreaStyle This is the class constructor.
Public MethodClassBreak Double, PointStyle This is the class constructor.
Public MethodClassBreak Double, LineStyle This is the class constructor.
Public MethodClassBreak Double, TextStyle This is the class constructor.
Public MethodClassBreak Double, Collection<Style> This is the class constructor.

Protected Constructors

Name Parameters DeclaringType Summary

Public Methods

Name Parameters DeclaringType Summary
Public MethodEquals Object Object
Public MethodGetHashCode Object
Public MethodGetType Object
Public MethodToString Object

Protected Methods

Name Parameters DeclaringType Summary
Protected MethodFinalize Object
Protected MethodMemberwiseClone Object

Public Properties

Name Return DeclaringType Summary
Public PropertyCustomStyles Collection<Style> This property gets a collection of custom styles used to draw the class break.
Public PropertyDefaultAreaStyle AreaStyle This property gets and sets the default AreaStyle used to draw the class break.
Public PropertyDefaultLineStyle LineStyle This property gets and sets the default LineStyle used to draw the class break.
Public PropertyDefaultPointStyle PointStyle This property gets and sets the default PointStyle used to draw the class break.
Public PropertyDefaultTextStyle TextStyle This property gets and sets the default TextStyle used to draw the class break.
Public PropertyValue Double This property get and sets the break value.

Protected Properties

Name Return DeclaringType Summary

Public Events

Name Event Arguments DeclaringType Summary

Public Constructors

ClassBreak()

This is the class constructor.

Overloads

This is the default constructor.

Remarks

If you use this default constructor, then you should set the properties manually.

Parameters

Name Type Description

Go Back

ClassBreak(Double, AreaStyle)

This is the class constructor.

Overloads

This overload allows you to pass in a break value and an AreaStyle to use.

Remarks

This overload allows you to pass in a break value and an AreaStyle to use.

Parameters

Name Type Description
value Double<!– System.Double –> The parameter represents the break value.
areaStyle AreaStyle<!– ThinkGeo.MapSuite.WindowsPhoneCore.AreaStyle –> This parameter is the AreaStyle you want to use to represent this break.

Go Back

ClassBreak(Double, PointStyle)

This is the class constructor.

Overloads

This overload allows you to pass in a break value and a Point to use.

Remarks

This overload allows you to pass in a break value and a Point to use.

Parameters

Name Type Description
value Double<!– System.Double –> The parameter represents the break value.
pointStyle PointStyle<!– ThinkGeo.MapSuite.WindowsPhoneCore.PointStyle –> This parameter is the PointStyle you want to use to represent this break.

Go Back

ClassBreak(Double, LineStyle)

This is the class constructor.

Overloads

This overload allows you to pass in a break value and a LineStyle to use.

Remarks

This overload allows you to pass in a break value and a LineStyle to use.

Parameters

Name Type Description
value Double<!– System.Double –> The parameter represents the break value.
lineStyle LineStyle<!– ThinkGeo.MapSuite.WindowsPhoneCore.LineStyle –> This parameter is the LineStyle you want to use to represent this break.

Go Back

ClassBreak(Double, TextStyle)

This is the class constructor.

Overloads

This overload allows you to pass in a break value and a TextStyle to use.

Remarks

This overload allows you to pass in a break value and a TextStyle to use.

Parameters

Name Type Description
value Double<!– System.Double –> The parameter represents the break value.
textStyle TextStyle<!– ThinkGeo.MapSuite.WindowsPhoneCore.TextStyle –> This parameter is the TextStyle you want to use to represent this break.

Go Back

ClassBreak(Double, Collection<Style>)

This is the class constructor.

Overloads

This overload allows you to pass in a break value and a collection of TextStyles to use.

Remarks

This overload allows you to pass in a break value and a collection of TextStyles to use.

Parameters

Name Type Description
value Double<!– System.Double –> The parameter represents the break value.
customStyles Collection<Style><!– System.Collections.ObjectModel.Collection{ThinkGeo.MapSuite.WindowsPhoneCore.Style} –> This parameter is the TextStyles you want to use to represent this break.

Go Back

Protected Constructors

Public Methods

Equals(Object)

Return Value

Return Type Description
Boolean<!– System.Boolean –>

Parameters

Name Type Description
obj Object<!– System.Object –>

<!– System.Object –> Go Back

GetHashCode()

Return Value

Return Type Description
Int32<!– System.Int32 –>

Parameters

Name Type Description

<!– System.Object –> Go Back

GetType()

Return Value

Return Type Description
Type<!– System.Type –>

Parameters

Name Type Description

<!– System.Object –> Go Back

ToString()

Return Value

Return Type Description
String<!– System.String –>

Parameters

Name Type Description

<!– System.Object –> Go Back

Protected Methods

Finalize()

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description

<!– System.Object –> Go Back

MemberwiseClone()

Return Value

Return Type Description
Object<!– System.Object –>

Parameters

Name Type Description

<!– System.Object –> Go Back

Public Properties

CustomStyles

This property gets a collection of custom styles used to draw the class break.

Remarks

If you set these styles, then when the data for a feature is within the current break it will use this style to draw.

If you do not wish to use the default style properties, then you can use this collection to specify any types of styles you want to use.

Return Value

Return Type
Collection<Style><!– System.Collections.ObjectModel.Collection{ThinkGeo.MapSuite.WindowsPhoneCore.Style} –>

<!– ThinkGeo.MapSuite.WindowsPhoneCore.ClassBreak –> Go Back

DefaultAreaStyle

This property gets and sets the default AreaStyle used to draw the class break.

Remarks

If you set this style, then when the data for a feature is within the current break it will use this style to draw.

If you use the default styles, then you should only use one. The one you use should match your feature data. For example, if your features are lines, then you should use the DefaultLineStyle.

Return Value

Return Type
AreaStyle<!– ThinkGeo.MapSuite.WindowsPhoneCore.AreaStyle –>

<!– ThinkGeo.MapSuite.WindowsPhoneCore.ClassBreak –> Go Back

DefaultLineStyle

This property gets and sets the default LineStyle used to draw the class break.

Remarks

If you set this style, then when the data for a feature is within the current break it will use this style to draw.

If you use the default styles, then you should only use one. The one you use should match your feature data. For example, if your features are lines, then you should use the DefaultLineStyle.

Return Value

Return Type
LineStyle<!– ThinkGeo.MapSuite.WindowsPhoneCore.LineStyle –>

<!– ThinkGeo.MapSuite.WindowsPhoneCore.ClassBreak –> Go Back

DefaultPointStyle

This property gets and sets the default PointStyle used to draw the class break.

Remarks

If you set this style, then when the data for a feature is within the current break it will use this style to draw.

If you use the default styles, then you should only use one. The one you use should match your feature data. For example, if your features are lines, then you should use the DefaultLineStyle.

Return Value

Return Type
PointStyle<!– ThinkGeo.MapSuite.WindowsPhoneCore.PointStyle –>

<!– ThinkGeo.MapSuite.WindowsPhoneCore.ClassBreak –> Go Back

DefaultTextStyle

This property gets and sets the default TextStyle used to draw the class break.

Remarks

If you set this style, then when the data for a feature is within the current break it will use this style to draw.

If you use the default styles, then you should only use one. The one you use should match your feature data. For example, if your features are lines then you should use the DefaultLineStyle.

Return Value

Return Type
TextStyle<!– ThinkGeo.MapSuite.WindowsPhoneCore.TextStyle –>

<!– ThinkGeo.MapSuite.WindowsPhoneCore.ClassBreak –> Go Back

Value

This property get and sets the break value.

Remarks

This value determines where the break is in the ClassBreakStyle.

Please see the ClassBreakStyle class remarks for a full description of how the ClassBreakStyle works.

Return Value

Return Type
Double<!– System.Double –>

<!– ThinkGeo.MapSuite.WindowsPhoneCore.ClassBreak –> Go Back

Protected Properties

Public Events

thinkgeo.mapsuite.windowsphonecore.classbreak.txt · Last modified: 2017/03/16 21:59 (external edit)