User Tools

Site Tools


thinkgeo.mapsuite.core.iconvaluestyle

This is an old revision of the document!


ThinkGeo.MapSuite.Core.IconValueStyle

This class allows you to choose different icons based on values in the data of a feature.

Inheritance Hierarchy

  • System.Object
    • ThinkGeo.MapSuite.Core.Style
      • ThinkGeo.MapSuite.Core.PositionStyle
        • ThinkGeo.MapSuite.Core.IconValueStyle

Members Summary

Public Constructors

IconValueStyle

  • Parameters:N/A
  • DeclaringType:N/A
  • Summary:This is the constructor for the class.

IconValueStyle

  • Parameters:String
  • DeclaringType:N/A
  • Summary:This is the constructor for the class.

IconValueStyle

  • Parameters:String,IEnumerable<IconValueItem>
  • DeclaringType:N/A
  • Summary:This is the constructor for the class.

Protected Constructors

Public Methods

CloneDeep

  • Parameters:N/A
  • DeclaringType:Style
  • Summary:N/A

Draw

Draw

DrawSample

DrawSample

Equals

  • Parameters:Object
  • DeclaringType:Object
  • Summary:N/A

GetHashCode

  • Parameters:N/A
  • DeclaringType:Object
  • Summary:N/A

GetRequiredColumnNames

  • Parameters:N/A
  • DeclaringType:Style
  • Summary:N/A

GetType

  • Parameters:N/A
  • DeclaringType:Object
  • Summary:N/A

SaveStyle

  • Parameters:String
  • DeclaringType:Style
  • Summary:N/A

SaveStyle

  • Parameters:Stream
  • DeclaringType:Style
  • Summary:N/A

ToString

  • Parameters:N/A
  • DeclaringType:Object
  • Summary:N/A

Protected Methods

AbbreviateText

AbbreviateTextCore

CheckDuplicate

CheckDuplicateCore

CheckOverlapping

CheckOverlappingCore

CloneDeepCore

  • Parameters:N/A
  • DeclaringType:Style
  • Summary:N/A

DrawCore

DrawSampleCore

FilterFeatures

FilterFeaturesCore

Finalize

  • Parameters:N/A
  • DeclaringType:Object
  • Summary:N/A

Format

FormatCore

GetLabelingCandidateCore

  • Parameters:Feature,GeoCanvas
  • DeclaringType:N/A
  • Summary:This method determines whether the specified feature is a good candidate to be labeled, based on the labeling properties set.

GetLabelingCandidates

GetRequiredColumnNamesCore

  • Parameters:N/A
  • DeclaringType:N/A
  • Summary:This method returns the column data for each feature that is required for the style to properly draw.

MemberwiseClone

  • Parameters:N/A
  • DeclaringType:Object
  • Summary:N/A

OnFormatted

OnFormatting

lD8=

Public Properties

AbbreviationDictionary

  • Return:Dictionary<String,String>
  • Summary:N/A

AllowLineCarriage

  • Return:Boolean
  • Summary:N/A

BestPlacement

  • Return:Boolean
  • Summary:N/A

BestPlacementSymbolHeight

  • Return:Single
  • Summary:N/A

BestPlacementSymbolWidth

  • Return:Single
  • Summary:N/A

ColumnName

  • Return:String
  • Summary:This property gets and sets the column name that will be used for the drawing and matching.

DuplicateRule

Filters

  • Return:Collection<String>
  • Summary:N/A

FittingPolygon

  • Return:Boolean
  • Summary:N/A

FittingPolygonFactor

  • Return:Double
  • Summary:N/A

ForceLineCarriage

  • Return:Boolean
  • Summary:N/A

GridSize

  • Return:Int32
  • Summary:N/A

IconValueItems

  • Return:Collection<IconValueItem>
  • Summary:This property gets the collection of IconValueItems for matching.

IsActive

  • Return:Boolean
  • Summary:N/A

LabelAllLineParts

  • Return:Boolean
  • Summary:N/A

LabelAllPolygonParts

  • Return:Boolean
  • Summary:N/A

LeaderLineMinimumLengthInPixels

  • Return:Single
  • Summary:N/A

LeaderLineRule

LeaderLineStyle

MaskType

MaxNudgingInPixel

  • Return:Int32
  • Summary:N/A

Name

  • Return:String
  • Summary:N/A

NudgingIntervalInPixel

  • Return:Single
  • Summary:N/A

OverlappingRule

PointPlacement

PolygonLabelingLocationMode

RequiredColumnNames

  • Return:Collection<String>
  • Summary:N/A

SuppressPartialLabels

  • Return:Boolean
  • Summary:N/A

TextLineSegmentRatio

  • Return:Double
  • Summary:N/A

Protected Properties

Advanced

AllowSpline

  • Return:Boolean
  • Summary:N/A

CustomTextStyles

DateFormat

  • Return:String
  • Summary:N/A

