jdk/src/java.desktop/share/classes/javax/swing/plaf/nimbus/SynthPainterImpl.java
author serb
Fri, 21 Jul 2017 16:27:35 -0700
changeset 47160 ac5434728c3b
parent 25859 3317bb8137f4
permissions -rw-r--r--
8134256: copy/paste duplicated tests in some condition statements Reviewed-by: azvegint
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2658
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
     1
/*
25565
ce603b34c98d 8043548: Fix raw and unchecked lint warnings in javax.swing.plaf.*
darcy
parents: 5506
diff changeset
     2
 * Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved.
2658
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
     4
 *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2658
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
2658
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2658
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
2658
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    10
 *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    15
 * accompanied this code).
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    16
 *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    20
 *
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2658
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2658
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2658
diff changeset
    23
 * questions.
2658
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    24
 */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    25
package javax.swing.plaf.nimbus;
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    26
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    27
import java.awt.*;
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    28
import java.awt.geom.AffineTransform;
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    29
import java.awt.geom.NoninvertibleTransformException;
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    30
import java.awt.image.BufferedImage;
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    31
import java.util.*;
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    32
import javax.swing.*;
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    33
import javax.swing.plaf.synth.SynthContext;
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    34
import javax.swing.plaf.synth.SynthPainter;
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    35
import javax.swing.plaf.synth.SynthConstants;
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    36
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    37
import javax.swing.Painter;
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    38
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    39
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    40
class SynthPainterImpl extends SynthPainter {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    41
    private NimbusStyle style;
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    42
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    43
    SynthPainterImpl(NimbusStyle style) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    44
        this.style = style;
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    45
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    46
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    47
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    48
     * Paint the provided painter using the provided transform at the specified
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    49
     * position and size. Handles if g is a non 2D Graphics by painting via a
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    50
     * BufferedImage.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    51
     */
25565
ce603b34c98d 8043548: Fix raw and unchecked lint warnings in javax.swing.plaf.*
darcy
parents: 5506
diff changeset
    52
    private void paint(Painter<Object> p, SynthContext ctx, Graphics g, int x, int y,
2658
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    53
                       int w, int h, AffineTransform transform) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    54
        if (p != null) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    55
            if (g instanceof Graphics2D){
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    56
                Graphics2D gfx = (Graphics2D)g;
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    57
                if (transform!=null){
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    58
                    gfx.transform(transform);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    59
                }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    60
                gfx.translate(x, y);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    61
                p.paint(gfx, ctx.getComponent(), w, h);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    62
                gfx.translate(-x, -y);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    63
                if (transform!=null){
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    64
                    try {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    65
                        gfx.transform(transform.createInverse());
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    66
                    } catch (NoninvertibleTransformException e) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    67
                        // this should never happen as we are in control of all
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    68
                        // calls into this method and only ever pass in simple
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    69
                        // transforms of rotate, flip and translates
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    70
                        e.printStackTrace();
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    71
                    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    72
                }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    73
            } else {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    74
                // use image if we are printing to a Java 1.1 PrintGraphics as
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    75
                // it is not a instance of Graphics2D
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    76
                BufferedImage img = new BufferedImage(w,h,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    77
                        BufferedImage.TYPE_INT_ARGB);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    78
                Graphics2D gfx = img.createGraphics();
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    79
                if (transform!=null){
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    80
                    gfx.transform(transform);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    81
                }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    82
                p.paint(gfx, ctx.getComponent(), w, h);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    83
                gfx.dispose();
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    84
                g.drawImage(img,x,y,null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    85
                img = null;
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    86
            }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    87
        }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    88
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    89
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    90
    private void paintBackground(SynthContext ctx, Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    91
                                 int w, int h, AffineTransform transform) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    92
        // if the background color of the component is 100% transparent
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    93
        // then we should not paint any background graphics. This is a solution
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    94
        // for there being no way of turning off Nimbus background painting as
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    95
        // basic components are all non-opaque by default.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    96
        Component c = ctx.getComponent();
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    97
        Color bg = (c != null) ? c.getBackground() : null;
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
    98
        if (bg == null || bg.getAlpha() > 0){
25565
ce603b34c98d 8043548: Fix raw and unchecked lint warnings in javax.swing.plaf.*
darcy
parents: 5506
diff changeset
    99
ce603b34c98d 8043548: Fix raw and unchecked lint warnings in javax.swing.plaf.*
darcy
parents: 5506
diff changeset
   100
            Painter<Object> backgroundPainter = style.getBackgroundPainter(ctx);
2658
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   101
            if (backgroundPainter != null) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   102
                paint(backgroundPainter, ctx, g, x, y, w, h,transform);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   103
            }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   104
        }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   105
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   106
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   107
    private void paintForeground(SynthContext ctx, Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   108
                                 int w, int h, AffineTransform transform) {
25565
ce603b34c98d 8043548: Fix raw and unchecked lint warnings in javax.swing.plaf.*
darcy
parents: 5506
diff changeset
   109
        Painter<Object> foregroundPainter = style.getForegroundPainter(ctx);
2658
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   110
        if (foregroundPainter != null) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   111
            paint(foregroundPainter, ctx, g, x, y, w, h,transform);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   112
        }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   113
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   114
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   115
    private void paintBorder(SynthContext ctx, Graphics g, int x, int y, int w,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   116
                             int h, AffineTransform transform) {
25565
ce603b34c98d 8043548: Fix raw and unchecked lint warnings in javax.swing.plaf.*
darcy
parents: 5506
diff changeset
   117
        Painter<Object> borderPainter = style.getBorderPainter(ctx);
2658
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   118
        if (borderPainter != null) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   119
            paint(borderPainter, ctx, g, x, y, w, h,transform);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   120
        }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   121
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   122
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   123
    private void paintBackground(SynthContext ctx, Graphics g, int x, int y, int w, int h, int orientation) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   124
        Component c = ctx.getComponent();
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   125
        boolean ltr = c.getComponentOrientation().isLeftToRight();
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   126
        // Don't RTL flip JSpliders as they handle it internaly
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   127
        if (ctx.getComponent() instanceof JSlider) ltr = true;
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   128
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   129
        if (orientation == SwingConstants.VERTICAL && ltr) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   130
            AffineTransform transform = new AffineTransform();
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   131
            transform.scale(-1, 1);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   132
            transform.rotate(Math.toRadians(90));
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   133
            paintBackground(ctx, g, y, x, h, w, transform);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   134
        } else if (orientation == SwingConstants.VERTICAL) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   135
            AffineTransform transform = new AffineTransform();
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   136
            transform.rotate(Math.toRadians(90));
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   137
            transform.translate(0,-(x+w));
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   138
            paintBackground(ctx, g, y, x, h, w, transform);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   139
        } else if (orientation == SwingConstants.HORIZONTAL && ltr) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   140
            paintBackground(ctx, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   141
        } else {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   142
            //horizontal and right-to-left orientation
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   143
            AffineTransform transform = new AffineTransform();
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   144
            transform.translate(x,y);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   145
            transform.scale(-1, 1);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   146
            transform.translate(-w,0);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   147
            paintBackground(ctx, g, 0, 0, w, h, transform);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   148
        }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   149
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   150
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   151
    private void paintBorder(SynthContext ctx, Graphics g, int x, int y, int w, int h, int orientation) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   152
        Component c = ctx.getComponent();
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   153
        boolean ltr = c.getComponentOrientation().isLeftToRight();
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   154
        if (orientation == SwingConstants.VERTICAL && ltr) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   155
            AffineTransform transform = new AffineTransform();
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   156
            transform.scale(-1, 1);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   157
            transform.rotate(Math.toRadians(90));
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   158
            paintBorder(ctx, g, y, x, h, w, transform);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   159
        } else if (orientation == SwingConstants.VERTICAL) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   160
            AffineTransform transform = new AffineTransform();
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   161
            transform.rotate(Math.toRadians(90));
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   162
            transform.translate(0, -(x + w));
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   163
            paintBorder(ctx, g, y, 0, h, w, transform);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   164
        } else if (orientation == SwingConstants.HORIZONTAL && ltr) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   165
            paintBorder(ctx, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   166
        } else {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   167
            //horizontal and right-to-left orientation
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   168
            paintBorder(ctx, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   169
        }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   170
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   171
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   172
    private void paintForeground(SynthContext ctx, Graphics g, int x, int y, int w, int h, int orientation) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   173
        Component c = ctx.getComponent();
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   174
        boolean ltr = c.getComponentOrientation().isLeftToRight();
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   175
        if (orientation == SwingConstants.VERTICAL && ltr) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   176
            AffineTransform transform = new AffineTransform();
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   177
            transform.scale(-1, 1);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   178
            transform.rotate(Math.toRadians(90));
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   179
            paintForeground(ctx, g, y, x, h, w, transform);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   180
        } else if (orientation == SwingConstants.VERTICAL) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   181
            AffineTransform transform = new AffineTransform();
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   182
            transform.rotate(Math.toRadians(90));
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   183
            transform.translate(0, -(x + w));
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   184
            paintForeground(ctx, g, y, 0, h, w, transform);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   185
        } else if (orientation == SwingConstants.HORIZONTAL && ltr) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   186
            paintForeground(ctx, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   187
        } else {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   188
            //horizontal and right-to-left orientation
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   189
            paintForeground(ctx, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   190
        }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   191
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   192
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   193
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   194
     * Paints the background of an arrow button. Arrow buttons are created by
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   195
     * some components, such as <code>JScrollBar</code>.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   196
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   197
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   198
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   199
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   200
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   201
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   202
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   203
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   204
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   205
    public void paintArrowButtonBackground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   206
                                           Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   207
                                           int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   208
        if (context.getComponent().getComponentOrientation().isLeftToRight()){
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   209
            paintBackground(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   210
        } else {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   211
            AffineTransform transform = new AffineTransform();
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   212
            transform.translate(x,y);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   213
            transform.scale(-1, 1);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   214
            transform.translate(-w,0);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   215
            paintBackground(context, g, 0, 0, w, h, transform);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   216
        }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   217
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   218
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   219
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   220
     * Paints the border of an arrow button. Arrow buttons are created by
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   221
     * some components, such as <code>JScrollBar</code>.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   222
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   223
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   224
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   225
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   226
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   227
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   228
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   229
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   230
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   231
    public void paintArrowButtonBorder(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   232
                                       Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   233
                                       int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   234
        paintBorder(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   235
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   236
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   237
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   238
     * Paints the foreground of an arrow button. This method is responsible
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   239
     * for drawing a graphical representation of a direction, typically
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   240
     * an arrow. Arrow buttons are created by
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   241
     * some components, such as <code>JScrollBar</code>
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   242
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   243
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   244
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   245
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   246
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   247
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   248
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   249
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   250
     * @param direction One of SwingConstants.NORTH, SwingConstants.SOUTH
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   251
     *                  SwingConstants.EAST or SwingConstants.WEST
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   252
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   253
    public void paintArrowButtonForeground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   254
                                           Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   255
                                           int w, int h,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   256
                                           int direction) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   257
        //assume that the painter is arranged with the arrow pointing... LEFT?
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   258
        String compName = context.getComponent().getName();
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   259
        boolean ltr = context.getComponent().
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   260
                getComponentOrientation().isLeftToRight();
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   261
        // The hard coding for spinners here needs to be replaced by a more
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   262
        // general method for disabling rotation
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   263
        if ("Spinner.nextButton".equals(compName) ||
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   264
                "Spinner.previousButton".equals(compName)) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   265
            if (ltr){
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   266
                paintForeground(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   267
            } else {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   268
                AffineTransform transform = new AffineTransform();
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   269
                transform.translate(w, 0);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   270
                transform.scale(-1, 1);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   271
                paintForeground(context, g, x, y, w, h, transform);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   272
            }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   273
        } else if (direction == SwingConstants.WEST) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   274
            paintForeground(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   275
        } else if (direction == SwingConstants.NORTH) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   276
            if (ltr){
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   277
                AffineTransform transform = new AffineTransform();
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   278
                transform.scale(-1, 1);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   279
                transform.rotate(Math.toRadians(90));
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   280
                paintForeground(context, g, y, 0, h, w, transform);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   281
            } else {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   282
                AffineTransform transform = new AffineTransform();
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   283
                transform.rotate(Math.toRadians(90));
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   284
                transform.translate(0, -(x + w));
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   285
                paintForeground(context, g, y, 0, h, w, transform);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   286
            }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   287
        } else if (direction == SwingConstants.EAST) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   288
            AffineTransform transform = new AffineTransform();
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   289
            transform.translate(w, 0);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   290
            transform.scale(-1, 1);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   291
            paintForeground(context, g, x, y, w, h, transform);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   292
        } else if (direction == SwingConstants.SOUTH) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   293
            if (ltr){
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   294
                AffineTransform transform = new AffineTransform();
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   295
                transform.rotate(Math.toRadians(-90));
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   296
                transform.translate(-h, 0);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   297
                paintForeground(context, g, y, x, h, w, transform);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   298
            } else {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   299
                AffineTransform transform = new AffineTransform();
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   300
                transform.scale(-1, 1);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   301
                transform.rotate(Math.toRadians(-90));
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   302
                transform.translate(-(h+y), -(w+x));
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   303
                paintForeground(context, g, y, x, h, w, transform);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   304
            }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   305
        }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   306
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   307
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   308
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   309
     * Paints the background of a button.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   310
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   311
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   312
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   313
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   314
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   315
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   316
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   317
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   318
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   319
    public void paintButtonBackground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   320
                                      Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   321
                                      int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   322
        paintBackground(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   323
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   324
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   325
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   326
     * Paints the border of a button.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   327
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   328
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   329
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   330
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   331
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   332
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   333
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   334
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   335
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   336
    public void paintButtonBorder(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   337
                                  Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   338
                                  int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   339
        paintBorder(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   340
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   341
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   342
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   343
     * Paints the background of a check box menu item.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   344
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   345
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   346
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   347
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   348
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   349
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   350
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   351
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   352
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   353
    public void paintCheckBoxMenuItemBackground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   354
                                                Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   355
                                                int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   356
        paintBackground(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   357
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   358
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   359
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   360
     * Paints the border of a check box menu item.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   361
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   362
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   363
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   364
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   365
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   366
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   367
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   368
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   369
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   370
    public void paintCheckBoxMenuItemBorder(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   371
                                            Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   372
                                            int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   373
        paintBorder(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   374
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   375
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   376
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   377
     * Paints the background of a check box.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   378
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   379
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   380
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   381
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   382
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   383
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   384
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   385
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   386
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   387
    public void paintCheckBoxBackground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   388
                                        Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   389
                                        int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   390
        paintBackground(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   391
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   392
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   393
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   394
     * Paints the border of a check box.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   395
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   396
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   397
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   398
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   399
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   400
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   401
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   402
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   403
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   404
    public void paintCheckBoxBorder(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   405
                                    Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   406
                                    int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   407
        paintBorder(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   408
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   409
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   410
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   411
     * Paints the background of a color chooser.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   412
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   413
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   414
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   415
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   416
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   417
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   418
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   419
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   420
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   421
    public void paintColorChooserBackground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   422
                                            Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   423
                                            int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   424
        paintBackground(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   425
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   426
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   427
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   428
     * Paints the border of a color chooser.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   429
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   430
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   431
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   432
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   433
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   434
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   435
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   436
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   437
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   438
    public void paintColorChooserBorder(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   439
                                        Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   440
                                        int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   441
        paintBorder(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   442
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   443
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   444
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   445
     * Paints the background of a combo box.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   446
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   447
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   448
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   449
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   450
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   451
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   452
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   453
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   454
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   455
    public void paintComboBoxBackground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   456
                                        Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   457
                                        int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   458
        if (context.getComponent().getComponentOrientation().isLeftToRight()){
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   459
            paintBackground(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   460
        } else {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   461
            AffineTransform transform = new AffineTransform();
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   462
            transform.translate(x,y);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   463
            transform.scale(-1, 1);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   464
            transform.translate(-w,0);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   465
            paintBackground(context, g, 0, 0, w, h, transform);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   466
        }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   467
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   468
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   469
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   470
     * Paints the border of a combo box.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   471
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   472
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   473
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   474
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   475
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   476
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   477
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   478
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   479
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   480
    public void paintComboBoxBorder(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   481
                                        Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   482
                                        int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   483
        paintBorder(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   484
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   485
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   486
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   487
     * Paints the background of a desktop icon.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   488
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   489
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   490
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   491
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   492
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   493
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   494
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   495
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   496
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   497
    public void paintDesktopIconBackground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   498
                                        Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   499
                                        int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   500
        paintBackground(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   501
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   502
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   503
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   504
     * Paints the border of a desktop icon.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   505
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   506
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   507
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   508
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   509
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   510
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   511
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   512
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   513
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   514
    public void paintDesktopIconBorder(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   515
                                           Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   516
                                           int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   517
        paintBorder(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   518
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   519
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   520
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   521
     * Paints the background of a desktop pane.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   522
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   523
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   524
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   525
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   526
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   527
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   528
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   529
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   530
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   531
    public void paintDesktopPaneBackground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   532
                                           Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   533
                                           int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   534
        paintBackground(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   535
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   536
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   537
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   538
     * Paints the background of a desktop pane.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   539
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   540
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   541
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   542
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   543
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   544
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   545
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   546
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   547
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   548
    public void paintDesktopPaneBorder(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   549
                                       Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   550
                                       int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   551
        paintBorder(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   552
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   553
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   554
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   555
     * Paints the background of an editor pane.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   556
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   557
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   558
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   559
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   560
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   561
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   562
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   563
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   564
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   565
    public void paintEditorPaneBackground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   566
                                          Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   567
                                          int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   568
        paintBackground(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   569
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   570
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   571
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   572
     * Paints the border of an editor pane.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   573
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   574
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   575
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   576
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   577
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   578
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   579
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   580
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   581
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   582
    public void paintEditorPaneBorder(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   583
                                      Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   584
                                      int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   585
        paintBorder(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   586
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   587
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   588
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   589
     * Paints the background of a file chooser.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   590
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   591
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   592
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   593
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   594
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   595
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   596
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   597
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   598
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   599
    public void paintFileChooserBackground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   600
                                          Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   601
                                          int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   602
        paintBackground(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   603
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   604
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   605
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   606
     * Paints the border of a file chooser.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   607
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   608
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   609
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   610
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   611
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   612
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   613
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   614
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   615
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   616
    public void paintFileChooserBorder(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   617
                                      Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   618
                                      int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   619
        paintBorder(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   620
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   621
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   622
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   623
     * Paints the background of a formatted text field.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   624
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   625
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   626
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   627
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   628
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   629
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   630
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   631
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   632
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   633
    public void paintFormattedTextFieldBackground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   634
                                          Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   635
                                          int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   636
        if (context.getComponent().getComponentOrientation().isLeftToRight()){
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   637
            paintBackground(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   638
        } else {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   639
            AffineTransform transform = new AffineTransform();
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   640
            transform.translate(x,y);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   641
            transform.scale(-1, 1);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   642
            transform.translate(-w,0);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   643
            paintBackground(context, g, 0, 0, w, h, transform);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   644
        }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   645
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   646
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   647
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   648
     * Paints the border of a formatted text field.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   649
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   650
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   651
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   652
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   653
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   654
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   655
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   656
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   657
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   658
    public void paintFormattedTextFieldBorder(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   659
                                      Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   660
                                      int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   661
        if (context.getComponent().getComponentOrientation().isLeftToRight()){
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   662
            paintBorder(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   663
        } else {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   664
            AffineTransform transform = new AffineTransform();
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   665
            transform.translate(x,y);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   666
            transform.scale(-1, 1);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   667
            transform.translate(-w,0);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   668
            paintBorder(context, g, 0, 0, w, h, transform);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   669
        }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   670
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   671
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   672
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   673
     * Paints the background of an internal frame title pane.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   674
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   675
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   676
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   677
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   678
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   679
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   680
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   681
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   682
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   683
    public void paintInternalFrameTitlePaneBackground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   684
                                          Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   685
                                          int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   686
        paintBackground(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   687
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   688
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   689
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   690
     * Paints the border of an internal frame title pane.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   691
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   692
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   693
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   694
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   695
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   696
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   697
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   698
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   699
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   700
    public void paintInternalFrameTitlePaneBorder(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   701
                                      Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   702
                                      int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   703
        paintBorder(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   704
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   705
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   706
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   707
     * Paints the background of an internal frame.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   708
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   709
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   710
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   711
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   712
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   713
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   714
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   715
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   716
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   717
    public void paintInternalFrameBackground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   718
                                          Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   719
                                          int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   720
        paintBackground(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   721
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   722
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   723
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   724
     * Paints the border of an internal frame.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   725
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   726
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   727
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   728
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   729
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   730
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   731
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   732
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   733
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   734
    public void paintInternalFrameBorder(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   735
                                      Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   736
                                      int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   737
        paintBorder(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   738
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   739
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   740
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   741
     * Paints the background of a label.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   742
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   743
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   744
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   745
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   746
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   747
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   748
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   749
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   750
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   751
    public void paintLabelBackground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   752
                                     Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   753
                                     int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   754
        paintBackground(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   755
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   756
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   757
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   758
     * Paints the border of a label.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   759
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   760
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   761
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   762
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   763
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   764
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   765
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   766
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   767
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   768
    public void paintLabelBorder(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   769
                                 Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   770
                                 int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   771
        paintBorder(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   772
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   773
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   774
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   775
     * Paints the background of a list.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   776
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   777
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   778
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   779
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   780
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   781
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   782
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   783
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   784
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   785
    public void paintListBackground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   786
                                     Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   787
                                     int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   788
        paintBackground(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   789
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   790
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   791
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   792
     * Paints the border of a list.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   793
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   794
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   795
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   796
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   797
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   798
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   799
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   800
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   801
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   802
    public void paintListBorder(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   803
                                 Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   804
                                 int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   805
        paintBorder(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   806
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   807
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   808
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   809
     * Paints the background of a menu bar.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   810
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   811
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   812
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   813
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   814
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   815
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   816
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   817
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   818
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   819
    public void paintMenuBarBackground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   820
                                     Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   821
                                     int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   822
        paintBackground(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   823
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   824
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   825
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   826
     * Paints the border of a menu bar.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   827
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   828
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   829
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   830
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   831
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   832
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   833
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   834
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   835
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   836
    public void paintMenuBarBorder(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   837
                                 Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   838
                                 int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   839
        paintBorder(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   840
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   841
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   842
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   843
     * Paints the background of a menu item.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   844
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   845
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   846
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   847
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   848
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   849
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   850
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   851
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   852
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   853
    public void paintMenuItemBackground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   854
                                     Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   855
                                     int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   856
        paintBackground(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   857
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   858
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   859
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   860
     * Paints the border of a menu item.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   861
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   862
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   863
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   864
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   865
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   866
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   867
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   868
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   869
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   870
    public void paintMenuItemBorder(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   871
                                 Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   872
                                 int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   873
        paintBorder(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   874
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   875
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   876
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   877
     * Paints the background of a menu.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   878
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   879
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   880
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   881
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   882
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   883
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   884
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   885
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   886
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   887
    public void paintMenuBackground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   888
                                     Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   889
                                     int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   890
        paintBackground(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   891
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   892
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   893
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   894
     * Paints the border of a menu.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   895
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   896
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   897
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   898
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   899
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   900
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   901
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   902
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   903
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   904
    public void paintMenuBorder(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   905
                                 Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   906
                                 int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   907
        paintBorder(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   908
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   909
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   910
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   911
     * Paints the background of an option pane.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   912
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   913
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   914
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   915
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   916
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   917
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   918
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   919
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   920
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   921
    public void paintOptionPaneBackground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   922
                                     Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   923
                                     int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   924
        paintBackground(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   925
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   926
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   927
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   928
     * Paints the border of an option pane.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   929
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   930
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   931
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   932
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   933
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   934
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   935
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   936
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   937
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   938
    public void paintOptionPaneBorder(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   939
                                 Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   940
                                 int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   941
        paintBorder(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   942
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   943
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   944
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   945
     * Paints the background of a panel.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   946
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   947
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   948
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   949
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   950
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   951
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   952
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   953
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   954
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   955
    public void paintPanelBackground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   956
                                     Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   957
                                     int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   958
        paintBackground(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   959
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   960
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   961
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   962
     * Paints the border of a panel.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   963
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   964
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   965
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   966
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   967
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   968
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   969
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   970
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   971
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   972
    public void paintPanelBorder(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   973
                                 Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   974
                                 int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   975
        paintBorder(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   976
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   977
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   978
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   979
     * Paints the background of a password field.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   980
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   981
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   982
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   983
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   984
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   985
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   986
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   987
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   988
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   989
    public void paintPasswordFieldBackground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   990
                                     Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   991
                                     int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   992
        paintBackground(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   993
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   994
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   995
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   996
     * Paints the border of a password field.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   997
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   998
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
   999
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1000
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1001
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1002
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1003
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1004
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1005
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1006
    public void paintPasswordFieldBorder(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1007
                                 Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1008
                                 int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1009
        paintBorder(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1010
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1011
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1012
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1013
     * Paints the background of a popup menu.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1014
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1015
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1016
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1017
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1018
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1019
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1020
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1021
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1022
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1023
    public void paintPopupMenuBackground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1024
                                     Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1025
                                     int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1026
        paintBackground(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1027
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1028
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1029
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1030
     * Paints the border of a popup menu.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1031
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1032
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1033
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1034
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1035
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1036
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1037
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1038
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1039
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1040
    public void paintPopupMenuBorder(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1041
                                 Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1042
                                 int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1043
        paintBorder(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1044
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1045
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1046
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1047
     * Paints the background of a progress bar.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1048
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1049
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1050
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1051
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1052
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1053
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1054
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1055
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1056
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1057
    public void paintProgressBarBackground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1058
                                     Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1059
                                     int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1060
        paintBackground(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1061
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1062
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1063
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1064
     * Paints the background of a progress bar. This implementation invokes the
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1065
     * method of the same name without the orientation.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1066
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1067
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1068
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1069
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1070
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1071
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1072
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1073
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1074
     * @param orientation one of <code>JProgressBar.HORIZONTAL</code> or
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1075
     *                    <code>JProgressBar.VERTICAL</code>
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1076
     * @since 1.6
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1077
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1078
    public void paintProgressBarBackground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1079
                                     Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1080
                                     int w, int h, int orientation) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1081
        paintBackground(context, g, x, y, w, h, orientation);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1082
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1083
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1084
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1085
     * Paints the border of a progress bar.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1086
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1087
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1088
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1089
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1090
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1091
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1092
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1093
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1094
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1095
    public void paintProgressBarBorder(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1096
                                 Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1097
                                 int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1098
        paintBorder(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1099
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1100
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1101
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1102
     * Paints the border of a progress bar. This implementation invokes the
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1103
     * method of the same name without the orientation.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1104
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1105
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1106
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1107
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1108
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1109
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1110
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1111
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1112
     * @param orientation one of <code>JProgressBar.HORIZONTAL</code> or
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1113
     *                    <code>JProgressBar.VERTICAL</code>
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1114
     * @since 1.6
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1115
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1116
    public void paintProgressBarBorder(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1117
                                 Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1118
                                 int w, int h, int orientation) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1119
        paintBorder(context, g, x, y, w, h, orientation);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1120
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1121
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1122
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1123
     * Paints the foreground of a progress bar. is responsible for
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1124
     * providing an indication of the progress of the progress bar.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1125
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1126
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1127
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1128
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1129
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1130
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1131
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1132
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1133
     * @param orientation one of <code>JProgressBar.HORIZONTAL</code> or
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1134
     *                    <code>JProgressBar.VERTICAL</code>
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1135
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1136
    public void paintProgressBarForeground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1137
                                 Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1138
                                 int w, int h, int orientation) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1139
        paintForeground(context, g, x, y, w, h, orientation);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1140
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1141
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1142
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1143
     * Paints the background of a radio button menu item.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1144
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1145
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1146
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1147
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1148
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1149
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1150
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1151
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1152
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1153
    public void paintRadioButtonMenuItemBackground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1154
                                     Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1155
                                     int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1156
        paintBackground(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1157
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1158
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1159
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1160
     * Paints the border of a radio button menu item.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1161
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1162
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1163
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1164
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1165
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1166
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1167
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1168
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1169
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1170
    public void paintRadioButtonMenuItemBorder(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1171
                                 Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1172
                                 int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1173
        paintBorder(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1174
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1175
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1176
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1177
     * Paints the background of a radio button.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1178
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1179
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1180
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1181
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1182
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1183
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1184
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1185
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1186
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1187
    public void paintRadioButtonBackground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1188
                                     Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1189
                                     int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1190
        paintBackground(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1191
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1192
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1193
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1194
     * Paints the border of a radio button.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1195
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1196
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1197
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1198
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1199
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1200
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1201
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1202
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1203
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1204
    public void paintRadioButtonBorder(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1205
                                 Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1206
                                 int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1207
        paintBorder(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1208
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1209
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1210
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1211
     * Paints the background of a root pane.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1212
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1213
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1214
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1215
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1216
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1217
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1218
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1219
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1220
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1221
    public void paintRootPaneBackground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1222
                                     Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1223
                                     int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1224
        paintBackground(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1225
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1226
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1227
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1228
     * Paints the border of a root pane.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1229
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1230
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1231
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1232
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1233
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1234
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1235
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1236
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1237
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1238
    public void paintRootPaneBorder(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1239
                                 Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1240
                                 int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1241
        paintBorder(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1242
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1243
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1244
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1245
     * Paints the background of a scrollbar.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1246
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1247
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1248
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1249
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1250
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1251
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1252
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1253
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1254
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1255
    public void paintScrollBarBackground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1256
                                     Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1257
                                     int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1258
        paintBackground(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1259
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1260
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1261
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1262
     * Paints the background of a scrollbar. This implementation invokes the
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1263
     * method of the same name without the orientation.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1264
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1265
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1266
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1267
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1268
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1269
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1270
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1271
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1272
     * @param orientation Orientation of the JScrollBar, one of
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1273
     *                    <code>JScrollBar.HORIZONTAL</code> or
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1274
     *                    <code>JScrollBar.VERTICAL</code>
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1275
     * @since 1.6
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1276
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1277
    public void paintScrollBarBackground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1278
                                     Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1279
                                     int w, int h, int orientation) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1280
        paintBackground(context, g, x, y, w, h, orientation);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1281
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1282
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1283
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1284
     * Paints the border of a scrollbar.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1285
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1286
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1287
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1288
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1289
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1290
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1291
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1292
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1293
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1294
    public void paintScrollBarBorder(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1295
                                 Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1296
                                 int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1297
        paintBorder(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1298
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1299
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1300
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1301
     * Paints the border of a scrollbar. This implementation invokes the
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1302
     * method of the same name without the orientation.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1303
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1304
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1305
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1306
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1307
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1308
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1309
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1310
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1311
     * @param orientation Orientation of the JScrollBar, one of
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1312
     *                    <code>JScrollBar.HORIZONTAL</code> or
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1313
     *                    <code>JScrollBar.VERTICAL</code>
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1314
     * @since 1.6
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1315
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1316
    public void paintScrollBarBorder(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1317
                                 Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1318
                                 int w, int h, int orientation) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1319
        paintBorder(context, g, x, y, w, h, orientation);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1320
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1321
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1322
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1323
     * Paints the background of the thumb of a scrollbar. The thumb provides
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1324
     * a graphical indication as to how much of the Component is visible in a
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1325
     * <code>JScrollPane</code>.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1326
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1327
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1328
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1329
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1330
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1331
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1332
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1333
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1334
     * @param orientation Orientation of the JScrollBar, one of
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1335
     *                    <code>JScrollBar.HORIZONTAL</code> or
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1336
     *                    <code>JScrollBar.VERTICAL</code>
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1337
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1338
    public void paintScrollBarThumbBackground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1339
                                     Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1340
                                     int w, int h, int orientation) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1341
        paintBackground(context, g, x, y, w, h, orientation);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1342
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1343
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1344
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1345
     * Paints the border of the thumb of a scrollbar. The thumb provides
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1346
     * a graphical indication as to how much of the Component is visible in a
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1347
     * <code>JScrollPane</code>.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1348
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1349
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1350
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1351
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1352
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1353
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1354
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1355
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1356
     * @param orientation Orientation of the JScrollBar, one of
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1357
     *                    <code>JScrollBar.HORIZONTAL</code> or
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1358
     *                    <code>JScrollBar.VERTICAL</code>
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1359
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1360
    public void paintScrollBarThumbBorder(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1361
                                 Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1362
                                 int w, int h, int orientation) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1363
        paintBorder(context, g, x, y, w, h, orientation);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1364
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1365
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1366
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1367
     * Paints the background of the track of a scrollbar. The track contains
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1368
     * the thumb.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1369
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1370
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1371
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1372
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1373
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1374
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1375
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1376
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1377
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1378
    public void paintScrollBarTrackBackground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1379
                                     Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1380
                                     int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1381
        paintBackground(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1382
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1383
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1384
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1385
     * Paints the background of the track of a scrollbar. The track contains
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1386
     * the thumb. This implementation invokes the method of the same name without
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1387
     * the orientation.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1388
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1389
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1390
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1391
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1392
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1393
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1394
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1395
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1396
     * @param orientation Orientation of the JScrollBar, one of
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1397
     *                    <code>JScrollBar.HORIZONTAL</code> or
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1398
     *                    <code>JScrollBar.VERTICAL</code>
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1399
     * @since 1.6
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1400
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1401
    public void paintScrollBarTrackBackground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1402
                                     Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1403
                                     int w, int h, int orientation) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1404
        paintBackground(context, g, x, y, w, h, orientation);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1405
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1406
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1407
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1408
     * Paints the border of the track of a scrollbar. The track contains
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1409
     * the thumb.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1410
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1411
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1412
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1413
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1414
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1415
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1416
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1417
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1418
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1419
    public void paintScrollBarTrackBorder(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1420
                                 Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1421
                                 int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1422
        paintBorder(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1423
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1424
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1425
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1426
     * Paints the border of the track of a scrollbar. The track contains
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1427
     * the thumb. This implementation invokes the method of the same name without
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1428
     * the orientation.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1429
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1430
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1431
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1432
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1433
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1434
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1435
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1436
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1437
     * @param orientation Orientation of the JScrollBar, one of
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1438
     *                    <code>JScrollBar.HORIZONTAL</code> or
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1439
     *                    <code>JScrollBar.VERTICAL</code>
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1440
     * @since 1.6
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1441
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1442
    public void paintScrollBarTrackBorder(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1443
                                 Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1444
                                 int w, int h, int orientation) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1445
        paintBorder(context, g, x, y, w, h, orientation);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1446
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1447
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1448
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1449
     * Paints the background of a scroll pane.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1450
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1451
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1452
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1453
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1454
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1455
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1456
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1457
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1458
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1459
    public void paintScrollPaneBackground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1460
                                     Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1461
                                     int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1462
        paintBackground(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1463
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1464
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1465
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1466
     * Paints the border of a scroll pane.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1467
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1468
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1469
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1470
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1471
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1472
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1473
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1474
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1475
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1476
    public void paintScrollPaneBorder(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1477
                                 Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1478
                                 int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1479
        paintBorder(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1480
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1481
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1482
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1483
     * Paints the background of a separator.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1484
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1485
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1486
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1487
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1488
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1489
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1490
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1491
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1492
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1493
    public void paintSeparatorBackground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1494
                                     Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1495
                                     int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1496
        paintBackground(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1497
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1498
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1499
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1500
     * Paints the background of a separator. This implementation invokes the
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1501
     * method of the same name without the orientation.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1502
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1503
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1504
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1505
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1506
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1507
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1508
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1509
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1510
     * @param orientation One of <code>JSeparator.HORIZONTAL</code> or
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1511
     *                           <code>JSeparator.VERTICAL</code>
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1512
     * @since 1.6
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1513
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1514
    public void paintSeparatorBackground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1515
                                     Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1516
                                     int w, int h, int orientation) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1517
        paintBackground(context, g, x, y, w, h, orientation);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1518
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1519
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1520
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1521
     * Paints the border of a separator.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1522
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1523
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1524
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1525
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1526
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1527
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1528
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1529
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1530
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1531
    public void paintSeparatorBorder(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1532
                                 Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1533
                                 int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1534
        paintBorder(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1535
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1536
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1537
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1538
     * Paints the border of a separator. This implementation invokes the
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1539
     * method of the same name without the orientation.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1540
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1541
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1542
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1543
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1544
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1545
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1546
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1547
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1548
     * @param orientation One of <code>JSeparator.HORIZONTAL</code> or
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1549
     *                           <code>JSeparator.VERTICAL</code>
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1550
     * @since 1.6
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1551
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1552
    public void paintSeparatorBorder(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1553
                                 Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1554
                                 int w, int h, int orientation) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1555
        paintBorder(context, g, x, y, w, h, orientation);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1556
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1557
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1558
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1559
     * Paints the foreground of a separator.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1560
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1561
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1562
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1563
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1564
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1565
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1566
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1567
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1568
     * @param orientation One of <code>JSeparator.HORIZONTAL</code> or
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1569
     *                           <code>JSeparator.VERTICAL</code>
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1570
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1571
    public void paintSeparatorForeground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1572
                                 Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1573
                                 int w, int h, int orientation) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1574
        paintForeground(context, g, x, y, w, h, orientation);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1575
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1576
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1577
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1578
     * Paints the background of a slider.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1579
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1580
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1581
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1582
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1583
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1584
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1585
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1586
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1587
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1588
    public void paintSliderBackground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1589
                                     Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1590
                                     int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1591
        paintBackground(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1592
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1593
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1594
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1595
     * Paints the background of a slider. This implementation invokes the
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1596
     * method of the same name without the orientation.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1597
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1598
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1599
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1600
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1601
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1602
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1603
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1604
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1605
     * @param orientation One of <code>JSlider.HORIZONTAL</code> or
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1606
     *                           <code>JSlider.VERTICAL</code>
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1607
     * @since 1.6
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1608
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1609
    public void paintSliderBackground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1610
                                     Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1611
                                     int w, int h, int orientation) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1612
        paintBackground(context, g, x, y, w, h, orientation);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1613
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1614
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1615
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1616
     * Paints the border of a slider.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1617
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1618
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1619
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1620
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1621
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1622
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1623
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1624
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1625
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1626
    public void paintSliderBorder(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1627
                                 Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1628
                                 int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1629
        paintBorder(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1630
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1631
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1632
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1633
     * Paints the border of a slider. This implementation invokes the
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1634
     * method of the same name without the orientation.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1635
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1636
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1637
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1638
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1639
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1640
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1641
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1642
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1643
     * @param orientation One of <code>JSlider.HORIZONTAL</code> or
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1644
     *                           <code>JSlider.VERTICAL</code>
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1645
     * @since 1.6
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1646
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1647
    public void paintSliderBorder(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1648
                                 Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1649
                                 int w, int h, int orientation) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1650
        paintBorder(context, g, x, y, w, h, orientation);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1651
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1652
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1653
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1654
     * Paints the background of the thumb of a slider.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1655
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1656
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1657
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1658
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1659
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1660
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1661
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1662
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1663
     * @param orientation One of <code>JSlider.HORIZONTAL</code> or
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1664
     *                           <code>JSlider.VERTICAL</code>
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1665
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1666
    public void paintSliderThumbBackground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1667
                                     Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1668
                                     int w, int h, int orientation) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1669
        if (context.getComponent().getClientProperty(
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1670
                "Slider.paintThumbArrowShape") == Boolean.TRUE){
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1671
            if (orientation == JSlider.HORIZONTAL){
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1672
                orientation = JSlider.VERTICAL;
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1673
            } else {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1674
                orientation = JSlider.HORIZONTAL;
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1675
            }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1676
            paintBackground(context, g, x, y, w, h, orientation);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1677
        } else {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1678
            paintBackground(context, g, x, y, w, h, orientation);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1679
        }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1680
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1681
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1682
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1683
     * Paints the border of the thumb of a slider.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1684
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1685
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1686
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1687
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1688
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1689
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1690
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1691
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1692
     * @param orientation One of <code>JSlider.HORIZONTAL</code> or
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1693
     *                           <code>JSlider.VERTICAL</code>
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1694
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1695
    public void paintSliderThumbBorder(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1696
                                 Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1697
                                 int w, int h, int orientation) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1698
        paintBorder(context, g, x, y, w, h, orientation);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1699
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1700
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1701
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1702
     * Paints the background of the track of a slider.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1703
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1704
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1705
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1706
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1707
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1708
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1709
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1710
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1711
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1712
    public void paintSliderTrackBackground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1713
                                     Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1714
                                     int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1715
        paintBackground(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1716
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1717
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1718
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1719
     * Paints the background of the track of a slider. This implementation invokes
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1720
     * the method of the same name without the orientation.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1721
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1722
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1723
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1724
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1725
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1726
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1727
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1728
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1729
     * @param orientation One of <code>JSlider.HORIZONTAL</code> or
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1730
     *                           <code>JSlider.VERTICAL</code>
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1731
     * @since 1.6
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1732
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1733
    public void paintSliderTrackBackground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1734
                                     Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1735
                                     int w, int h, int orientation) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1736
        paintBackground(context, g, x, y, w, h, orientation);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1737
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1738
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1739
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1740
     * Paints the border of the track of a slider.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1741
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1742
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1743
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1744
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1745
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1746
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1747
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1748
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1749
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1750
    public void paintSliderTrackBorder(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1751
                                 Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1752
                                 int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1753
        paintBorder(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1754
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1755
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1756
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1757
     * Paints the border of the track of a slider. This implementation invokes the
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1758
     * method of the same name without the orientation.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1759
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1760
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1761
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1762
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1763
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1764
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1765
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1766
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1767
     * @param orientation One of <code>JSlider.HORIZONTAL</code> or
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1768
     *                           <code>JSlider.VERTICAL</code>
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1769
     * @since 1.6
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1770
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1771
    public void paintSliderTrackBorder(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1772
                                 Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1773
                                 int w, int h, int orientation) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1774
        paintBorder(context, g, x, y, w, h, orientation);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1775
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1776
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1777
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1778
     * Paints the background of a spinner.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1779
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1780
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1781
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1782
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1783
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1784
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1785
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1786
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1787
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1788
    public void paintSpinnerBackground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1789
                                     Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1790
                                     int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1791
        paintBackground(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1792
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1793
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1794
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1795
     * Paints the border of a spinner.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1796
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1797
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1798
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1799
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1800
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1801
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1802
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1803
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1804
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1805
    public void paintSpinnerBorder(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1806
                                 Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1807
                                 int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1808
        paintBorder(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1809
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1810
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1811
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1812
     * Paints the background of the divider of a split pane.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1813
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1814
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1815
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1816
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1817
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1818
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1819
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1820
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1821
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1822
    public void paintSplitPaneDividerBackground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1823
                                     Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1824
                                     int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1825
        paintBackground(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1826
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1827
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1828
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1829
     * Paints the background of the divider of a split pane. This implementation
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1830
     * invokes the method of the same name without the orientation.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1831
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1832
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1833
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1834
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1835
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1836
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1837
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1838
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1839
     * @param orientation One of <code>JSplitPane.HORIZONTAL_SPLIT</code> or
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1840
     *                           <code>JSplitPane.VERTICAL_SPLIT</code>
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1841
     * @since 1.6
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1842
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1843
    public void paintSplitPaneDividerBackground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1844
                                     Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1845
                                     int w, int h, int orientation) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1846
       if (orientation == JSplitPane.HORIZONTAL_SPLIT) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1847
            AffineTransform transform = new AffineTransform();
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1848
            transform.scale(-1, 1);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1849
            transform.rotate(Math.toRadians(90));
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1850
            paintBackground(context, g, y, x, h, w, transform);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1851
       } else {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1852
            paintBackground(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1853
        }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1854
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1855
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1856
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1857
     * Paints the foreground of the divider of a split pane.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1858
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1859
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1860
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1861
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1862
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1863
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1864
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1865
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1866
     * @param orientation One of <code>JSplitPane.HORIZONTAL_SPLIT</code> or
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1867
     *                           <code>JSplitPane.VERTICAL_SPLIT</code>
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1868
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1869
    public void paintSplitPaneDividerForeground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1870
                                     Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1871
                                     int w, int h, int orientation) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1872
        paintForeground(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1873
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1874
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1875
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1876
     * Paints the divider, when the user is dragging the divider, of a
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1877
     * split pane.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1878
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1879
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1880
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1881
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1882
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1883
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1884
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1885
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1886
     * @param orientation One of <code>JSplitPane.HORIZONTAL_SPLIT</code> or
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1887
     *                           <code>JSplitPane.VERTICAL_SPLIT</code>
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1888
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1889
    public void paintSplitPaneDragDivider(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1890
                                     Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1891
                                     int w, int h, int orientation) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1892
        paintBackground(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1893
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1894
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1895
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1896
     * Paints the background of a split pane.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1897
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1898
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1899
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1900
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1901
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1902
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1903
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1904
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1905
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1906
    public void paintSplitPaneBackground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1907
                                     Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1908
                                     int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1909
        paintBackground(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1910
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1911
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1912
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1913
     * Paints the border of a split pane.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1914
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1915
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1916
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1917
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1918
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1919
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1920
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1921
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1922
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1923
    public void paintSplitPaneBorder(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1924
                                 Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1925
                                 int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1926
        paintBorder(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1927
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1928
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1929
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1930
     * Paints the background of a tabbed pane.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1931
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1932
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1933
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1934
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1935
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1936
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1937
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1938
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1939
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1940
    public void paintTabbedPaneBackground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1941
                                     Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1942
                                     int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1943
        paintBackground(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1944
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1945
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1946
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1947
     * Paints the border of a tabbed pane.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1948
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1949
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1950
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1951
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1952
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1953
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1954
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1955
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1956
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1957
    public void paintTabbedPaneBorder(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1958
                                 Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1959
                                 int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1960
        paintBorder(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1961
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1962
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1963
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1964
     * Paints the background of the area behind the tabs of a tabbed pane.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1965
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1966
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1967
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1968
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1969
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1970
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1971
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1972
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1973
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1974
    public void paintTabbedPaneTabAreaBackground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1975
                                     Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1976
                                     int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1977
        paintBackground(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1978
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1979
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1980
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1981
     * Paints the background of the area behind the tabs of a tabbed pane.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1982
     * This implementation invokes the method of the same name without the
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1983
     * orientation.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1984
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1985
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1986
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1987
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1988
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1989
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1990
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1991
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1992
     * @param orientation One of <code>JTabbedPane.TOP</code>,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1993
     *                    <code>JTabbedPane.LEFT</code>,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1994
     *                    <code>JTabbedPane.BOTTOM</code>, or
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1995
     *                    <code>JTabbedPane.RIGHT</code>
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1996
     * @since 1.6
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1997
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1998
    public void paintTabbedPaneTabAreaBackground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  1999
                                     Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2000
                                     int w, int h, int orientation) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2001
        if (orientation == JTabbedPane.LEFT) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2002
            AffineTransform transform = new AffineTransform();
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2003
            transform.scale(-1, 1);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2004
            transform.rotate(Math.toRadians(90));
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2005
            paintBackground(context, g, y, x, h, w, transform);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2006
        } else if (orientation == JTabbedPane.RIGHT) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2007
            AffineTransform transform = new AffineTransform();
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2008
            transform.rotate(Math.toRadians(90));
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2009
            transform.translate(0, -(x + w));
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2010
            paintBackground(context, g, y, 0, h, w, transform);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2011
        } else if (orientation == JTabbedPane.BOTTOM) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2012
            AffineTransform transform = new AffineTransform();
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2013
            transform.translate(x,y);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2014
            transform.scale(1, -1);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2015
            transform.translate(0,-h);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2016
            paintBackground(context, g, 0, 0, w, h, transform);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2017
        } else {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2018
            paintBackground(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2019
        }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2020
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2021
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2022
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2023
     * Paints the border of the area behind the tabs of a tabbed pane.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2024
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2025
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2026
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2027
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2028
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2029
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2030
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2031
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2032
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2033
    public void paintTabbedPaneTabAreaBorder(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2034
                                 Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2035
                                 int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2036
        paintBorder(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2037
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2038
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2039
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2040
     * Paints the border of the area behind the tabs of a tabbed pane. This
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2041
     * implementation invokes the method of the same name without the orientation.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2042
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2043
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2044
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2045
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2046
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2047
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2048
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2049
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2050
     * @param orientation One of <code>JTabbedPane.TOP</code>,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2051
     *                    <code>JTabbedPane.LEFT</code>,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2052
     *                    <code>JTabbedPane.BOTTOM</code>, or
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2053
     *                    <code>JTabbedPane.RIGHT</code>
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2054
     * @since 1.6
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2055
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2056
    public void paintTabbedPaneTabAreaBorder(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2057
                                 Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2058
                                 int w, int h, int orientation) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2059
        paintBorder(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2060
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2061
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2062
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2063
     * Paints the background of a tab of a tabbed pane.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2064
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2065
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2066
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2067
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2068
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2069
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2070
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2071
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2072
     * @param tabIndex Index of tab being painted.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2073
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2074
    public void paintTabbedPaneTabBackground(SynthContext context, Graphics g,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2075
                                         int x, int y, int w, int h,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2076
                                         int tabIndex) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2077
        paintBackground(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2078
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2079
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2080
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2081
     * Paints the background of a tab of a tabbed pane. This implementation
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2082
     * invokes the method of the same name without the orientation.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2083
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2084
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2085
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2086
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2087
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2088
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2089
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2090
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2091
     * @param tabIndex Index of tab being painted.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2092
     * @param orientation One of <code>JTabbedPane.TOP</code>,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2093
     *                    <code>JTabbedPane.LEFT</code>,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2094
     *                    <code>JTabbedPane.BOTTOM</code>, or
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2095
     *                    <code>JTabbedPane.RIGHT</code>
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2096
     * @since 1.6
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2097
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2098
    public void paintTabbedPaneTabBackground(SynthContext context, Graphics g,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2099
                                         int x, int y, int w, int h,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2100
                                         int tabIndex, int orientation) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2101
        if (orientation == JTabbedPane.LEFT) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2102
            AffineTransform transform = new AffineTransform();
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2103
            transform.scale(-1, 1);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2104
            transform.rotate(Math.toRadians(90));
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2105
            paintBackground(context, g, y, x, h, w, transform);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2106
        } else if (orientation == JTabbedPane.RIGHT) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2107
            AffineTransform transform = new AffineTransform();
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2108
            transform.rotate(Math.toRadians(90));
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2109
            transform.translate(0, -(x + w));
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2110
            paintBackground(context, g, y, 0, h, w, transform);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2111
        } else if (orientation == JTabbedPane.BOTTOM) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2112
            AffineTransform transform = new AffineTransform();
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2113
            transform.translate(x,y);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2114
            transform.scale(1, -1);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2115
            transform.translate(0,-h);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2116
            paintBackground(context, g, 0, 0, w, h, transform);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2117
        } else {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2118
            paintBackground(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2119
        }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2120
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2121
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2122
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2123
     * Paints the border of a tab of a tabbed pane.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2124
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2125
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2126
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2127
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2128
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2129
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2130
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2131
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2132
     * @param tabIndex Index of tab being painted.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2133
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2134
    public void paintTabbedPaneTabBorder(SynthContext context, Graphics g,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2135
                                         int x, int y, int w, int h,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2136
                                         int tabIndex) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2137
        paintBorder(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2138
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2139
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2140
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2141
     * Paints the border of a tab of a tabbed pane. This implementation invokes
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2142
     * the method of the same name without the orientation.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2143
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2144
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2145
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2146
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2147
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2148
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2149
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2150
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2151
     * @param tabIndex Index of tab being painted.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2152
     * @param orientation One of <code>JTabbedPane.TOP</code>,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2153
     *                    <code>JTabbedPane.LEFT</code>,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2154
     *                    <code>JTabbedPane.BOTTOM</code>, or
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2155
     *                    <code>JTabbedPane.RIGHT</code>
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2156
     * @since 1.6
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2157
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2158
    public void paintTabbedPaneTabBorder(SynthContext context, Graphics g,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2159
                                         int x, int y, int w, int h,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2160
                                         int tabIndex, int orientation) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2161
        paintBorder(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2162
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2163
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2164
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2165
     * Paints the background of the area that contains the content of the
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2166
     * selected tab of a tabbed pane.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2167
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2168
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2169
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2170
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2171
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2172
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2173
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2174
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2175
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2176
    public void paintTabbedPaneContentBackground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2177
                                         Graphics g, int x, int y, int w,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2178
                                         int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2179
        paintBackground(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2180
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2181
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2182
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2183
     * Paints the border of the area that contains the content of the
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2184
     * selected tab of a tabbed pane.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2185
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2186
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2187
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2188
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2189
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2190
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2191
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2192
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2193
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2194
    public void paintTabbedPaneContentBorder(SynthContext context, Graphics g,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2195
                                         int x, int y, int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2196
        paintBorder(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2197
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2198
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2199
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2200
     * Paints the background of the header of a table.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2201
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2202
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2203
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2204
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2205
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2206
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2207
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2208
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2209
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2210
    public void paintTableHeaderBackground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2211
                                     Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2212
                                     int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2213
        paintBackground(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2214
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2215
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2216
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2217
     * Paints the border of the header of a table.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2218
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2219
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2220
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2221
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2222
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2223
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2224
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2225
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2226
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2227
    public void paintTableHeaderBorder(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2228
                                 Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2229
                                 int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2230
        paintBorder(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2231
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2232
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2233
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2234
     * Paints the background of a table.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2235
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2236
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2237
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2238
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2239
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2240
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2241
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2242
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2243
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2244
    public void paintTableBackground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2245
                                     Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2246
                                     int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2247
        paintBackground(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2248
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2249
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2250
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2251
     * Paints the border of a table.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2252
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2253
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2254
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2255
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2256
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2257
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2258
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2259
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2260
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2261
    public void paintTableBorder(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2262
                                 Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2263
                                 int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2264
        paintBorder(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2265
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2266
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2267
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2268
     * Paints the background of a text area.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2269
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2270
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2271
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2272
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2273
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2274
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2275
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2276
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2277
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2278
    public void paintTextAreaBackground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2279
                                     Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2280
                                     int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2281
        paintBackground(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2282
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2283
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2284
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2285
     * Paints the border of a text area.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2286
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2287
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2288
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2289
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2290
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2291
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2292
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2293
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2294
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2295
    public void paintTextAreaBorder(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2296
                                 Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2297
                                 int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2298
        paintBorder(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2299
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2300
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2301
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2302
     * Paints the background of a text pane.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2303
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2304
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2305
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2306
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2307
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2308
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2309
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2310
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2311
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2312
    public void paintTextPaneBackground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2313
                                     Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2314
                                     int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2315
        paintBackground(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2316
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2317
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2318
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2319
     * Paints the border of a text pane.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2320
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2321
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2322
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2323
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2324
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2325
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2326
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2327
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2328
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2329
    public void paintTextPaneBorder(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2330
                                 Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2331
                                 int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2332
        paintBorder(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2333
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2334
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2335
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2336
     * Paints the background of a text field.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2337
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2338
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2339
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2340
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2341
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2342
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2343
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2344
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2345
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2346
    public void paintTextFieldBackground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2347
                                          Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2348
                                          int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2349
        if (context.getComponent().getComponentOrientation().isLeftToRight()){
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2350
            paintBackground(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2351
        } else {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2352
            AffineTransform transform = new AffineTransform();
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2353
            transform.translate(x,y);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2354
            transform.scale(-1, 1);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2355
            transform.translate(-w,0);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2356
            paintBackground(context, g, 0, 0, w, h, transform);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2357
        }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2358
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2359
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2360
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2361
     * Paints the border of a text field.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2362
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2363
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2364
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2365
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2366
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2367
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2368
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2369
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2370
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2371
    public void paintTextFieldBorder(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2372
                                      Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2373
                                      int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2374
        if (context.getComponent().getComponentOrientation().isLeftToRight()){
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2375
            paintBorder(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2376
        } else {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2377
            AffineTransform transform = new AffineTransform();
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2378
            transform.translate(x,y);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2379
            transform.scale(-1, 1);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2380
            transform.translate(-w,0);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2381
            paintBorder(context, g, 0, 0, w, h, transform);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2382
        }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2383
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2384
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2385
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2386
     * Paints the background of a toggle button.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2387
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2388
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2389
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2390
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2391
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2392
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2393
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2394
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2395
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2396
    public void paintToggleButtonBackground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2397
                                     Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2398
                                     int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2399
        paintBackground(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2400
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2401
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2402
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2403
     * Paints the border of a toggle button.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2404
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2405
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2406
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2407
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2408
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2409
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2410
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2411
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2412
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2413
    public void paintToggleButtonBorder(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2414
                                 Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2415
                                 int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2416
        paintBorder(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2417
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2418
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2419
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2420
     * Paints the background of a tool bar.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2421
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2422
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2423
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2424
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2425
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2426
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2427
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2428
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2429
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2430
    public void paintToolBarBackground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2431
                                     Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2432
                                     int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2433
        paintBackground(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2434
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2435
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2436
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2437
     * Paints the background of a tool bar. This implementation invokes the
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2438
     * method of the same name without the orientation.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2439
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2440
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2441
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2442
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2443
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2444
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2445
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2446
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2447
     * @param orientation One of <code>JToolBar.HORIZONTAL</code> or
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2448
     *                           <code>JToolBar.VERTICAL</code>
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2449
     * @since 1.6
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2450
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2451
    public void paintToolBarBackground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2452
                                     Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2453
                                     int w, int h, int orientation) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2454
        paintBackground(context, g, x, y, w, h, orientation);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2455
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2456
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2457
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2458
     * Paints the border of a tool bar.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2459
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2460
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2461
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2462
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2463
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2464
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2465
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2466
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2467
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2468
    public void paintToolBarBorder(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2469
                                 Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2470
                                 int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2471
        paintBorder(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2472
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2473
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2474
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2475
     * Paints the border of a tool bar. This implementation invokes the
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2476
     * method of the same name without the orientation.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2477
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2478
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2479
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2480
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2481
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2482
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2483
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2484
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2485
     * @param orientation One of <code>JToolBar.HORIZONTAL</code> or
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2486
     *                           <code>JToolBar.VERTICAL</code>
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2487
     * @since 1.6
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2488
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2489
    public void paintToolBarBorder(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2490
                                 Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2491
                                 int w, int h, int orientation) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2492
        paintBorder(context, g, x, y, w, h, orientation);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2493
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2494
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2495
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2496
     * Paints the background of the tool bar's content area.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2497
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2498
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2499
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2500
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2501
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2502
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2503
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2504
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2505
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2506
    public void paintToolBarContentBackground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2507
                                     Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2508
                                     int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2509
        paintBackground(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2510
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2511
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2512
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2513
     * Paints the background of the tool bar's content area. This implementation
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2514
     * invokes the method of the same name without the orientation.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2515
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2516
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2517
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2518
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2519
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2520
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2521
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2522
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2523
     * @param orientation One of <code>JToolBar.HORIZONTAL</code> or
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2524
     *                           <code>JToolBar.VERTICAL</code>
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2525
     * @since 1.6
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2526
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2527
    public void paintToolBarContentBackground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2528
                                     Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2529
                                     int w, int h, int orientation) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2530
        paintBackground(context, g, x, y, w, h, orientation);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2531
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2532
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2533
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2534
     * Paints the border of the content area of a tool bar.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2535
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2536
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2537
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2538
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2539
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2540
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2541
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2542
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2543
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2544
    public void paintToolBarContentBorder(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2545
                                 Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2546
                                 int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2547
        paintBorder(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2548
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2549
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2550
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2551
     * Paints the border of the content area of a tool bar. This implementation
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2552
     * invokes the method of the same name without the orientation.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2553
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2554
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2555
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2556
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2557
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2558
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2559
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2560
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2561
     * @param orientation One of <code>JToolBar.HORIZONTAL</code> or
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2562
     *                           <code>JToolBar.VERTICAL</code>
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2563
     * @since 1.6
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2564
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2565
    public void paintToolBarContentBorder(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2566
                                 Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2567
                                 int w, int h, int orientation) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2568
        paintBorder(context, g, x, y, w, h, orientation);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2569
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2570
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2571
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2572
     * Paints the background of the window containing the tool bar when it
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2573
     * has been detached from its primary frame.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2574
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2575
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2576
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2577
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2578
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2579
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2580
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2581
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2582
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2583
    public void paintToolBarDragWindowBackground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2584
                                     Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2585
                                     int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2586
        paintBackground(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2587
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2588
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2589
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2590
     * Paints the background of the window containing the tool bar when it
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2591
     * has been detached from its primary frame. This implementation invokes the
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2592
     * method of the same name without the orientation.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2593
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2594
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2595
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2596
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2597
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2598
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2599
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2600
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2601
     * @param orientation One of <code>JToolBar.HORIZONTAL</code> or
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2602
     *                           <code>JToolBar.VERTICAL</code>
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2603
     * @since 1.6
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2604
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2605
    public void paintToolBarDragWindowBackground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2606
                                     Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2607
                                     int w, int h, int orientation) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2608
        paintBackground(context, g, x, y, w, h, orientation);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2609
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2610
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2611
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2612
     * Paints the border of the window containing the tool bar when it
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2613
     * has been detached from it's primary frame.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2614
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2615
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2616
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2617
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2618
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2619
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2620
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2621
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2622
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2623
    public void paintToolBarDragWindowBorder(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2624
                                 Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2625
                                 int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2626
        paintBorder(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2627
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2628
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2629
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2630
     * Paints the border of the window containing the tool bar when it
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2631
     * has been detached from it's primary frame. This implementation invokes the
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2632
     * method of the same name without the orientation.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2633
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2634
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2635
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2636
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2637
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2638
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2639
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2640
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2641
     * @param orientation One of <code>JToolBar.HORIZONTAL</code> or
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2642
     *                           <code>JToolBar.VERTICAL</code>
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2643
     * @since 1.6
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2644
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2645
    public void paintToolBarDragWindowBorder(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2646
                                 Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2647
                                 int w, int h, int orientation) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2648
        paintBorder(context, g, x, y, w, h, orientation);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2649
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2650
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2651
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2652
     * Paints the background of a tool tip.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2653
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2654
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2655
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2656
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2657
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2658
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2659
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2660
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2661
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2662
    public void paintToolTipBackground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2663
                                     Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2664
                                     int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2665
        paintBackground(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2666
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2667
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2668
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2669
     * Paints the border of a tool tip.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2670
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2671
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2672
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2673
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2674
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2675
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2676
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2677
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2678
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2679
    public void paintToolTipBorder(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2680
                                 Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2681
                                 int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2682
        paintBorder(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2683
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2684
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2685
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2686
     * Paints the background of a tree.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2687
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2688
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2689
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2690
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2691
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2692
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2693
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2694
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2695
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2696
    public void paintTreeBackground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2697
                                     Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2698
                                     int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2699
        paintBackground(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2700
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2701
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2702
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2703
     * Paints the border of a tree.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2704
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2705
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2706
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2707
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2708
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2709
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2710
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2711
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2712
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2713
    public void paintTreeBorder(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2714
                                 Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2715
                                 int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2716
        paintBorder(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2717
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2718
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2719
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2720
     * Paints the background of the row containing a cell in a tree.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2721
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2722
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2723
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2724
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2725
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2726
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2727
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2728
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2729
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2730
    public void paintTreeCellBackground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2731
                                     Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2732
                                     int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2733
        paintBackground(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2734
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2735
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2736
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2737
     * Paints the border of the row containing a cell in a tree.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2738
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2739
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2740
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2741
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2742
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2743
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2744
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2745
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2746
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2747
    public void paintTreeCellBorder(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2748
                                 Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2749
                                 int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2750
        paintBorder(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2751
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2752
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2753
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2754
     * Paints the focus indicator for a cell in a tree when it has focus.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2755
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2756
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2757
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2758
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2759
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2760
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2761
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2762
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2763
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2764
    public void paintTreeCellFocus(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2765
                                   Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2766
                                   int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2767
        //TODO
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2768
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2769
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2770
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2771
     * Paints the background of the viewport.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2772
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2773
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2774
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2775
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2776
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2777
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2778
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2779
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2780
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2781
    public void paintViewportBackground(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2782
                                     Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2783
                                     int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2784
        paintBackground(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2785
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2786
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2787
    /**
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2788
     * Paints the border of a viewport.
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2789
     *
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2790
     * @param context SynthContext identifying the <code>JComponent</code> and
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2791
     *        <code>Region</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2792
     * @param g <code>Graphics</code> to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2793
     * @param x X coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2794
     * @param y Y coordinate of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2795
     * @param w Width of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2796
     * @param h Height of the area to paint to
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2797
     */
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2798
    public void paintViewportBorder(SynthContext context,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2799
                                 Graphics g, int x, int y,
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2800
                                 int w, int h) {
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2801
        paintBorder(context, g, x, y, w, h, null);
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2802
    }
43e06bc950ec 6591875: Nimbus Swing Look and Feel
peterz
parents:
diff changeset
  2803
}