User Tools

Site Tools


thinkgeo.mapsuite.core.scalebaradornmentlayer

This is an old revision of the document!


Table of Contents

ThinkGeo.MapSuite.Core.ScaleBarAdornmentLayer

The ScaleBarAdornmentLayer class allows you show a bar graphic on the map that displays the distance scale for the current map extent.

Inheritance Hierarchy

  • System.Object
    • ThinkGeo.MapSuite.Core.Layer
      • ThinkGeo.MapSuite.Core.AdornmentLayer
        • ThinkGeo.MapSuite.Core.ScaleBarAdornmentLayer

Members Summary

Public Constructors

ScaleBarAdornmentLayer

  • Parameters:N/A
  • DeclaringType:N/A
  • Summary:Creates a new instance of the ScaleBarAdornmentLayer class.

Protected Constructors

Public Methods

CloneDeep

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

Close

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

Draw

Equals

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

GetBoundingBox

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

GetDrawingLocation

GetHashCode

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

GetThreadSafetyLevel

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

GetType

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

Open

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

RequestDrawing

RequestDrawing

RequestDrawing

RequestDrawing

  • Parameters:TimeSpan
  • DeclaringType:Layer
  • Summary:N/A

RequestDrawing

RequestDrawing

RequestDrawing

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

RequestDrawing

RequestDrawing

ToString

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

Protected Methods

CloneDeepCore

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

CloseCore

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

DrawAttributionCore

DrawCore

DrawException

DrawExceptionCore

Finalize

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

GetBoundingBoxCore

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

GetThreadSafetyLevelCore

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

MemberwiseClone

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

OnDrawingAttribution

OnDrawingException

OnDrawingProgressChanged

OnDrawnAttribution

OnDrawnException

OnRequestedDrawing

OnRequestingDrawing

OpenCore

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

ixk=

Public Properties

AlternateBarBrush

  • Return:GeoBrush
  • Summary:The property is the GeoBrush that will be used to draw the alternate ScaleBar.

Attribution

  • Return:String
  • Summary:N/A

BackgroundMask

BarBrush

  • Return:GeoBrush
  • Summary:The property is the GeoBrush that will be used to draw the ScaleBar.

BarPen

BlueTranslation

  • Return:Single
  • Summary:N/A

DisplayUnitString

  • Return:Dictionary<String,String>
  • Summary:This propery is a dictionary that exposes what text will be drawn to represent the ScaleLine Unit.

DrawingExceptionMode

DrawingTime

  • Return:TimeSpan
  • Summary:N/A

GreenTranslation

  • Return:Single
  • Summary:N/A

HasBoundingBox

  • Return:Boolean
  • Summary:N/A

HasMask

  • Return:Boolean
  • Summary:Gets or sets whether the ScaleBar will have a mask or not. A boolean value representing whether or not a mask is shown.

Height

  • Return:Single
  • Summary:N/A

IsGrayscale

  • Return:Boolean
  • Summary:N/A

IsNegative

  • Return:Boolean
  • Summary:N/A

IsOpen

  • Return:Boolean
  • Summary:N/A

IsVisible

  • Return:Boolean
  • Summary:N/A

KeyColors

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

Location

MaskBrush

  • Return:GeoBrush
  • Summary:Gets or sets the color for the ScaleBarAdornmentLayer's mask, if the HasMask property is set to true.

MaskContour

  • Return:GeoPen
  • Summary:Gets or sets the pen for the outline of the ScaleBar mask.

MaxWidth

  • Return:Int32
  • Summary:Gets or Sets the MaxWidth of the ScaleBar.

Name

  • Return:String
  • Summary:N/A

ProjectionToDecimalDegrees

  • Return:Projection
  • Summary:Gets or sets a Proj4 projection parameter string which shows what coordinate system the map is using.

RedTranslation

  • Return:Single
  • Summary:N/A

RequestDrawingInterval

  • Return:TimeSpan
  • Summary:N/A

TextStyle

Thickness

  • Return:Int32
  • Summary:Gets or sets the thickness of the ScaleBar. It is an integer value representing the height of the ScaleBar in screen units.

Transparency

  • Return:Single
  • Summary:N/A

UnitFamily

  • Return:UnitSystem
  • Summary:Gets or sets the UnitSystem (Imperial/Metric) to be used for the ScaleBar.

Width

  • Return:Single
  • Summary:N/A

XOffsetInPixel

  • Return:Single
  • Summary:N/A

YOffsetInPixel

  • Return:Single
  • Summary:N/A

Protected Properties

IsOpenCore

  • Return:Boolean
  • Summary:N/A

iBk=

  • Return:Single
  • Summary:N/A

Public Events

Public Constructors

ScaleBarAdornmentLayer()

Creates a new instance of the ScaleBarAdornmentLayer class.

Remarks

When displaying a ScaleBarAdornmentLayer, we need to instance a ScaleLineAdornmentLayer and add it to MapEngine. The ScaleBar will not be drawn when the CurrentExtent is outside of the world Extent(-90,180-,90,-180).

