Icon
DecorateIcon let you can make Decorator Patten Icon.
Note:You should only need to override:
getIconWidthImp
getIconHeightImp
paintIconImp
uninstallIconImp
public function getIconWidthImp():Number
You should override this method to count icon width in sub-class.
public function getIconHeightImp():Number
You should override this method to count icon height in sub-class.
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.
com | the component where the icon is on. |
g | the paint graphics |
x | the icon's x coordinate |
y | the icon's x coordinate |
public function uninstallIconImp(com:Component):Void
Override this method in sub-class to clear and remove the icon things you created for this component.
public function getIconWidth():Number
Return the icon's width.
You should not override this method, should override getIconWidthImp
getIconWidth() in org.aswing.Icon
public function getIconHeight():Number
Return the icon's height.
You should not override this method, should override getIconHeightImp
getIconHeight() in org.aswing.Icon