User Tools

Site Tools


12.0:apis:thinkgeo.core.linestyle

ThinkGeo.Core.LineStyle

Inheritance Hierarchy

Members Summary

Public Constructors

LineStyle()

  • This is a constructor for the class.
Remarks
  • N/A
Parameters

LineStyle(GeoPen)

  • This is a constructor for the class.
Remarks
  • Use this when you do not need any additional pens to draw the feature.
Parameters
  • outerPen
    • Type:GeoPen
    • Description:This parameter is the outer pen used to draw the feature.

LineStyle(GeoPen,GeoPen)

  • This is a constructor for the class.
Remarks
  • This is a common constructor for drawing roads.
Parameters
  • outerPen
    • Type:GeoPen
    • Description:This parameter is the outer pen used to draw the feature.
  • innerPen
    • Type:GeoPen
    • Description:This parameter is the inner pen used to draw the feature.

LineStyle(GeoPen,GeoPen,GeoPen)

  • This is a constructor for the class.
Remarks
  • This is common for drawing low level highways with center lines.
Parameters
  • outerPen
    • Type:GeoPen
    • Description:This parameter is the outer pen used to draw the feature.
  • innerPen
    • Type:GeoPen
    • Description:This parameter is the inner pen used to draw the feature.
  • centerPen
    • Type:GeoPen
    • Description:This parameter is the center pen used to draw the feature.

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

CreateSimpleLineStyle(GeoColor,Single,Boolean)

  • N/A
Remarks
  • None
Return Value
  • Type:LineStyle
  • Description:This method returns a LineStyle based on the parameters passed in.
Parameters
  • centerlineColor
  • centerlineWidth
    • Type:Single
    • Description:N/A
  • roundCap
    • Type:Boolean
    • Description:N/A

CreateSimpleLineStyle(GeoColor,Single,LineDashStyle,Boolean)

  • N/A
Remarks
  • None
Return Value
  • Type:LineStyle
  • Description:This method returns a LineStyle based on the parameters passed in.
Parameters
  • centerlineColor
    • Type:GeoColor
    • Description:This parameter is the center line color.
  • centerlineWidth
    • Type:Single
    • Description:This paramter is the the center line width.
  • centerlineDashStyle
    • Description:This parameter is the dash style for the center line.
  • roundCap
    • Type:Boolean
    • Description:This parameter defines whether you want a rounded end cap.

CreateSimpleLineStyle(GeoColor,Single,GeoColor,Single,Boolean)

  • N/A
Remarks
  • None
Return Value
  • Type:LineStyle
  • Description:This method returns a LineStyle based on the parameters passed in.
Parameters
  • innerLineColor
    • Type:GeoColor
    • Description:This parameter is the inner line color.
  • innerLineWidth
    • Type:Single
    • Description:This parameter is the inner line width.
  • outerLineColor
    • Type:GeoColor
    • Description:This parameter is the outer line color.
  • outerLineWidth
    • Type:Single
    • Description:This parameter is the outer line width.
  • roundCap
    • Type:Boolean
    • Description:This parameter defines whether you want a rounded end cap.

CreateSimpleLineStyle(GeoColor,Single,LineDashStyle,GeoColor,Single,LineDashStyle,Boolean)

  • N/A
Remarks
  • None
Return Value
  • Type:LineStyle
  • Description:This method returns a LineStyle based on the parameters passed in.
Parameters
  • innerLineColor
    • Type:GeoColor
    • Description:This parameter is the inner line color.
  • innerLineWidth
    • Type:Single
    • Description:This parameter is the inner line width.
  • innerLineDashStyle
    • Description:This parameter is the inner line dash style.
  • outerLineColor
    • Type:GeoColor
    • Description:This parameter is the outer line color.
  • outerLineWidth
    • Type:Single
    • Description:This parameter is the outer line width.
  • outerLineDashStyle
    • Description:This parameter is the outer line dash style.
  • roundCap
    • Type:Boolean
    • Description:This parameter defines whether you want a rounded end cap.

CreateSimpleLineStyle(GeoColor,Single,GeoColor,Single,GeoColor,Single,Boolean)

  • N/A
Remarks
  • None
Return Value
  • Type:LineStyle
  • Description:This method returns a LineStyle based on the parameters passed in.
