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

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

The <codeph>IIconParser</codeph> 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. <p>Implementations should return <codeph>true</codeph> if an icon file has been parsed successfully, and it contains at least one valid icon</p>

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

getIconForSize | () | method

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

Returns an icon whose width does not exceed <codeph>s</codeph>.

Parameters

| `s:int`

Returns

| `BitmapData`

parse | () | method |

`public function parse():void`

Attempt to parse an icon file

Dimanche Juin 19 2011, 03:12 PM +02:00