Interface describing an object capable of rendering a border around the edges of a component.
Note that one Border most just can paint to one Component. Because the paintBorder method most should clear the last paintings.
public function paintBorder(c:Component, g:Graphics, bounds:Rectangle):Void
Paints the border on component in a bounds with the graphics. If this if the first time to paint on the specified component, there may need some install operation, for example create MCs on the specified mc if needed.
c | the component for which this border is being painted |
g | the paint graphics |
bounds | the bounds of border |
public function uninstallBorder(c:Component):Void
Removes things in the border object related to the component. For example remove the MCs created at the first paint time if needed.
There is not installIcon method, so you must install icon related things
at the first time of paintIcon
, for example for example attach a MC if needed.
c | the component where the border whould uninstall from |