Parameters

Protected Constructors

Public Methods

CloneDeep()

N/A

Remarks

N/A

Return Value

  • Return Type:Layer
  • Description:N/A

Parameters

Close()

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

Draw(GeoCanvas,Collection<SimpleCandidate>)

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

canvas

labelsInAllLayers

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

GetBoundingBox()

N/A

Remarks

N/A

Return Value

Parameters

GetDrawingLocation(GeoCanvas,Single,Single)

N/A

Remarks

N/A

Return Value

Parameters

canvas

adornmentWidth

  • Type:Single
  • Description:N/A

adornmentHeight

  • Type:Single
  • Description:N/A

Go Back

GetHashCode()

N/A

Remarks

N/A

Return Value

  • Return Type:Int32
  • Description:N/A

Parameters

GetThreadSafetyLevel()

N/A

Remarks

N/A

Return Value

Parameters

GetType()

N/A

Remarks

N/A

Return Value

  • Return Type:Type
  • Description:N/A

Parameters

Open()

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

RequestDrawing(RectangleShape,TimeSpan,RequestDrawingBufferTimeType)

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

extentToRefresh

bufferTime

  • Type:TimeSpan
  • Description:N/A

bufferTimeType

Go Back

RequestDrawing(RectangleShape,TimeSpan)

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

extentToRefresh

bufferTime

  • Type:TimeSpan
  • Description:N/A

Go Back

RequestDrawing(TimeSpan,RequestDrawingBufferTimeType)

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

bufferTime

  • Type:TimeSpan
  • Description:N/A

bufferTimeType

Go Back

RequestDrawing(TimeSpan)

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

bufferTime

  • Type:TimeSpan
  • Description:N/A

Go Back

RequestDrawing(IEnumerable<RectangleShape>)

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

extentsToRefresh

Go Back

RequestDrawing(RectangleShape)

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

extentToRefresh

Go Back

RequestDrawing()

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

RequestDrawing(IEnumerable<RectangleShape>,TimeSpan)

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

extentsToRefresh

bufferTime

  • Type:TimeSpan
  • Description:N/A

Go Back

RequestDrawing(IEnumerable<RectangleShape>,TimeSpan,RequestDrawingBufferTimeType)

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

extentsToRefresh

bufferTime

  • Type:TimeSpan
  • Description:N/A

bufferTimeType

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:Layer
  • Description:N/A

Parameters

CloseCore()

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

DrawAttributionCore(GeoCanvas,String)

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

canvas

attribution

  • Type:String
  • Description:N/A

Go Back

DrawCore(GeoCanvas,Collection<SimpleCandidate>)

This method draws the Layer.

Remarks

This abstract method is called from the concrete public method Draw. This method draws the representation of the layer based on the extent you provided. When implementing this abstract 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

canvas

  • Type:GeoCanvas
  • Description:This parameter is the canvas object or a GeoImage to draw on.

labelsInAllLayers

  • Type:Collection<SimpleCandidate>
  • Description:This parameter represents the labels used for collision detection and duplication checking.

Go Back

DrawException(GeoCanvas,Exception)

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

canvas

e

  • Type:Exception
  • Description:N/A

Go Back

DrawExceptionCore(GeoCanvas,Exception)

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

canvas

e

  • Type:Exception
  • Description:N/A

Go Back

Finalize()

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

GetBoundingBoxCore()

N/A

Remarks

N/A

Return Value

Parameters

GetThreadSafetyLevelCore()

N/A

Remarks

N/A

Return Value

Parameters

MemberwiseClone()

N/A

Remarks

N/A

Return Value

  • Return Type:Object
  • Description:N/A

Parameters

OnDrawingAttribution(DrawingAttributionLayerEventArgs)

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

args

Go Back

OnDrawingException(DrawingExceptionLayerEventArgs)

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

e

Go Back

OnDrawingProgressChanged(DrawingProgressChangedEventArgs)

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

e

Go Back

OnDrawnAttribution(DrawnAttributionLayerEventArgs)

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

args

Go Back

OnDrawnException(DrawnExceptionLayerEventArgs)

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

e

Go Back

OnRequestedDrawing(RequestedDrawingLayerEventArgs)

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

eventArgs

Go Back

OnRequestingDrawing(RequestingDrawingLayerEventArgs)

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

eventArgs

Go Back

OpenCore()

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

ixk=(GeoCanvas,GeographyUnit)

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

canvas

mapUnit

Go Back

Public Properties

AlternateBarBrush

The property is the GeoBrush that will be used to draw the alternate ScaleBar.

Remarks

This AlternateBarBrush property will give you full control over the appearance of the ScaleBarAdornmentLayer.

Return Value

Return Type:GeoBrush

Go Back

Attribution

N/A

Remarks

N/A

Return Value

Return Type:String

Go Back

BackgroundMask

N/A

Remarks

N/A

