Class org.aswing.DecorateIcon

Implemented Interfaces

Icon

Description

DecorateIcon let you can make Decorator Patten Icon.

Note:You should only need to override:

methods in sub-class generally.

Method Index

new DecorateIcon()
getIconHeight(), getIconHeightImp(), getIconWidth(), getIconWidthImp(), paintIcon(), paintIconImp(), uninstallIcon(), uninstallIconImp()

Constructor Detail

DecorateIcon

public function DecorateIcon(bottomIcon:Icon)

DecorateIcon(icon:Icon)
DecorateIcon()

Method Detail

getIconWidthImp

public function getIconWidthImp():Number

You should override this method to count icon width in sub-class.

getIconHeightImp

public function getIconHeightImp():Number

You should override this method to count icon height in sub-class.

paintIconImp

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

Override this method in sub-class to draw icon on the iconMC at the specified location.

Parameters

comthe component where the icon is on.
gthe paint graphics
xthe icon's x coordinate
ythe icon's x coordinate

uninstallIconImp

public function uninstallIconImp(com:Component):Void

Override this method in sub-class to clear and remove the icon things you created for this component.

See Also

getIconWidth

public function getIconWidth():Number

Return the icon's width. You should not override this method, should override getIconWidthImp

Specified By

getIconWidth() in org.aswing.Icon

See Also

  • getIconWidthImp()

getIconHeight

public function getIconHeight():Number

Return the icon's height. You should not override this method, should override getIconHeightImp

Specified By

getIconHeight() in org.aswing.Icon

See Also

  • getIconHeightImp()

paintIcon

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

Draw the icon at the specified location.

Specified By

paintIcon() in org.aswing.Icon

uninstallIcon

public function uninstallIcon(com:Component):Void

Clear the things the icon painted.

Specified By

uninstallIcon() in org.aswing.Icon