| Package | org.aswing |
| Interface | public interface Border extends Decorator |
| Implementors | DecorateBorder, DefaultEmptyDecoraterResource |
You can either return a display object to be the border or just return null and paint the border
in updateBorder method use the component g(Graphics).
| Method | Defined by | ||
|---|---|---|---|
|
Returns the insets of the border.
| Border | ||
![]() |
getDisplay(c:Component):DisplayObject
Returns the display object which is used as the component decorator.
| Decorator | |
|
Updates the border.
| Border | ||
| getBorderInsets | () | method |
public function getBorderInsets(c:Component, b:IntRectangle):InsetsReturns the insets of the border.
Parametersc:Component — the component which owns the border.
|
|
b:IntRectangle — the bounds of the border should be.
|
Insets |
| updateBorder | () | method |
public function updateBorder(c:Component, g:Graphics2D, b:IntRectangle):voidUpdates the border.
Parametersc:Component — the component which owns the border.
|
|
g:Graphics2D — the graphics of the component, you can paint picture onto it.
|
|
b:IntRectangle — the bounds of the border should be.
|