User Tools

Site Tools


12.0:apis:thinkgeo.core.pointstyle

ThinkGeo.Core.PointStyle

Inheritance Hierarchy

Members Summary

Public Constructors

PointStyle()

  • This is a constructor for the class.
Remarks
  • If you use this constructor, you should set the various properties manually. Specifically, you will want to set the PointType, which allows you to choose between bitmap, character and symbol as an option for displaying your points.
Parameters

PointStyle(GeoImage)

  • This is a constructor for the class.
Remarks
  • If you use this constructor, the PointStyle will be set to Image.
Parameters
  • image
    • Type:GeoImage
    • Description:This parameter is the NativeImage of the image you want to use to display the point.

PointStyle(GeoFont,String,GeoBrush)

  • This is a constructor for the class.
Remarks
  • If you use this constructor, the PointStyle will be set to Glyph.
Parameters
  • characterFont
    • Type:GeoFont
    • Description:This parameter is the font from which the character will be selected.
  • glyphContent
    • Type:String
    • Description:N/A
  • fillBrush
    • Type:GeoBrush
    • Description:This parameter is the SolidBrush used to draw the character.

PointStyle(PointSymbolType,Int32,GeoBrush)

  • This is a constructor for the class.
Remarks
  • If you use this constructor, the PointStyle will be set to Symbol.
Parameters
  • symbolType
    • Description:This parameter is the type of symbol you want to use, such as a square or a circle.
  • symbolSize
    • Type:Int32
    • Description:This parameter is the size you want the symbol to be.
  • fillBrush
    • Type:GeoBrush
    • Description:This parameter is the SolidBrush you want to use to fill the inside of the symbol.

PointStyle(PointSymbolType,Int32,GeoBrush,GeoPen)

  • This is a constructor for the class.
Remarks
  • If you use this constructor, the PointStyle will be set to Symbol.
Parameters
  • symbolType
    • Description:This parameter is the type of symbol you want to use, such as a square or a circle.
  • symbolSize
    • Type:Int32
    • Description:This parameter is the size you want the symbol to be.
  • fillBrush
    • Type:GeoBrush
    • Description:This parameter is the SolidBrush you want to use to fill the inside of the symbol.
  • outlinePen
    • Type:GeoPen
    • Description:This parameter is the Pen used to draw the outline of the symbol.

Protected Constructors

Public Methods

CloneDeep()

  • N/A
Remarks
  • N/A
Return Value
  • Type:Style
  • Description:N/A
Parameters

Draw(IEnumerable<Feature>,GeoCanvas,Collection<SimpleCandidate>,Collection<SimpleCandidate>)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • features
    • Type:IEnumerable<Feature>
    • Description:N/A

Draw(IEnumerable<BaseShape>,GeoCanvas,Collection<SimpleCandidate>,Collection<SimpleCandidate>)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • shapes
    • Type:IEnumerable<BaseShape>
    • Description:N/A

GetRequiredColumnNames()

  • N/A
Remarks
  • N/A
Return Value
  • Type:Collection<String>
  • Description:N/A
Parameters

DrawSample(GeoCanvas,DrawingRectangleF)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters

DrawSample(GeoCanvas)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters

SaveStyle(String)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • filePathName
    • Type:String
    • Description:N/A

SaveStyle(Stream)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • stream
    • Type:Stream
    • Description:N/A

GetType()

  • N/A
Remarks
  • N/A
Return Value
  • Type:Type
  • Description:N/A
Parameters

ToString()

  • N/A
Remarks
  • N/A
Return Value
  • Type:String
  • Description:N/A
Parameters

Equals(Object)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Boolean
  • Description:N/A
Parameters
  • obj
    • Type:Object
    • Description:N/A

GetHashCode()

  • N/A
Remarks
  • N/A
Return Value
  • Type:Int32
  • Description:N/A
Parameters

Parse(String)

  • N/A
Remarks
  • N/A
Return Value
Parameters
  • styleJson
    • Type:String
    • Description:N/A

CreateSimplePointStyle(PointSymbolType,GeoColor,Single)

  • N/A
Remarks
  • N/A
Return Value
  • Description:The created point style.
Parameters
  • pointStyle
    • Description:This parameter determines the PointStyle symbol type.
  • fillColor
    • Type:GeoColor
    • Description:This parameter determines the PointStyle fill color.
  • size
    • Type:Single
    • Description:This parameter determines the PointStyle size.

CreateSimplePointStyle(PointSymbolType,GeoColor,GeoColor,Single,Single)

  • N/A
Remarks
  • N/A
Return Value
  • Description:The created point style.
