This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 98307
Collapse All | Expand All

(-)graph/lib/src/org/netbeans/api/visual/widget/Widget.java (-1 / +8 lines)
Lines 1080-1086 Link Here
1080
            if (opaque)
1080
            if (opaque)
1081
                paintBackground ();
1081
                paintBackground ();
1082
1082
1083
            border.paint (gr, new Rectangle (bounds));
1083
            paintBorder ();
1084
1084
1085
            if (checkClipping) {
1085
            if (checkClipping) {
1086
                Insets insets = border.getInsets ();
1086
                Insets insets = border.getInsets ();
Lines 1109-1114 Link Here
1109
            gr.fillRect (bounds.x, bounds.y, bounds.width, bounds.height);
1109
            gr.fillRect (bounds.x, bounds.y, bounds.width, bounds.height);
1110
        else
1110
        else
1111
            gr.fillRect (bounds.x + insets.left, bounds.y + insets.top, bounds.width - insets.left - insets.right, bounds.height - insets.top - insets.bottom);
1111
            gr.fillRect (bounds.x + insets.left, bounds.y + insets.top, bounds.width - insets.left - insets.right, bounds.height - insets.top - insets.bottom);
1112
    }
1113
1114
    /**
1115
     * Called to paint the widget border itself only using the Graphics2D instance acquired from Scene.getGraphics method.
1116
     */
1117
    protected void paintBorder () {
1118
        border.paint (getGraphics (), new Rectangle (bounds));
1112
    }
1119
    }
1113
1120
1114
    /**
1121
    /**
(-)graph/lib/src/org/netbeans/api/visual/widget/doc-files/documentation.html (+3 lines)
Lines 387-392 Link Here
387
<td>protected paintBackground
387
<td>protected paintBackground
388
<td>Paints the widget background only. Do not invoke painting of children in this method. See <a href="#CustomWidget">Custom Widget</a> section.
388
<td>Paints the widget background only. Do not invoke painting of children in this method. See <a href="#CustomWidget">Custom Widget</a> section.
389
<tr>
389
<tr>
390
<td>protected paintBorder
391
<td>Paints the widget border only. Do not invoke painting of children in this method. See <a href="#CustomWidget">Custom Widget</a> section.
392
<tr>
390
<td>protected paintWidget
393
<td>protected paintWidget
391
<td>Paints the widget only. Do not invoke painting of children in this method. See <a href="#CustomWidget">Custom Widget</a> section.
394
<td>Paints the widget only. Do not invoke painting of children in this method. See <a href="#CustomWidget">Custom Widget</a> section.
392
<tr>
395
<tr>

Return to bug 98307