DrawingLevel

FiltersCore

  • Return:Collection<String>
  • Summary:N/A

FittingLineInScreen

  • Return:Boolean
  • Summary:N/A

FittingPolygonInScreen

  • Return:Boolean
  • Summary:N/A

Font

ForceHorizontalLabelForLine

  • Return:Boolean
  • Summary:N/A

HaloPen

LabelPositions

Mask

MaskMargin

  • Return:Int32
  • Summary:N/A

NumericFormat

  • Return:String
  • Summary:N/A

RotationAngle

  • Return:Double
  • Summary:N/A

SplineType

TextColumnName

  • Return:String
  • Summary:N/A

TextFormat

  • Return:String
  • Summary:N/A

TextSolidBrush

XOffsetInPixel

  • Return:Single
  • Summary:N/A

YOffsetInPixel

  • Return:Single
  • Summary:N/A

uBs=

  • Return:Boolean
  • Summary:N/A

xT8=

  • Return:Boolean
  • Summary:N/A

Public Events

Formatted

Formatting

Public Constructors

IconValueStyle()

This is the constructor for the class.

Remarks

If you use this constructor, then you need to set the required properties manually.

Parameters

IconValueStyle(String)

This is the constructor for the class.

Remarks

None

Parameters

columnName

  • Type:String
  • Description:This parameter is the column name you want to match on. Go Back === IconValueStyle(String,IEnumerable<IconValueItem>) === This is the constructor for the class. ==== Remarks ==== None ==== Parameters ==== columnName * Type:String * Description:This parameter is the column name you want to match on.