Parameters
  • pointStyle
    • Description:This parameter determines the PointStyle symbol type.
  • fillColor
    • Type:GeoColor
    • Description:This parameter determines the PointStyle fill color.
  • outlineColor
    • Type:GeoColor
    • Description:This parameter determines the PointStyle outline color.
  • outlineWidth
    • Type:Single
    • Description:This parameter determines the PointStyle outline width.
  • size
    • Type:Single
    • Description:This parameter determines the PointStyle size.

CreateSimplePointStyle(PointSymbolType,GeoColor,GeoColor,Single)

  • N/A
Remarks
  • N/A
Return Value
  • Description:The created point style.
Parameters
  • pointStyle
    • Description:This parameter determines the PointStyle symbol type.
  • fillColor
    • Type:GeoColor
    • Description:This parameter determines the PointStyle fill color.
  • outlineColor
    • Type:GeoColor
    • Description:This parameter determines the PointStyle outline color.
  • size
    • Type:Single
    • Description:This parameter determines the PointStyle size.

CreateSimpleCircleStyle(GeoColor,Single)

  • N/A
Remarks
  • N/A
Return Value
  • Description:The created point style.
Parameters
  • fillColor
    • Type:GeoColor
    • Description:This parameter determines the PointStyle fill color.
  • size
    • Type:Single
    • Description:This parameter determines the PointStyle size.

CreateSimpleCircleStyle(GeoColor,Single,GeoColor,Single)

  • N/A
Remarks
  • N/A
Return Value
  • Description:The created point style.
Parameters
  • fillColor
    • Type:GeoColor
    • Description:This parameter determines the PointStyle fill color.
  • size
    • Type:Single
    • Description:This parameter determines the PointStyle size.
  • outlineColor
    • Type:GeoColor
    • Description:This parameter determines the PointStyle outline color.
  • outlineWidth
    • Type:Single
    • Description:This parameter determines the PointStyle outline width.

CreateSimpleCircleStyle(GeoColor,Single,GeoColor)

  • N/A
Remarks
  • N/A
Return Value
  • Description:The created point style.
Parameters
  • fillColor
    • Type:GeoColor
    • Description:This parameter determines the PointStyle fill color.
  • size
    • Type:Single
    • Description:This parameter determines the PointStyle size.
  • outlineColor
    • Type:GeoColor
    • Description:This parameter determines the PointStyle outline color.

CreateSimpleSquareStyle(GeoColor,Single)

  • N/A
Remarks
  • N/A
Return Value
  • Description:The created point style.
Parameters
  • fillColor
    • Type:GeoColor
    • Description:This parameter determines the PointStyle fill color.
  • size
    • Type:Single
    • Description:This parameter determines the PointStyle size.

CreateSimpleSquareStyle(GeoColor,Single,GeoColor)

  • N/A
Remarks
  • N/A
Return Value
  • Description:The created point style.
Parameters
  • fillColor
    • Type:GeoColor
    • Description:This parameter determines the PointStyle fill color.
  • size
    • Type:Single
    • Description:This parameter determines the PointStyle size.
  • outlineColor
    • Type:GeoColor
    • Description:This parameter determines the PointStyle outline color.

CreateSimpleSquareStyle(GeoColor,Single,GeoColor,Single)

  • N/A
Remarks
  • N/A
Return Value
  • Description:The created point style.
Parameters
  • fillColor
    • Type:GeoColor
    • Description:This parameter determines the PointStyle fill color.
  • size
    • Type:Single
    • Description:This parameter determines the PointStyle size.
  • outlineColor
    • Type:GeoColor
    • Description:This parameter determines the PointStyle outline color.
  • outlineWidth
    • Type:Single
    • Description:This parameter determines the PointStyle outline width.

CreateSimpleStarStyle(GeoColor,Single)

  • N/A
Remarks
  • N/A
Return Value
  • Description:The created point style.
Parameters
  • fillColor
    • Type:GeoColor
    • Description:This parameter determines the PointStyle fill color.
  • size
    • Type:Single
    • Description:This parameter determines the PointStyle size.

CreateSimpleStarStyle(GeoColor,Single,GeoColor)

  • N/A
Remarks
  • N/A
Return Value
  • Description:The created point style.
Parameters
  • fillColor
    • Type:GeoColor
    • Description:This parameter determines the PointStyle fill color.
  • size
    • Type:Single
    • Description:This parameter determines the PointStyle size.
  • outlineColor
    • Type:GeoColor
    • Description:This parameter determines the PointStyle outline color.

CreateSimpleStarStyle(GeoColor,Single,GeoColor,Single)

  • N/A
Remarks
  • N/A
Return Value
  • Description:The created point style.
Parameters
  • fillColor
    • Type:GeoColor
    • Description:This parameter determines the PointStyle fill color.
  • size
    • Type:Single
    • Description:This parameter determines the PointStyle size.
  • outlineColor
    • Type:GeoColor
    • Description:This parameter determines the PointStyle outline color.
  • outlineWidth
    • Type:Single
    • Description:This parameter determines the PointStyle outline width.

