Packagecom.kapit.diagram.controls
Classpublic class SVGIcon
InheritanceSVGIcon Inheritance flash.display.Sprite
Implementsmx.core.IFlexDisplayObject, mx.styles.ISimpleStyleClient



Public Properties
 PropertyDefined by
  height : Number
[read-only] Height of the SVGIcon.
SVGIcon
  measuredHeight : Number
[read-only] Measured height of the SVGIcon.
SVGIcon
  measuredWidth : Number
[read-only] Measured width of the SVGIcon.
SVGIcon
  styleName : Object
An object representing the SVGIcon style name.
SVGIcon
  width : Number
[read-only] Width of the SVGIcon.
SVGIcon
Protected Properties
 PropertyDefined by
  _bigbitmap : Bitmap = null
SVGIcon
  _bitmap : Bitmap = null
SVGIcon
  _spriteid : String = "null"
SVGIcon
  _styleobject : Object = null
SVGIcon
Public Methods
 MethodDefined by
  
Creates e new SVGIcon instance.
SVGIcon
  
Called whenever an image has completed loading.
SVGIcon
  
move(x:Number, y:Number):void
Changes the position of the SVGIcon.
SVGIcon
  
setActualSize(newWidth:Number, newHeight:Number):void
Changes the actual size of the SVGIcon.
SVGIcon
  
styleChanged(styleProp:String):void
Updates the SVGIcon style when a style property has been changed.
SVGIcon
Protected Methods
 MethodDefined by
  
loadBitmaps():void
SVGIcon
Public Constants
 ConstantDefined by
  ICON_BIGSIZE : uint = 22
SVGIcon
  ICON_SIZE : uint = 18
SVGIcon
Property detail
_bigbitmapproperty
protected var _bigbitmap:Bitmap = null
_bitmapproperty 
protected var _bitmap:Bitmap = null
heightproperty 
height:Number  [read-only]

Height of the SVGIcon.

Implementation
    public function get height():Number
measuredHeightproperty 
measuredHeight:Number  [read-only]

Measured height of the SVGIcon.

Implementation
    public function get measuredHeight():Number
measuredWidthproperty 
measuredWidth:Number  [read-only]

Measured width of the SVGIcon.

Implementation
    public function get measuredWidth():Number
_spriteidproperty 
protected var _spriteid:String = "null"
styleNameproperty 
styleName:Object  [read-write]

An object representing the SVGIcon style name.

Implementation
    public function get styleName():Object
    public function set styleName(value:Object):void
_styleobjectproperty 
protected var _styleobject:Object = null
widthproperty 
width:Number  [read-only]

Width of the SVGIcon.

Implementation
    public function get width():Number
Constructor detail
SVGIcon()constructor
public function SVGIcon()

Creates e new SVGIcon instance.

Method detail
imageLoadedHandler()method
public function imageLoadedHandler(event:SVGAssetLibraryEvent):void

Called whenever an image has completed loading.

Parameters
event:SVGAssetLibraryEvent
loadBitmaps()method 
protected function loadBitmaps():void
move()method 
public function move(x:Number, y:Number):void

Changes the position of the SVGIcon.

Parameters
x:Number — The new x coordinate of the SVGIcon.
 
y:Number — The new y coordinate of the SVGIcon.
setActualSize()method 
public function setActualSize(newWidth:Number, newHeight:Number):void

Changes the actual size of the SVGIcon.

Parameters
newWidth:Number — The new width of the SVGIcon.
 
newHeight:Number — The new height of the SVGIcon.
styleChanged()method 
public function styleChanged(styleProp:String):void

Updates the SVGIcon style when a style property has been changed.

Parameters
styleProp:String — The style property that has been changed.
Constant detail
ICON_BIGSIZEconstant
public const ICON_BIGSIZE:uint = 22
ICON_SIZEconstant 
public const ICON_SIZE:uint = 18