flexlib :: library Documentation | All Packages | All Classes | Index | Frames No Frames |
IIconParser

Package | flexlib.controls.iconLoaderClasses
Interface | public interface IIconParser
Implementors | IcnsParser, IcoParser

The `IIconParser` interface defines the methods and properties that an icon parser must implement

Public Properties

| Property | Defined By
--- | --- | ---
|  | data : ByteArray The raw data from the icon file. | IIconParser
|  | sizes : Array [read-only] The list of icon sizes in decreasing order. | IIconParser
|  | validIcon : Boolean [read-only] Indicates that this parser contains valid icon data. | IIconParser

Public Methods

| Method | Defined By
--- | --- | ---
|  | getIconForSize(s:int):BitmapData Returns an icon whose width does not exceed s. | IIconParser
|  | parse():void Attempt to parse an icon file | IIconParser

Property Detail

data | property

`data:ByteArray`

The raw data from the icon file.

Implementation
`public function get data():ByteArray`
`public function set data(value:ByteArray):void`

sizes | property |

`sizes:Array` [read-only]

The list of icon sizes in decreasing order.

Implementation
`public function get sizes():Array`

validIcon | property |

`validIcon:Boolean` [read-only]

Indicates that this parser contains valid icon data.

Implementations should return `true` if an icon file has been parsed successfully, and it contains at least one valid icon

Implementation
`public function get validIcon():Boolean`
Method Detail

getIconForSize | () | method

`public function getIconForSize(s:int):BitmapData`

Returns an icon whose width does not exceed `s`.

Parameters

| `s:int`

Returns

| `BitmapData`

parse | () | method |

`public function parse():void`

Attempt to parse an icon file

Mercredi Juillet 4 2012, 09:36 PM +02:00