public interface Border
Borders can be opaque. If true, then the border has to care about painting all pixels in borders. If false, then the widget background is painted under borders too.
This can be used for non-rectagular shapes of borders e.g. returning true from isOpaque and drawing a filled rounded rectangle.
Modifier and Type | Method and Description |
---|---|
Insets |
getInsets()
Returns layout insets.
|
boolean |
isOpaque()
Returns whether the border is opaque.
|
void |
paint(Graphics2D gr,
Rectangle bounds)
Paints the border to the Graphics2D instance within specific bounds.
|
Insets getInsets()
void paint(Graphics2D gr, Rectangle bounds)
gr
- the Graphics2D instancebounds
- the boundaryboolean isOpaque()