Return Value

Return Type:AreaStyle

Go Back

BarBrush

The property is the GeoBrush that will be used to draw the ScaleBar.

Remarks

This BarBrush property will give you full control over the appearance of the ScaleBarAdornmentLayer.

Return Value

Return Type:GeoBrush

Go Back

BarPen

N/A

Remarks

N/A

Return Value

Return Type:GeoPen

Go Back

BlueTranslation

N/A

Remarks

N/A

Return Value

Return Type:Single

Go Back

DisplayUnitString

This propery is a dictionary that exposes what text will be drawn to represent the ScaleLine Unit.

Remarks

We will display different letters for different units of measure; for example: “m” for meters, “ft” for feet, etc.

Return Value

Return Type:Dictionary<String,String>

Go Back

DrawingExceptionMode

N/A

Remarks

N/A

Return Value

DrawingTime

N/A

Remarks

N/A

Return Value

Return Type:TimeSpan

Go Back

GreenTranslation

N/A

Remarks

N/A

Return Value

Return Type:Single

Go Back

HasBoundingBox

N/A

Remarks

N/A

Return Value

Return Type:Boolean

Go Back

HasMask

Gets or sets whether the ScaleBar will have a mask or not. A boolean value representing whether or not a mask is shown.

Remarks

Depending upon the look of your map and your requirements, you may or may not want a mask on the ScaleBar. You can control whether or not the ScaleBar has a mask by setting this property. If you set the HasMask property to true, be sure to specify a mask color (or texture) by using the MaskBrush property.

Return Value

Return Type:Boolean

Go Back

Height

N/A

Remarks

N/A

Return Value

Return Type:Single

Go Back

IsGrayscale

N/A

Remarks

N/A

Return Value

Return Type:Boolean

Go Back

IsNegative

N/A

Remarks

N/A

Return Value

Return Type:Boolean

Go Back

IsOpen

N/A

Remarks

N/A

Return Value

Return Type:Boolean

Go Back

IsVisible

N/A

Remarks

N/A

Return Value

Return Type:Boolean

Go Back

KeyColors

N/A

Remarks

N/A

Return Value

Return Type:Collection<GeoColor>

Go Back

Location

N/A

Remarks

N/A

Return Value

MaskBrush

Gets or sets the color for the ScaleBarAdornmentLayer's mask, if the HasMask property is set to true.

Remarks

N/A

Return Value

Return Type:GeoBrush

Go Back

MaskContour

Gets or sets the pen for the outline of the ScaleBar mask.

Remarks

By using this property you can control the border of the mask, if the HasMask property is set to true. If you do not want a contour or border to show, you should set the pen to transparent.

Return Value

Return Type:GeoPen

Go Back

MaxWidth

Gets or Sets the MaxWidth of the ScaleBar.

Remarks

You can use this property to set the maximum width that you want the ScaleBar to occupy on the map. The ScaleBarAdornmentLayer will automatically adjust its size based upon the current extent of the map. By setting this property, you can control the maximum width the ScaleBar will occupy on the map.

Return Value

Return Type:Int32

Go Back

Name

N/A

Remarks

N/A

Return Value

Return Type:String

Go Back

ProjectionToDecimalDegrees

Gets or sets a Proj4 projection parameter string which shows what coordinate system the map is using.

Remarks

N/A

Return Value

Return Type:Projection

Go Back

RedTranslation

N/A

Remarks

N/A

Return Value

Return Type:Single

Go Back

RequestDrawingInterval

N/A

Remarks

N/A

Return Value

Return Type:TimeSpan

Go Back

TextStyle

N/A

Remarks

N/A

Return Value

Return Type:TextStyle

Go Back

Thickness

Gets or sets the thickness of the ScaleBar. It is an integer value representing the height of the ScaleBar in screen units.

Remarks

N/A

Return Value

Return Type:Int32

Go Back

Transparency

N/A

Remarks

N/A

Return Value

Return Type:Single

Go Back

UnitFamily

Gets or sets the UnitSystem (Imperial/Metric) to be used for the ScaleBar.

Remarks

By setting this property, you can control whether to use a metric or imperial measurement system for the ScaleBar.

Return Value

Return Type:UnitSystem

Go Back

Width

N/A

Remarks

N/A

Return Value

Return Type:Single

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

Protected Properties

IsOpenCore

N/A

Remarks

N/A

Return Value

Return Type:Boolean

Go Back

iBk=

N/A

Remarks

N/A

Return Value

Return Type:Single

Go Back

Public Events

DrawingAttribution

N/A

Remarks

DrawingException

N/A

Remarks

DrawingProgressChanged

N/A

Remarks

DrawnAttribution

N/A

Remarks

DrawnException

N/A

Remarks

RequestedDrawing

N/A

Remarks

RequestingDrawing

N/A

Remarks

thinkgeo.mapsuite.core.scalebaradornmentlayer.1442486350.txt.gz · Last modified: 2015/09/17 10:39 by admin