iconValueItems

  • Type:IEnumerable<IconValueItem>
  • Description:This parameter is the icon value items you want to match on. Go Back ===== Protected Constructors ===== ===== Public Methods ===== === CloneDeep() === N/A ==== Remarks ==== N/A Return Value * Return Type:Style * Description:N/A ==== Parameters ==== Go Back === Draw(IEnumerable<Feature>,GeoCanvas,Collection<SimpleCandidate>,Collection<SimpleCandidate>) === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== features * Type:IEnumerable<Feature> * Description:N/A canvas * Type:GeoCanvas * Description:N/A labelsInThisLayer * Type:Collection<SimpleCandidate> * Description:N/A labelsInAllLayers * Type:Collection<SimpleCandidate> * Description:N/A Go Back === Draw(IEnumerable<BaseShape>,GeoCanvas,Collection<SimpleCandidate>,Collection<SimpleCandidate>) === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== shapes * Type:IEnumerable<BaseShape> * Description:N/A canvas * Type:GeoCanvas * Description:N/A labelsInThisLayer * Type:Collection<SimpleCandidate> * Description:N/A labelsInAllLayers * Type:Collection<SimpleCandidate> * Description:N/A Go Back === DrawSample(GeoCanvas,DrawingRectangleF) === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== canvas * Type:GeoCanvas * Description:N/A drawingExtent * Type:DrawingRectangleF * Description:N/A Go Back === DrawSample(GeoCanvas) === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== canvas * Type:GeoCanvas * Description:N/A Go Back === Equals(Object) === N/A ==== Remarks ==== N/A Return Value * Return Type:Boolean * Description:N/A ==== Parameters ==== obj * Type:Object * Description:N/A Go Back === GetHashCode() === N/A ==== Remarks ==== N/A Return Value * Return Type:Int32 * Description:N/A ==== Parameters ==== Go Back === GetRequiredColumnNames() === N/A ==== Remarks ==== N/A Return Value * Return Type:Collection<String> * Description:N/A ==== Parameters ==== Go Back === GetType() === N/A ==== Remarks ==== N/A Return Value * Return Type:Type * Description:N/A ==== Parameters ==== Go Back === SaveStyle(String) === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== filePathName * Type:String * Description:N/A Go Back === SaveStyle(Stream) === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== stream * Type:Stream * Description:N/A Go Back === ToString() === N/A ==== Remarks ==== N/A Return Value * Return Type:String * Description:N/A ==== Parameters ==== Go Back ===== Protected Methods ===== === AbbreviateText(Feature,GeoCanvas) === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== feature * Type:Feature * Description:N/A canvas * Type:GeoCanvas * Description:N/A Go Back === AbbreviateTextCore(Feature,GeoCanvas) === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== feature * Type:Feature * Description:N/A canvas * Type:GeoCanvas * Description:N/A Go Back === CheckDuplicate(LabelingCandidate,GeoCanvas,Collection<SimpleCandidate>,Collection<SimpleCandidate>) === N/A ==== Remarks ==== N/A Return Value * Return Type:Boolean * Description:N/A ==== Parameters ==== labelingCandidate * Type:LabelingCandidate * Description:N/A canvas * Type:GeoCanvas * Description:N/A labelsInThisLayer * Type:Collection<SimpleCandidate> * Description:N/A labelsInAllLayers * Type:Collection<SimpleCandidate> * Description:N/A Go Back === CheckDuplicateCore(LabelingCandidate,GeoCanvas,Collection<SimpleCandidate>,Collection<SimpleCandidate>) === N/A ==== Remarks ==== N/A Return Value * Return Type:Boolean * Description:N/A ==== Parameters ==== labelingCandidate * Type:LabelingCandidate * Description:N/A canvas * Type:GeoCanvas * Description:N/A labelsInThisLayer * Type:Collection<SimpleCandidate> * Description:N/A labelsInAllLayers * Type:Collection<SimpleCandidate> * Description:N/A Go Back === CheckOverlapping(LabelingCandidate,GeoCanvas,Collection<SimpleCandidate>,Collection<SimpleCandidate>) === N/A ==== Remarks ==== N/A Return Value * Return Type:Boolean * Description:N/A ==== Parameters ==== labelingCandidate * Type:LabelingCandidate * Description:N/A canvas * Type:GeoCanvas * Description:N/A labelsInThisLayer * Type:Collection<SimpleCandidate> * Description:N/A labelsInAllLayers * Type:Collection<SimpleCandidate> * Description:N/A Go Back === CheckOverlappingCore(LabelingCandidate,GeoCanvas,Collection<SimpleCandidate>,Collection<SimpleCandidate>) === N/A ==== Remarks ==== N/A Return Value * Return Type:Boolean * Description:N/A ==== Parameters ==== labelingCandidate * Type:LabelingCandidate * Description:N/A canvas * Type:GeoCanvas * Description:N/A labelsInThisLayer * Type:Collection<SimpleCandidate> * Description:N/A labelsInAllLayers * Type:Collection<SimpleCandidate> * Description:N/A Go Back === CloneDeepCore() === N/A ==== Remarks ==== N/A Return Value * Return Type:Style * Description:N/A ==== Parameters ==== Go Back === DrawCore(IEnumerable<Feature>,GeoCanvas,Collection<SimpleCandidate>,Collection<SimpleCandidate>) === This method draws the features on the canvas 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 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 Type:Void * Description:None ==== Parameters ==== features * Type:IEnumerable<Feature> * Description:This parameter represents the features you want to draw on the canvas. canvas * Type:GeoCanvas * Description:This parameter represents the canvas you want to draw the features on. labelsInThisLayer * Type:Collection<SimpleCandidate> * Description:The labels will be drawn in the current layer only. labelsInAllLayers * Type:Collection<SimpleCandidate> * Description:The labels will be drawn in all layers. Go Back === DrawSampleCore(GeoCanvas,DrawingRectangleF) === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== canvas * Type:GeoCanvas * Description:N/A drawingExtent * Type:DrawingRectangleF * Description:N/A Go Back === FilterFeatures(IEnumerable<Feature>,GeoCanvas) === N/A ==== Remarks ==== N/A Return Value * Return Type:Collection<Feature> * Description:N/A ==== Parameters ==== features * Type:IEnumerable<Feature> * Description:N/A canvas * Type:GeoCanvas * Description:N/A Go Back === FilterFeaturesCore(IEnumerable<Feature>,GeoCanvas) === N/A ==== Remarks ==== N/A Return Value * Return Type:Collection<Feature> * Description:N/A ==== Parameters ==== features * Type:IEnumerable<Feature> * Description:N/A canvas * Type:GeoCanvas * Description:N/A Go Back === Finalize() === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== Go Back === Format(String,BaseShape) === N/A ==== Remarks ==== N/A Return Value * Return Type:String * Description:N/A ==== Parameters ==== text * Type:String * Description:N/A labeledShape * Type:BaseShape * Description:N/A Go Back === FormatCore(String,BaseShape) === N/A ==== Remarks ==== N/A Return Value * Return Type:String * Description:N/A ==== Parameters ==== text * Type:String * Description:N/A labeledShape * Type:BaseShape * Description:N/A Go Back === GetLabelingCandidateCore(Feature,GeoCanvas) === This method determines whether the specified feature is a good candidate to be labeled, based on the labeling properties set. ==== Remarks ==== This overridden method is called from the concrete public method Draw. In this method, we take the feature you passed in and determine if it is a candidate for labeling. If it is, then we will add it to the return collection. The algorithm to determine whether the label will draw is complex and determined by a number of properties and factors. Return Value * Return Type:Collection<LabelingCandidate> * Description:N/A ==== Parameters ==== feature * Type:Feature * Description:This parameter is the feature that will be considered as a labeling candidate. canvas * Type:GeoCanvas * Description:This parameter is the canvas that will be used to draw the feature. This method will not draw on this canvas, but rather will use it to determine font size, etc. Go Back === GetLabelingCandidates(Feature,GeoCanvas) === N/A ==== Remarks ==== N/A Return Value * Return Type:Collection<LabelingCandidate> * Description:N/A ==== Parameters ==== feature * Type:Feature * Description:N/A canvas * Type:GeoCanvas * Description:N/A Go Back === GetRequiredColumnNamesCore() === 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 * Return Type:Collection<String> * Description:This method returns a collection of the column names that it needs. ==== Parameters ==== Go Back === MemberwiseClone() === N/A ==== Remarks ==== N/A Return Value * Return Type:Object * Description:N/A ==== Parameters ==== Go Back === OnFormatted(FormattedPositionStyleEventArgs) === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== e * Type:FormattedPositionStyleEventArgs * Description:N/A Go Back === OnFormatting(FormattingPositionStyleEventArgs) === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== e * Type:FormattingPositionStyleEventArgs * Description:N/A Go Back === lD8=(PolygonShape,String,GeoCanvas) === N/A ==== Remarks ==== N/A Return Value * Return Type:LabelingCandidate * Description:N/A ==== Parameters ==== polygon * Type:PolygonShape * Description:N/A text * Type:String * Description:N/A canvas * Type:GeoCanvas * Description:N/A Go Back ===== Public Properties ===== === AbbreviationDictionary === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:Dictionary<String,String> Go Back === AllowLineCarriage === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:Boolean Go Back === BestPlacement === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:Boolean Go Back === BestPlacementSymbolHeight === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:Single Go Back === BestPlacementSymbolWidth === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:Single Go Back === ColumnName === This property gets and sets the column name that will be used for the drawing and matching. ==== Remarks ==== This column name will be used to draw the text on the icon (if necessary) and to also match the value in the IconStyleItem. ==== Return Value ==== Return Type:String Go Back === DuplicateRule === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:LabelDuplicateRule Go Back === Filters === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:Collection<String> Go Back === FittingPolygon === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:Boolean Go Back === FittingPolygonFactor === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:Double Go Back === ForceLineCarriage === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:Boolean Go Back === GridSize === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:Int32 Go Back === IconValueItems === This property gets the collection of IconValueItems for matching. ==== Remarks ==== You should create your IconValueItems and place them in this collection for consideration. ==== Return Value ==== Return Type:Collection<IconValueItem> Go Back === IsActive === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:Boolean Go Back === LabelAllLineParts === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:Boolean Go Back === LabelAllPolygonParts === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:Boolean Go Back === LeaderLineMinimumLengthInPixels === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:Single Go Back === LeaderLineRule === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:LabelLeaderLinesRule Go Back === LeaderLineStyle === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:LineStyle Go Back === MaskType === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:MaskType Go Back === MaxNudgingInPixel === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:Int32 Go Back === Name === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:String Go Back === NudgingIntervalInPixel === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:Single Go Back === OverlappingRule === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:LabelOverlappingRule Go Back === PointPlacement === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:PointPlacement Go Back === PolygonLabelingLocationMode === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:PolygonLabelingLocationMode Go Back === RequiredColumnNames === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:Collection<String> Go Back === SuppressPartialLabels === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:Boolean Go Back === TextLineSegmentRatio === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:Double Go Back ===== Protected Properties ===== === Advanced === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:TextStyleAdvanced Go Back === AllowSpline === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:Boolean Go Back === CustomTextStyles === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:Collection<TextStyle> Go Back === DateFormat === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:String Go Back === DrawingLevel === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:DrawingLevel Go Back === FiltersCore === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:Collection<String> Go Back === FittingLineInScreen === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:Boolean Go Back === FittingPolygonInScreen === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:Boolean Go Back === Font === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:GeoFont Go Back === ForceHorizontalLabelForLine === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:Boolean Go Back === HaloPen === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:GeoPen Go Back === LabelPositions === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:Dictionary<String,WorldLabelingCandidate> Go Back === Mask === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:AreaStyle Go Back === MaskMargin === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:Int32 Go Back === NumericFormat === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:String Go Back === RotationAngle === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:Double Go Back === SplineType === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:SplineType Go Back === TextColumnName === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:String Go Back === TextFormat === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:String Go Back === TextSolidBrush === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:GeoSolidBrush Go Back === XOffsetInPixel === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:Single Go Back === YOffsetInPixel === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:Single Go Back === uBs= === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:Boolean Go Back === xT8= === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:Boolean Go Back ===== Public Events ===== === Formatted === N/A ==== Remarks ==== N/A Event Arguments:FormattedPositionStyleEventArgs Go Back === Formatting === N/A ==== Remarks ==== N/A Event Arguments**:FormattingPositionStyleEventArgs

Go Back

thinkgeo.mapsuite.core.iconvaluestyle.1442485907.txt.gz · Last modified: 2015/09/17 10:31 by admin