Packageorg.juicekit.visual.controls
Classpublic class USMapControl
InheritanceUSMapControl Inheritance MovieClipControlBase Inheritance RendererBase Inheritance mx.core.UIComponent

The USMap class visualizes U.S. state-level data. Each states' graphical treatment is manipulated using a function that maps data values to color values.



Public Properties
 PropertyDefined by
 InheritedcolorEncodingFunction : Function
References a function that returns a uint color value that is applied to the graphical element.
MovieClipControlBase
 Inheriteddata : Object
Stores an Array or ArrayCollection of objects whose properties will be used to change the appearance of the the MovieClip's SimpleButton children.
MovieClipControlBase
 InheriteddataKeyField : String
Specifies the data Object property name that maps to SimpleButton instance names.
MovieClipControlBase
 InheritedlistData : BaseListData
Implement the IDropInListItemRenderer interface.
RendererBase
  stateAbbrField : String
Specifies the data Object property name containing a U.S.
USMapControl
Protected Properties
 PropertyDefined by
 Inherited_clip : MovieClip = null
Stores a reference to the wrapped MovieClip.
MovieClipControlBase
 InheriteddataPropertyChanged : Boolean = false
Indicated whether the data property was changed.
RendererBase
Public Methods
 MethodDefined by
  
Constructor.
USMapControl
 Inherited
encodeMap(table:Array):void
Encode map colors by applying the colorEncodingFunction to the array of data objects.
MovieClipControlBase
Protected Methods
 MethodDefined by
 Inherited
calcPaddedBounds(w:Number, h:Number):Rectangle
Return a Rectangle inset by any padding styles.
MovieClipControlBase
  
clipDisplayObjectContainer():DisplayObjectContainer
Return the MovieClip's DisplayObjectContainer containing the SimpleButtons to encode.
USMapControl
 Inherited
Reset the dataPropertyChanged and invalidate the display list.
RendererBase
 Inherited
createMovieClip():MovieClip
Return an instance of a specific MovieClip derived class.
MovieClipControlBase
 Inherited
getButtonData(simpleButton:SimpleButton):Object
Return the data object associated with the target DisplayObject.
MovieClipControlBase
 Inherited
signalDataMouseEvent(event:MouseEvent):void
Dispatch a mouse event and its related data.
MovieClipControlBase
Events
 EventSummaryDefined by
 Inherited Dispatched when the data property changes.RendererBase
 Inherited Dispatched when the user clicks a pointing device over a MovieClipControlBase instance's rectangle.MovieClipControlBase
 Inherited Dispatched when the user clicks a pointing device over a MovieClipControlBase instance's rectangle.MovieClipControlBase
 Inherited Dispatched when the user moves a pointing device away from MovieClipControlBase instance's rectangle.MovieClipControlBase
 Inherited Dispatched when the user moves a pointing device over a MovieClipControlBase instance's rectangle.MovieClipControlBase
Styles
 StyleDescriptionDefined by
 Inherited Type: uint   Format: Color   CSS Inheritance: no
Specifies the opaque background color of the control.
MovieClipControlBase
  
fontColor
Type: uint   Format: Color   CSS Inheritance: no
Sets the color of text. The default value is 0x000000.
USMapControl
  
fontFamily
Type: String   CSS Inheritance: yes
Name of the font to use. Unlike in a full CSS implementation, comma-separated lists are not supported. You can use any font family name. If you specify a generic font name, it is converted to an appropriate device font. The default value is "Verdana".
USMapControl
  
fontSize
Type: Number   Format: Length   CSS Inheritance: yes
Sets the height of the text, in pixels. The default value is 10.
USMapControl
  
fontStyle
Type: String   CSS Inheritance: yes
Determines whether the text is italic font. Recognized values are "normal" and "italic". The default value is "normal".
USMapControl
  
fontWeight
Type: String   CSS Inheritance: yes
Determines whether the text is boldface. Recognized values are "normal" and "bold". The default value is "normal".
USMapControl
 Inherited Type: Number   Format: Length   CSS Inheritance: no
Number of pixels between the component's bottom border and the bottom edge of its content area.
MovieClipControlBase
 Inherited Type: Number   Format: Length   CSS Inheritance: no
Number of pixels between the component's left border and the left edge of its content area.
MovieClipControlBase
 Inherited Type: Number   Format: Length   CSS Inheritance: no
Number of pixels between the component's right border and the right edge of its content area.
MovieClipControlBase
 Inherited Type: Number   Format: Length   CSS Inheritance: no
Number of pixels between the component's top border and the top edge of its content area.
MovieClipControlBase
  
textAlign
Type: String   CSS Inheritance: yes
Determines the horizontal alignment of text within the cell. Possible values are "left", "center", or "right". The default value is "left".
USMapControl
Property detail
stateAbbrFieldproperty
stateAbbrField:String  [read-write]

Specifies the data Object property name containing a U.S. state two-letter abbreviation.

The default value is "state".

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

Implementation
    public function get stateAbbrField():String
    public function set stateAbbrField(value:String):void
Constructor detail
USMapControl()constructor
public function USMapControl()

Constructor.

Method detail
clipDisplayObjectContainer()method
protected override function clipDisplayObjectContainer():DisplayObjectContainer

Return the MovieClip's DisplayObjectContainer containing the SimpleButtons to encode.

Returns
DisplayObjectContainer