Interface org.aswing.Icon

Description

A small fixed size picture, typically used to decorate components.

See Also

Method Index

getIconHeight(), getIconWidth(), paintIcon(), uninstallIcon()

Method Detail

getIconWidth

public function getIconWidth():Number

Return the icon's width.

getIconHeight

public function getIconHeight():Number

Return the icon's height.

paintIcon

public function paintIcon(com:Component, g:Graphics, x:Number, y:Number):Void

Draw the icon at the specified component's specified location with the graphics. If this if the first time to paint on the specified component, there may need some install operation, for example create MC on the specified mc if needed.

Parameters

comcomponent for which this border is being painted
gthe paint graphics
xthe x corrdinate of the icon(top left of bounds)
ythe y corrdinate of the icon(top left of bounds)

See Also

uninstallIcon

public function uninstallIcon(com:Component):Void

Remove things in the icon object related to the component. For example remove the MCs created at the first paint time.

There is not installIcon method, so you must install icon related things at the first time of paintIcon, for example attach a MC if needed.

See Also