Packagecom.esri.ags.skins
Classpublic class ScaleBarMetricSkin
InheritanceScaleBarMetricSkin Inheritance spark.components.supportClasses.Skin
Implements mx.binding.IBindingClient

The skin class for the ScaleBar component to only render metric units. Kilometers or meters are displayed depending on the scale.

Default MXML PropertymxmlContent



Public Properties
 PropertyDefined By
  hostComponent : ScaleBar
A strongly typed property that references the component to which this skin is applied.
ScaleBarMetricSkin
  label : Label
Label to display metric text.
ScaleBarMetricSkin
Public Methods
 MethodDefined By
  
Constructor.
ScaleBarMetricSkin
Protected Methods
 MethodDefined By
  
measure():void
[override] Here we override the measure method and adjust the position of parts _before_ we call the super.measure that will define the width and height based on the newly position.
ScaleBarMetricSkin
Property Detail
hostComponentproperty
public var hostComponent:ScaleBar

A strongly typed property that references the component to which this skin is applied.

This property can be used as the source for data binding.

labelproperty 
public var label:Label

Label to display metric text.

This property can be used as the source for data binding.

Constructor Detail
ScaleBarMetricSkin()Constructor
public function ScaleBarMetricSkin()

Constructor.

Method Detail
measure()method
override protected function measure():void

Here we override the measure method and adjust the position of parts _before_ we call the super.measure that will define the width and height based on the newly position.