CreateSimpleTriangleStyle(GeoColor,Single)

  • N/A
Remarks
  • N/A
Return Value
  • Description:The created point style.
Parameters
  • fillColor
    • Type:GeoColor
    • Description:This parameter determines the PointStyle fill color.
  • size
    • Type:Single
    • Description:This parameter determines the PointStyle size.

CreateSimpleTriangleStyle(GeoColor,Single,GeoColor)

  • N/A
Remarks
  • N/A
Return Value
  • Description:The created point style.
Parameters
  • fillColor
    • Type:GeoColor
    • Description:This parameter determines the PointStyle fill color.
  • size
    • Type:Single
    • Description:This parameter determines the PointStyle size.
  • outlineColor
    • Type:GeoColor
    • Description:This parameter determines the PointStyle outline color.

CreateSimpleTriangleStyle(GeoColor,Single,GeoColor,Single)

  • N/A
Remarks
  • N/A
Return Value
  • Description:The created point style.
Parameters
  • fillColor
    • Type:GeoColor
    • Description:This parameter determines the PointStyle fill color.
  • size
    • Type:Single
    • Description:This parameter determines the PointStyle size.
  • outlineColor
    • Type:GeoColor
    • Description:This parameter determines the PointStyle outline color.
  • outlineWidth
    • Type:Single
    • Description:This parameter determines the PointStyle outline width.

CreateCompoundCircleStyle(GeoColor,Single,GeoColor,Single,GeoColor,Single)

  • N/A
Remarks
  • N/A
Return Value
  • Description:The created point style.
Parameters
  • fillColor1
    • Type:GeoColor
    • Description:This parameter determines the outer circle's PointStyle fill color.
  • size1
    • Type:Single
    • Description:This parameter determines the outer circle's PointStyle size.
  • outlineColor1
    • Type:GeoColor
    • Description:This parameter determines the outer circle's PointStyle outline color.
  • outlineWidth1
    • Type:Single
    • Description:This parameter determines the outer circle's PointStyle outline width.
  • fillColor2
    • Type:GeoColor
    • Description:This parameter determines the inner circle's PointStyle fill color.
  • size2
    • Type:Single
    • Description:This parameter determines the inner circle's PointStyle size.

CreateCompoundCircleStyle(GeoColor,Single,GeoColor,Single,GeoColor,Single,GeoColor,Single)

  • N/A
Remarks
  • N/A
Return Value
  • Description:The created point style.
Parameters
  • fillColor1
    • Type:GeoColor
    • Description:This parameter determines the outer circle's PointStyle fill color.
  • size1
    • Type:Single
    • Description:This parameter determines the outer circle's PointStyle size.
  • outlineColor1
    • Type:GeoColor
    • Description:This parameter determines the outer circle's PointStyle outline color.
  • outlineWidth1
    • Type:Single
    • Description:This parameter determines the outer circle's PointStyle outline width.
  • fillColor2
    • Type:GeoColor
    • Description:This parameter determines the inner circle's PointStyle fill color.
  • size2
    • Type:Single
    • Description:This parameter determines the inner circle's PointStyle size.
  • outlineColor2
    • Type:GeoColor
    • Description:This parameter determines the inner circle's PointStyle outline color.
  • outlineWidth2
    • Type:Single
    • Description:This parameter determines the inner circle's PointStyle outline width.

CreateCompoundPointStyle(PointSymbolType,GeoColor,GeoColor,Single,Single,PointSymbolType,GeoColor,GeoColor,Single,Single)

  • N/A
Remarks
  • N/A
Return Value
  • Description:The created point style.
Parameters
  • pointStyle1
    • Description:This parameter determines the outer circle's pointstyle symbol type.
  • fillColor1
    • Type:GeoColor
    • Description:This parameter determines the outer circle's PointStyle fill color.
  • outlineColor1
    • Type:GeoColor
    • Description:This parameter determines the outer circle's PointStyle outline color.
  • outlineWidth1
    • Type:Single
    • Description:This parameter determines the outer circle's PointStyle outline width.
  • size1
    • Type:Single
    • Description:This parameter determines the outer circle's PointStyle size.
  • pointStyle2
    • Description:This parameter determines the inner circle's pointstyle symbol type.
  • fillColor2
    • Type:GeoColor
    • Description:This parameter determines the inner circle's PointStyle fill color.
  • outlineColor2
    • Type:GeoColor
    • Description:This parameter determines the inner circle's PointStyle outline color.
  • outlineWidth2
    • Type:Single
    • Description:This parameter determines the inner circle's PointStyle outline width.
  • size2
    • Type:Single
    • Description:This parameter determines the inner circle PointStyle size.

