| Package | org.aswing.border |
| Class | public class DecorateBorder |
| Implements | Border |
| Subclasses | BevelBorder, CaveBorder, EmptyBorder, LineBorder, SideLineBorder, SimpleTitledBorder, TitledBorder |
Note:You should only need to override:
getDisplayImpupdateBorderImpgetBorderInsetsImp| Method | Defined by | ||
|---|---|---|---|
|
DecorateBorder(interior:Border)
| DecorateBorder | ||
|
Returns the insets of the border.
Note:subclass should not override this method, should override getBorderInsetsImp. | DecorateBorder | ||
|
You should override this method to count this border's insets.
| DecorateBorder | ||
|
getDisplay(c:Component):DisplayObject
You should override this method to return the display object.
| DecorateBorder | ||
|
getDisplayImp():DisplayObject
Override this method in sub-class to return the display object if needed.
| DecorateBorder | ||
|
Returns current interior border.
| DecorateBorder | ||
|
setInterior(interior:Border):void
Sets new interior border.
| DecorateBorder | ||
|
call
super.paintBorder paint the border first and then
paint the interior border on the interior bounds. | DecorateBorder | ||
|
Override this method in sub-class to draw border on the specified mc.
| DecorateBorder | ||
| DecorateBorder | () | constructor |
| getBorderInsets | () | method |
public final function getBorderInsets(c:Component, bounds:IntRectangle):Insets
Returns the insets of the border.
Note:subclass should not override this method, should override getBorderInsetsImp.
c:Component — the component for which this border insets value applies
|
|
bounds:IntRectangle — the bounds of the border would paint in.
|
Insets |
See also
| getBorderInsetsImp | () | method |
public function getBorderInsetsImp(c:Component, bounds:IntRectangle):InsetsYou should override this method to count this border's insets.
Parametersc:Component |
|
bounds:IntRectangle |
Insets |
See also
| getDisplay | () | method |
public final function getDisplay(c:Component):DisplayObjectYou should override this method to return the display object.
Parametersc:Component |
DisplayObject |
See also
| getDisplayImp | () | method |
public function getDisplayImp():DisplayObjectOverride this method in sub-class to return the display object if needed.
ReturnsDisplayObject — a display object, or null, do not need a display object.
|
| getInterior | () | method |
public function getInterior():BorderReturns current interior border.
ReturnsBorder —
current interior border
|
| setInterior | () | method |
public function setInterior(interior:Border):voidSets new interior border.
Parametersinterior:Border — the new interior border
|
| updateBorder | () | method |
public final function updateBorder(c:Component, g:Graphics2D, bounds:IntRectangle):void
call super.paintBorder paint the border first and then
paint the interior border on the interior bounds.
Note:subclass should not override this method, should override paintBorderImp.
c:Component |
|
g:Graphics2D |
|
bounds:IntRectangle |
See also
| updateBorderImp | () | method |
public function updateBorderImp(com:Component, g:Graphics2D, bounds:IntRectangle):voidOverride this method in sub-class to draw border on the specified mc.
Parameterscom:Component — the component for which this border is being painted
|
|
g:Graphics2D — the paint graphics
|
|
bounds:IntRectangle — the bounds of border
|