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

The default skin class for the ScaleBar component - shows both metric and US units.

Default MXML PropertymxmlContent



Public Properties
 PropertyDefined By
  hostComponent : ScaleBar
A strongly typed property that references the component to which this skin is applied.
ScaleBarSkin
  labelMetric : Label
Label to display metric text.
ScaleBarSkin
  labelUS : Label
Label to display US text.
ScaleBarSkin
Public Methods
 MethodDefined By
  
Constructor.
ScaleBarSkin
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.
ScaleBarSkin
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.

labelMetricproperty 
public var labelMetric:Label

Label to display metric text.

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

labelUSproperty 
public var labelUS:Label

Label to display US text.

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

Constructor Detail
ScaleBarSkin()Constructor
public function ScaleBarSkin()

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.