|
org.netbeans.api.visual 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Border
The class is responsible for defining and rendering borders. Border size is defined by insets.
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.
Method Summary | |
---|---|
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. |
Method Detail |
---|
Insets getInsets()
void paint(Graphics2D gr, Rectangle bounds)
gr
- the Graphics2D instancebounds
- the boundaryboolean isOpaque()
|
org.netbeans.api.visual 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |