User Tools

Site Tools


thinkgeo.mapsuite.core.linestyle

This is an old revision of the document!


ThinkGeo.MapSuite.Core.LineStyle

This class is the style used to draw lines.

Inheritance Hierarchy

  • System.Object
    • ThinkGeo.MapSuite.Core.Style
      • ThinkGeo.MapSuite.Core.LineStyle

Members Summary

Public Constructors

LineStyle

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

LineStyle

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

LineStyle

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

LineStyle

  • Parameters:GeoPen,GeoPen,GeoPen
  • DeclaringType:N/A
  • Summary:This is a 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

CloneDeepCore

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

DrawCore

DrawSampleCore

Finalize

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

GetRequiredColumnNamesCore

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

MemberwiseClone

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

Public Properties

CenterPen

  • Return:GeoPen
  • Summary:This property gets and sets the center pen for the line.

CenterPenDrawingLevel

CustomLineStyles

  • Return:Collection<LineStyle>
  • Summary:This property returns a collection of line styles, allowing you to stack multiple line styles on top of each other.

Filters

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

InnerPen

  • Return:GeoPen
  • Summary:This property gets and sets the inner pen for the line.

InnerPenDrawingLevel

IsActive

  • Return:Boolean
  • Summary:N/A

Name

  • Return:String
  • Summary:N/A

OuterPen

  • Return:GeoPen
  • Summary:This property gets and sets the outer pen for the line.

OuterPenDrawingLevel

RequiredColumnNames

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

XOffsetInPixel

  • Return:Single
  • Summary:This property gets and sets the X pixel offset for drawing each feature.

YOffsetInPixel

  • Return:Single
  • Summary:This property gets and sets the Y pixel offset for drawing each feature.

Protected Properties

FiltersCore

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

uBs=

  • Return:Boolean
  • Summary:N/A

Public Events

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. Go Back === 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. Go Back === 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.

Go Back

Protected Constructors

Public Methods

CloneDeep()

N/A

Remarks

N/A

Return Value

  • Return Type:Style
  • Description:N/A

Parameters

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

labelsInThisLayer

labelsInAllLayers

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

labelsInThisLayer

labelsInAllLayers

Go Back

DrawSample(GeoCanvas,DrawingRectangleF)

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

canvas

drawingExtent

Go Back

DrawSample(GeoCanvas)

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

canvas

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

GetRequiredColumnNames()

N/A

Remarks

N/A

Return Value

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

Parameters

GetType()

N/A

Remarks

N/A

Return Value

  • Return Type:Type
  • Description:N/A

Parameters

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

Protected Methods

CloneDeepCore()

N/A

Remarks

N/A

Return Value

  • Return Type:Style
  • Description:N/A

Parameters

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)

This method draws a sample feature on the canvas you provided.

Remarks

This virtual method is called from the concrete public method Draw. In this method, we draw a sample style on the canvas you provided. This is typically used to display a legend or other sample area. When implementing this virtual method, consider the canvas size and draw the sample image appropriately. You should keep in mind that the sample typically shows up on a legend.

Return Value

  • Return Type:Void
  • Description:None

Parameters

canvas

  • Type:GeoCanvas
  • Description:This parameter represents the canvas you want to draw the features on.

drawingExtent

Go Back

Finalize()

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

GetRequiredColumnNamesCore()

N/A

Remarks

N/A

Return Value

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

Parameters

MemberwiseClone()

N/A

Remarks

N/A

Return Value

  • Return Type:Object
  • Description:N/A

Parameters

Public Properties

CenterPen

This property gets and sets the center pen for the line.

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

Return Type:GeoPen

Go Back

CenterPenDrawingLevel

N/A

Remarks

N/A

Return Value

Return Type:DrawingLevel

Go Back

CustomLineStyles

This property returns a collection of line styles, allowing you to stack multiple line styles on top of each other.

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

Return Type:Collection<LineStyle>

Go Back

Filters

N/A

Remarks

N/A

Return Value

Return Type:Collection<String>

Go Back

InnerPen

This property gets and sets the inner pen for the line.

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

Return Type:GeoPen

Go Back

InnerPenDrawingLevel

N/A

Remarks

N/A

Return Value

Return Type:DrawingLevel

Go Back

IsActive

N/A

Remarks

N/A

Return Value

Return Type:Boolean

Go Back

Name

N/A

Remarks

N/A

Return Value

Return Type:String

Go Back

OuterPen

This property gets and sets the outer pen for the line.

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

Return Type:GeoPen

Go Back

OuterPenDrawingLevel

N/A

Remarks

N/A

Return Value

Return Type:DrawingLevel

Go Back

RequiredColumnNames

N/A

Remarks

N/A

Return Value

Return Type:Collection<String>

Go Back

XOffsetInPixel

This property gets and sets the X pixel offset for drawing each feature.

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

Return Type:Single

Go Back

YOffsetInPixel

This property gets and sets the Y pixel offset for drawing each feature.

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

Return Type:Single

Go Back

Protected Properties

FiltersCore

N/A

Remarks

N/A

Return Value

Return Type:Collection<String>

Go Back

uBs=

N/A

Remarks

N/A

Return Value

Return Type:Boolean

Go Back

Public Events

thinkgeo.mapsuite.core.linestyle.1442486057.txt.gz · Last modified: 2015/09/17 10:34 by admin