Parameters
  • centerlineColor
    • Type:GeoColor
    • Description:This parameter is the center line color.
  • centerlineWidth
    • Type:Single
    • Description:This parameter is the center line width.
  • innerLineColor
    • Type:GeoColor
    • Description:This parameter is the inner line color.
  • innerLineWidth
    • Type:Single
    • Description:This parameter is the inner line width.
  • outerLineColor
    • Type:GeoColor
    • Description:This parameter is the outer line color.
  • outerLineWidth
    • Type:Single
    • Description:This parameter is the outer line width.
  • roundCap
    • Type:Boolean
    • Description:This parameter defines whether you want a rounded end cap.

CreateSimpleLineStyle(GeoColor,Single,LineDashStyle,GeoColor,Single,LineDashStyle,GeoColor,Single,LineDashStyle,Boolean)

  • N/A
Remarks
  • None
Return Value
  • Type:LineStyle
  • Description:This method returns a LineStyle based on the parameters passed in.
Parameters
  • centerlineColor
    • Type:GeoColor
    • Description:This parameter is the center line color.
  • centerlineWidth
    • Type:Single
    • Description:This parameter is the center line width.
  • centerlineDashStyle
    • Description:This parameter is the center line dash style.
  • innerLineColor
    • Type:GeoColor
    • Description:This parameter is the inner line color.
  • innerLineWidth
    • Type:Single
    • Description:This parameter is the inner line width.
  • innerLineDashStyle
    • Description:This parameter is the inner line dash style.
  • outerLineColor
    • Type:GeoColor
    • Description:This parameter is the outer line color.
  • outerLineWidth
    • Type:Single
    • Description:This parameter is the outer line width.
  • outerLineDashStyle
    • Description:This parameter is the outer line dash style.
  • roundCap
    • Type:Boolean
    • Description:This parameter defines whether you want a rounded end cap.

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.

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

CreateLinePen(String[])

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

Public Properties

XOffsetInPixel

  • N/A
Remarks
  • This property allows you to specify an X offset. When combined with a Y offset, it is useful to allow you to achieve effects such as drop shadows, etc. There also may be times when you need to modify the location of feature data so as to better align it with raster satellite data.
Return Value
  • Type:Single

YOffsetInPixel

  • N/A
Remarks
  • This property allows you to specify an Y offset. When combined with an X offset, it is useful to allow you to achieve effects such as drop shadows, etc. There also may be times when you need to modify the location of feature data so as to better align it with raster satellite data.
Return Value
  • Type:Single

CustomLineStyles

  • N/A
Remarks
  • Using this collection, you can stack multiple styles on top of each other. When we draw the feature, we will draw them in order that they exist in the collection. You can use these stacks to create drop shadow effects, multiple colored outlines, etc.
Return Value

OuterPen

  • N/A
Remarks
  • You can set an inner, outer and center pen to give you a nice effect. The outer pen draws first, and should typically be black and larger then the inner pen. The inner pen draws next, and should be set as the color of the road you want. It should be thinner than the outer pen. The center pen draws last, and is used to represent a centerline in the road. We suggest that you only use the center pen for highways at low zoom level, as the dashed pen has some performance penalties.
Return Value

InnerPen

  • N/A
Remarks
  • You can set an inner, outer and center pen to give you a nice effect. The outer pen draws first, and should typically be black and larger then the inner pen. The inner pen draws next, and should be set as the color of the road you want. It should be thinner than the outer pen. The center pen draws last, and is used to represent a centerline in the road. We suggest that you only use the center pen for highways at low zoom level, as the dashed pen has some performance penalties.
Return Value

CenterPen

  • N/A
Remarks
  • You can set an inner, outer and center pen to give you a nice effect. The outer pen draws first, and should typically be black and larger then the inner pen. The inner pen draws next, and should be set as the color of the road you want. It should be thinner than the outer pen. The center pen draws last, and is used to represent a centerline in the road. We suggest that you only use the center pen for highways at low zoom level, as the dashed pen has some performance penalties.
Return Value

OuterPenDrawingLevel

  • N/A
Remarks
  • N/A
Return Value

InnerPenDrawingLevel

  • N/A
Remarks
  • N/A
Return Value

CenterPenDrawingLevel

  • N/A
Remarks
  • N/A
Return Value

DirectionSymbol

  • 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.linestyle.txt · Last modified: 2019/09/26 09:42 (external edit)