Protected Methods

DrawCore(IEnumerable<Feature>,GeoCanvas,Collection<SimpleCandidate>,Collection<SimpleCandidate>)

  • N/A
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:Void
  • Description:None
Parameters
  • features
    • Type:IEnumerable<Feature>
    • Description:This parameter represents the features you want to draw on the view.
  • canvas
    • Type:GeoCanvas
    • Description:This parameter represents the view 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.

DrawSampleCore(GeoCanvas,DrawingRectangleF)

  • N/A
Remarks
  • This virtual method is called from the concrete public method Draw. In this method, we draw a sample style on the view you provided. This is typically used to display a legend or other sample area. When implementing this virtual method, consider the view size and draw the sample image appropriately. You should keep in mind that the sample typically shows up on a legend.
Return Value
  • Type:Void
  • Description:None
Parameters
  • canvas
    • Type:GeoCanvas
    • Description:This parameter represents the view you want to draw the features on.

GetTextSize(GeoCanvas)

  • N/A
Remarks
  • N/A
Return Value
Parameters

CloneDeepCore()

  • N/A
Remarks
  • N/A
Return Value
  • Type:Style
  • Description:N/A
Parameters

GetRequiredColumnNamesCore()

  • N/A
Remarks
  • N/A
Return Value
  • Type:Collection<String>
  • Description:N/A
Parameters

MemberwiseClone()

  • N/A
Remarks
  • N/A
Return Value
  • Type:Object
  • Description:N/A
Parameters

Finalize()

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters

Parse(JObject)

  • N/A
Remarks
  • N/A
Return Value
Parameters
  • jObject

Public Properties

PointType

  • N/A
Remarks
  • When using the PointStyle you choose between a bitmap, a font or a predefined symbol to represent the point. Each of these options has corresponding properties on the point symbol. If you set the type to character, then you need to set the properties that start with “Glyph,” such as “CharacterFont.” The same is true for the symbol.
Return Value

Image

  • N/A
Remarks
  • This property is where you can set the image for the points if the PointType is Image. It uses a NativeImage, so you can either reference a file or supply a stream.
Return Value

ImageScale

  • N/A
Remarks
  • This property allows you to scale the image up and down depending on how large or small you want it. It can be changed dynamically, so you could change it at every scale level to resize the bitmap based on the current scale. A scale of 1 would be the original size, while a scale of 2 would double the size. A scale of .5 would reduce the size of the image by half, and so on.
Return Value
  • Type:Double

GlyphFont

  • N/A
Remarks
  • This property allows you to set the font from which to select a character index if you choose the Glyph PointType.
Return Value

GlyphContent

  • N/A
Remarks
  • You need to specify the content of the character you want to use from the font you selected. For example, if you choose 1, then we will use the first character in the font you set in the CharacterFont property.
Return Value
  • Type:String

SymbolType

  • N/A
Remarks
  • You can choose between a number of predefined symbols. The symbols are simple geometric objects that are typically used for abstract representations on a map. If there is a specific symbol you need that is not part of our symbol collection, you can submit it to us and we will consider adding it.
Return Value

Mask

  • N/A
Remarks
  • N/A
Return Value

MaskMargin

  • N/A
Remarks
  • N/A
Return Value

MaskType

  • N/A
Remarks
  • N/A
Return Value

DrawingLevel

  • N/A
Remarks
  • N/A
Return Value

FillBrush

  • N/A
Remarks
  • N/A
Return Value

OutlinePen

  • N/A
Remarks
  • N/A
Return Value

SymbolSize

  • N/A
Remarks
  • N/A
Return Value
  • Type:Single

RotationAngle

  • N/A
Remarks
  • N/A
Return Value
  • Type:Single

XOffsetInPixel

  • N/A
Remarks
  • N/A
Return Value
  • Type:Single

YOffsetInPixel

  • N/A
Remarks
  • N/A
Return Value
  • Type:Single

CustomPointStyles

  • N/A
Remarks
  • N/A
Return Value

Name

  • N/A
Remarks
  • N/A
Return Value
  • Type:String

IsActive

  • N/A
Remarks
  • N/A
Return Value
  • Type:Boolean

RequiredColumnNames

  • N/A
Remarks
  • N/A
Return Value
  • Type:Collection<String>

Filters

  • N/A
Remarks
  • N/A
Return Value
  • Type:Collection<String>

Protected Properties

IsDefault

  • N/A
Remarks
  • N/A
Return Value
  • Type:Boolean

FiltersCore

  • N/A
Remarks
  • N/A
Return Value
  • Type:Collection<String>

Public Events

12.0/apis/thinkgeo.core.pointstyle.txt · Last modified: 2019/09/26 09:43 (external edit)