jdk/src/java.desktop/share/classes/javax/swing/plaf/synth/ParsedSynthStyle.java
author alexsch
Wed, 18 Nov 2015 19:13:42 +0400
changeset 34407 2b40f400a30b
parent 25859 3317bb8137f4
permissions -rw-r--r--
8081411: Add an API for painting an icon with a SynthContext Reviewed-by: serb, azvegint
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     2
 * Copyright (c) 2003, 2005, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
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: 2
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 *
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    23
 * questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
package javax.swing.plaf.synth;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
import java.awt.Graphics;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
import java.util.LinkedList;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
import sun.swing.plaf.synth.DefaultSynthStyle;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
 * ParsedSynthStyle are the SynthStyle's that SynthParser creates.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
 * @author Scott Violet
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
class ParsedSynthStyle extends DefaultSynthStyle {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
    private static SynthPainter DELEGATING_PAINTER_INSTANCE = new
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
                        DelegatingPainter();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
    private PainterInfo[] _painters;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
    private static PainterInfo[] mergePainterInfo(PainterInfo[] old,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
                                                  PainterInfo[] newPI) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
        if (old == null) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
            return newPI;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
        if (newPI == null) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
            return old;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
        int oldLength = old.length;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
        int newLength = newPI.length;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
        int dups = 0;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
        PainterInfo[] merged = new PainterInfo[oldLength + newLength];
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
        System.arraycopy(old, 0, merged, 0, oldLength);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
        for (int newCounter = 0; newCounter < newLength; newCounter++) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
            boolean found = false;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
            for (int oldCounter = 0; oldCounter < oldLength - dups;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
                     oldCounter++) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
                if (newPI[newCounter].equalsPainter(old[oldCounter])) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
                    merged[oldCounter] = newPI[newCounter];
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
                    dups++;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
                    found = true;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
                    break;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
                }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
            if (!found) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
                merged[oldLength + newCounter - dups] = newPI[newCounter];
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
        if (dups > 0) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
            PainterInfo[] tmp = merged;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
            merged = new PainterInfo[merged.length - dups];
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
            System.arraycopy(tmp, 0, merged, 0, merged.length);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
        return merged;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
    public ParsedSynthStyle() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
    public ParsedSynthStyle(DefaultSynthStyle style) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
        super(style);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
        if (style instanceof ParsedSynthStyle) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
            ParsedSynthStyle pStyle = (ParsedSynthStyle)style;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
            if (pStyle._painters != null) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
                _painters = pStyle._painters;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
    public SynthPainter getPainter(SynthContext ss) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
        return DELEGATING_PAINTER_INSTANCE;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
    public void setPainters(PainterInfo[] info) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
        _painters = info;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
    public DefaultSynthStyle addTo(DefaultSynthStyle style) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
        if (!(style instanceof ParsedSynthStyle)) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
            style = new ParsedSynthStyle(style);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
        ParsedSynthStyle pStyle = (ParsedSynthStyle)super.addTo(style);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
        pStyle._painters = mergePainterInfo(pStyle._painters, _painters);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
        return pStyle;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
    private SynthPainter getBestPainter(SynthContext context, String method,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
                                        int direction) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
        // Check the state info first
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
        StateInfo info = (StateInfo)getStateInfo(context.getComponentState());
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
        SynthPainter painter;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
        if (info != null) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
            if ((painter = getBestPainter(info.getPainters(), method,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
                                          direction)) != null) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
                return painter;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
        if ((painter = getBestPainter(_painters, method, direction)) != null) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
            return painter;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
        return SynthPainter.NULL_PAINTER;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
    private SynthPainter getBestPainter(PainterInfo[] info, String method,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
                                        int direction) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
        if (info != null) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
            // Painter specified with no method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
            SynthPainter nullPainter = null;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
            // Painter specified for this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
            SynthPainter methodPainter = null;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
            for (int counter = info.length - 1; counter >= 0; counter--) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
                PainterInfo pi = info[counter];
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
                if (pi.getMethod() == method) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
                    if (pi.getDirection() == direction) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
                        return pi.getPainter();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
                    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
                    else if (methodPainter == null &&pi.getDirection() == -1) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
                        methodPainter = pi.getPainter();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
                    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
                }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
                else if (nullPainter == null && pi.getMethod() == null) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
                    nullPainter = pi.getPainter();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
                }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
            if (methodPainter != null) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
                return methodPainter;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
            return nullPainter;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
        return null;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
    public String toString() {
24969
afa6934dd8e8 8041679: Replace uses of StringBuffer with StringBuilder within core library classes
psandoz
parents: 5506
diff changeset
   159
        StringBuilder text = new StringBuilder(super.toString());
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
        if (_painters != null) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
            text.append(",painters=[");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
            for (int i = 0; i < +_painters.length; i++) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
                text.append(_painters[i].toString());
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
            text.append("]");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
        return text.toString();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
    static class StateInfo extends DefaultSynthStyle.StateInfo {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
        private PainterInfo[] _painterInfo;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
        public StateInfo() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
        public StateInfo(DefaultSynthStyle.StateInfo info) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
            super(info);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
            if (info instanceof StateInfo) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
                _painterInfo = ((StateInfo)info)._painterInfo;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
        public void setPainters(PainterInfo[] painterInfo) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
            _painterInfo = painterInfo;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
        public PainterInfo[] getPainters() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
            return _painterInfo;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
        public Object clone() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
            return new StateInfo(this);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
        public DefaultSynthStyle.StateInfo addTo(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
                           DefaultSynthStyle.StateInfo info) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
            if (!(info instanceof StateInfo)) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
                info = new StateInfo(info);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
            else {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
                info = super.addTo(info);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
                StateInfo si = (StateInfo)info;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
                si._painterInfo = mergePainterInfo(si._painterInfo,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
                                                   _painterInfo);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
            return info;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
        public String toString() {
24969
afa6934dd8e8 8041679: Replace uses of StringBuffer with StringBuilder within core library classes
psandoz
parents: 5506
diff changeset
   211
            StringBuilder text = new StringBuilder(super.toString());
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
            text.append(",painters=[");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
            if (_painterInfo != null) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
                for (int i = 0; i < +_painterInfo.length; i++) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
                    text.append("    ").append(_painterInfo[i].toString());
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
                }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
            text.append("]");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
            return text.toString();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
    static class PainterInfo {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
        private String _method;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
        private SynthPainter _painter;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
        private int _direction;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
        PainterInfo(String method, SynthPainter painter, int direction) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
            if (method != null) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
                _method = method.intern();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
            _painter = painter;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
            _direction = direction;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
        void addPainter(SynthPainter painter) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
            if (!(_painter instanceof AggregatePainter)) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
                _painter = new AggregatePainter(_painter);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
            ((AggregatePainter) _painter).addPainter(painter);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
        String getMethod() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
            return _method;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
90ce3da70b43 Initial load
duke
parents:
diff changeset
   249
        SynthPainter getPainter() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   250
            return _painter;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   251
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   252
90ce3da70b43 Initial load
duke
parents:
diff changeset
   253
        int getDirection() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   254
            return _direction;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   255
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   256
90ce3da70b43 Initial load
duke
parents:
diff changeset
   257
        boolean equalsPainter(PainterInfo info) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   258
            return (_method == info._method && _direction == info._direction);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   259
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   260
90ce3da70b43 Initial load
duke
parents:
diff changeset
   261
        public String toString() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   262
            return "PainterInfo {method=" + _method + ",direction=" +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   263
                _direction + ",painter=" + _painter +"}";
90ce3da70b43 Initial load
duke
parents:
diff changeset
   264
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   265
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   266
90ce3da70b43 Initial load
duke
parents:
diff changeset
   267
    private static class AggregatePainter extends SynthPainter {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   268
        private java.util.List<SynthPainter> painters;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   269
90ce3da70b43 Initial load
duke
parents:
diff changeset
   270
        AggregatePainter(SynthPainter painter) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   271
            painters = new LinkedList<SynthPainter>();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   272
            painters.add(painter);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   273
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   274
90ce3da70b43 Initial load
duke
parents:
diff changeset
   275
        void addPainter(SynthPainter painter) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   276
            if (painter != null) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   277
                painters.add(painter);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   278
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   279
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   280
90ce3da70b43 Initial load
duke
parents:
diff changeset
   281
        public void paintArrowButtonBackground(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   282
                                               int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   283
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   284
                painter.paintArrowButtonBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   285
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   286
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   287
90ce3da70b43 Initial load
duke
parents:
diff changeset
   288
        public void paintArrowButtonBorder(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   289
                                           int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   290
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   291
                painter.paintArrowButtonBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   292
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   293
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   294
90ce3da70b43 Initial load
duke
parents:
diff changeset
   295
        public void paintArrowButtonForeground(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   296
                                               int x, int y, int w, int h,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   297
                                               int direction) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   298
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   299
                painter.paintArrowButtonForeground(context, g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   300
                                                   x, y, w, h, direction);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   301
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   302
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   303
90ce3da70b43 Initial load
duke
parents:
diff changeset
   304
        public void paintButtonBackground(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   305
                                          int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   306
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   307
                painter.paintButtonBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   308
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   309
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   310
90ce3da70b43 Initial load
duke
parents:
diff changeset
   311
        public void paintButtonBorder(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   312
                                      int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   313
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   314
                painter.paintButtonBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   315
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   316
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   317
90ce3da70b43 Initial load
duke
parents:
diff changeset
   318
        public void paintCheckBoxMenuItemBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   319
                                                    Graphics g, int x, int y,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   320
                                                    int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   321
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   322
                painter.paintCheckBoxMenuItemBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   323
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   324
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   325
90ce3da70b43 Initial load
duke
parents:
diff changeset
   326
        public void paintCheckBoxMenuItemBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   327
                                                Graphics g, int x, int y,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   328
                                                int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   329
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   330
                painter.paintCheckBoxMenuItemBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   331
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   332
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   333
90ce3da70b43 Initial load
duke
parents:
diff changeset
   334
        public void paintCheckBoxBackground(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   335
                                            int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   336
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   337
                painter.paintCheckBoxBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   338
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   339
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   340
90ce3da70b43 Initial load
duke
parents:
diff changeset
   341
        public void paintCheckBoxBorder(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   342
                                        int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   343
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   344
                painter.paintCheckBoxBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   345
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   346
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   347
90ce3da70b43 Initial load
duke
parents:
diff changeset
   348
        public void paintColorChooserBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   349
                                                Graphics g, int x, int y,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   350
                                                int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   351
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   352
                painter.paintColorChooserBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   353
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   354
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   355
90ce3da70b43 Initial load
duke
parents:
diff changeset
   356
        public void paintColorChooserBorder(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   357
                                            int x, int y,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   358
                                            int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   359
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   360
                painter.paintColorChooserBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   361
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   362
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   363
90ce3da70b43 Initial load
duke
parents:
diff changeset
   364
        public void paintComboBoxBackground(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   365
                                            int x, int y,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   366
                                            int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   367
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   368
                painter.paintComboBoxBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   369
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   370
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   371
90ce3da70b43 Initial load
duke
parents:
diff changeset
   372
        public void paintComboBoxBorder(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   373
                                        int x, int y,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   374
                                        int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   375
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   376
                painter.paintComboBoxBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   377
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   378
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   379
90ce3da70b43 Initial load
duke
parents:
diff changeset
   380
        public void paintDesktopIconBackground(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   381
                                               int x, int y,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   382
                                               int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   383
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   384
                painter.paintDesktopIconBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   385
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   386
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   387
90ce3da70b43 Initial load
duke
parents:
diff changeset
   388
        public void paintDesktopIconBorder(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   389
                                           int x, int y,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   390
                                           int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   391
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   392
                painter.paintDesktopIconBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   393
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   394
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   395
90ce3da70b43 Initial load
duke
parents:
diff changeset
   396
        public void paintDesktopPaneBackground(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   397
                                               int x, int y,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   398
                                               int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   399
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   400
                painter.paintDesktopPaneBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   401
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   402
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   403
90ce3da70b43 Initial load
duke
parents:
diff changeset
   404
        public void paintDesktopPaneBorder(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   405
                                           int x, int y,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   406
                                           int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   407
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   408
                painter.paintDesktopPaneBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   409
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   410
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   411
90ce3da70b43 Initial load
duke
parents:
diff changeset
   412
        public void paintEditorPaneBackground(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   413
                                              int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   414
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   415
                painter.paintEditorPaneBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   416
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   417
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   418
90ce3da70b43 Initial load
duke
parents:
diff changeset
   419
        public void paintEditorPaneBorder(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   420
                                          int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   421
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   422
                painter.paintEditorPaneBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   423
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   424
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   425
90ce3da70b43 Initial load
duke
parents:
diff changeset
   426
        public void paintFileChooserBackground(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   427
                                               int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   428
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   429
                painter.paintFileChooserBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   430
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   431
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   432
90ce3da70b43 Initial load
duke
parents:
diff changeset
   433
        public void paintFileChooserBorder(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   434
                                           int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   435
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   436
                painter.paintFileChooserBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   437
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   438
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   439
90ce3da70b43 Initial load
duke
parents:
diff changeset
   440
        public void paintFormattedTextFieldBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   441
                                                      Graphics g, int x, int y,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   442
                                                      int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   443
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   444
                painter.paintFormattedTextFieldBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   445
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   446
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   447
90ce3da70b43 Initial load
duke
parents:
diff changeset
   448
        public void paintFormattedTextFieldBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   449
                                                  Graphics g, int x, int y,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   450
                                                  int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   451
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   452
                painter.paintFormattedTextFieldBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   453
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   454
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   455
90ce3da70b43 Initial load
duke
parents:
diff changeset
   456
        public void paintInternalFrameTitlePaneBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   457
                                                          Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   458
                                                          int x, int y,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   459
                                                          int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   460
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   461
                painter.paintInternalFrameTitlePaneBackground(context, g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   462
                                                              x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   463
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   464
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   465
90ce3da70b43 Initial load
duke
parents:
diff changeset
   466
        public void paintInternalFrameTitlePaneBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   467
                                                      Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   468
                                                      int x, int y,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   469
                                                      int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   470
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   471
                painter.paintInternalFrameTitlePaneBorder(context, g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   472
                                                          x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   473
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   474
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   475
90ce3da70b43 Initial load
duke
parents:
diff changeset
   476
        public void paintInternalFrameBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   477
                                                 Graphics g, int x, int y,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   478
                                                 int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   479
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   480
                painter.paintInternalFrameBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   481
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   482
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   483
90ce3da70b43 Initial load
duke
parents:
diff changeset
   484
        public void paintInternalFrameBorder(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   485
                                             int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   486
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   487
                painter.paintInternalFrameBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   488
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   489
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   490
90ce3da70b43 Initial load
duke
parents:
diff changeset
   491
        public void paintLabelBackground(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   492
                                         int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   493
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   494
                painter.paintLabelBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   495
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   496
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   497
90ce3da70b43 Initial load
duke
parents:
diff changeset
   498
        public void paintLabelBorder(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   499
                                     int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   500
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   501
                painter.paintLabelBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   502
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   503
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   504
90ce3da70b43 Initial load
duke
parents:
diff changeset
   505
        public void paintListBackground(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   506
                                        int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   507
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   508
                painter.paintListBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   509
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   510
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   511
90ce3da70b43 Initial load
duke
parents:
diff changeset
   512
        public void paintListBorder(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   513
                                    int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   514
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   515
                painter.paintListBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   516
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   517
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   518
90ce3da70b43 Initial load
duke
parents:
diff changeset
   519
        public void paintMenuBarBackground(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   520
                                           int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   521
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   522
                painter.paintMenuBarBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   523
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   524
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   525
90ce3da70b43 Initial load
duke
parents:
diff changeset
   526
        public void paintMenuBarBorder(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   527
                                       int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   528
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   529
                painter.paintMenuBarBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   530
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   531
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   532
90ce3da70b43 Initial load
duke
parents:
diff changeset
   533
        public void paintMenuItemBackground(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   534
                                            int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   535
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   536
                painter.paintMenuItemBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   537
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   538
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   539
90ce3da70b43 Initial load
duke
parents:
diff changeset
   540
        public void paintMenuItemBorder(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   541
                                        int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   542
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   543
                painter.paintMenuItemBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   544
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   545
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   546
90ce3da70b43 Initial load
duke
parents:
diff changeset
   547
        public void paintMenuBackground(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   548
                                        int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   549
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   550
                painter.paintMenuBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   551
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   552
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   553
90ce3da70b43 Initial load
duke
parents:
diff changeset
   554
        public void paintMenuBorder(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   555
                                    int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   556
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   557
                painter.paintMenuBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   558
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   559
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   560
90ce3da70b43 Initial load
duke
parents:
diff changeset
   561
        public void paintOptionPaneBackground(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   562
                                              int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   563
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   564
                painter.paintOptionPaneBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   565
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   566
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   567
90ce3da70b43 Initial load
duke
parents:
diff changeset
   568
        public void paintOptionPaneBorder(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   569
                                          int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   570
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   571
                painter.paintOptionPaneBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   572
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   573
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   574
90ce3da70b43 Initial load
duke
parents:
diff changeset
   575
        public void paintPanelBackground(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   576
                                         int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   577
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   578
                painter.paintPanelBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   579
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   580
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   581
90ce3da70b43 Initial load
duke
parents:
diff changeset
   582
        public void paintPanelBorder(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   583
                                     int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   584
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   585
                painter.paintPanelBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   586
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   587
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   588
90ce3da70b43 Initial load
duke
parents:
diff changeset
   589
        public void paintPasswordFieldBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   590
                                                 Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   591
                                                 int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   592
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   593
                painter.paintPasswordFieldBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   594
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   595
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   596
90ce3da70b43 Initial load
duke
parents:
diff changeset
   597
        public void paintPasswordFieldBorder(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   598
                                             int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   599
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   600
                painter.paintPasswordFieldBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   601
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   602
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   603
90ce3da70b43 Initial load
duke
parents:
diff changeset
   604
        public void paintPopupMenuBackground(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   605
                                             int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   606
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   607
                painter.paintPopupMenuBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   608
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   609
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   610
90ce3da70b43 Initial load
duke
parents:
diff changeset
   611
        public void paintPopupMenuBorder(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   612
                                         int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   613
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   614
                painter.paintPopupMenuBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   615
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   616
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   617
90ce3da70b43 Initial load
duke
parents:
diff changeset
   618
        public void paintProgressBarBackground(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   619
                                               int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   620
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   621
                painter.paintProgressBarBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   622
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   623
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   624
90ce3da70b43 Initial load
duke
parents:
diff changeset
   625
        public void paintProgressBarBackground(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   626
                                               int x, int y, int w, int h,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   627
                                               int orientation) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   628
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   629
                painter.paintProgressBarBackground(context, g, x, y, w, h,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   630
                                                   orientation);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   631
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   632
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   633
90ce3da70b43 Initial load
duke
parents:
diff changeset
   634
        public void paintProgressBarBorder(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   635
                                           int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   636
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   637
                painter.paintProgressBarBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   638
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   639
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   640
90ce3da70b43 Initial load
duke
parents:
diff changeset
   641
        public void paintProgressBarBorder(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   642
                                           int x, int y, int w, int h,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   643
                                           int orientation) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   644
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   645
                painter.paintProgressBarBorder(context, g, x, y, w, h,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   646
                                               orientation);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   647
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   648
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   649
90ce3da70b43 Initial load
duke
parents:
diff changeset
   650
        public void paintProgressBarForeground(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   651
                                               int x, int y, int w, int h,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   652
                                               int orientation) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   653
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   654
                painter.paintProgressBarForeground(context, g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   655
                                                   x, y, w, h, orientation);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   656
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   657
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   658
90ce3da70b43 Initial load
duke
parents:
diff changeset
   659
        public void paintRadioButtonMenuItemBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   660
                                                       Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   661
                                                       int x, int y,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   662
                                                       int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   663
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   664
                painter.paintRadioButtonMenuItemBackground(context, g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   665
                                                           x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   666
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   667
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   668
90ce3da70b43 Initial load
duke
parents:
diff changeset
   669
        public void paintRadioButtonMenuItemBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   670
                                                   Graphics g, int x, int y,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   671
                                                   int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   672
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   673
                painter.paintRadioButtonMenuItemBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   674
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   675
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   676
90ce3da70b43 Initial load
duke
parents:
diff changeset
   677
        public void paintRadioButtonBackground(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   678
                                               int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   679
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   680
                painter.paintRadioButtonBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   681
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   682
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   683
90ce3da70b43 Initial load
duke
parents:
diff changeset
   684
        public void paintRadioButtonBorder(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   685
                                           int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   686
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   687
                painter.paintRadioButtonBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   688
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   689
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   690
90ce3da70b43 Initial load
duke
parents:
diff changeset
   691
        public void paintRootPaneBackground(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   692
                                            int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   693
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   694
                painter.paintRootPaneBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   695
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   696
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   697
90ce3da70b43 Initial load
duke
parents:
diff changeset
   698
        public void paintRootPaneBorder(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   699
                                        int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   700
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   701
                painter.paintRootPaneBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   702
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   703
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   704
90ce3da70b43 Initial load
duke
parents:
diff changeset
   705
        public void paintScrollBarBackground(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   706
                                             int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   707
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   708
                painter.paintScrollBarBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   709
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   710
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   711
90ce3da70b43 Initial load
duke
parents:
diff changeset
   712
        public void paintScrollBarBackground(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   713
                                             int x, int y,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   714
                                             int w, int h, int orientation) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   715
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   716
                painter.paintScrollBarBackground(context, g, x, y, w, h,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   717
                                                 orientation);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   718
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   719
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   720
90ce3da70b43 Initial load
duke
parents:
diff changeset
   721
        public void paintScrollBarBorder(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   722
                                         int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   723
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   724
                painter.paintScrollBarBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   725
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   726
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   727
90ce3da70b43 Initial load
duke
parents:
diff changeset
   728
        public void paintScrollBarBorder(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   729
                                         int x, int y, int w, int h,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   730
                                         int orientation) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   731
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   732
                painter.paintScrollBarBorder(context, g, x, y, w, h,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   733
                                             orientation);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   734
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   735
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   736
90ce3da70b43 Initial load
duke
parents:
diff changeset
   737
        public void paintScrollBarThumbBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   738
                                                  Graphics g, int x, int y,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   739
                                                  int w, int h, int orientation) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   740
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   741
                painter.paintScrollBarThumbBackground(context, g, x, y, w, h,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   742
                                                      orientation);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   743
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   744
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   745
90ce3da70b43 Initial load
duke
parents:
diff changeset
   746
        public void paintScrollBarThumbBorder(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   747
                                              int x, int y, int w, int h,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   748
                                              int orientation) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   749
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   750
                painter.paintScrollBarThumbBorder(context, g, x, y, w, h,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   751
                                                  orientation);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   752
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   753
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   754
90ce3da70b43 Initial load
duke
parents:
diff changeset
   755
        public void paintScrollBarTrackBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   756
                                                  Graphics g, int x, int y,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   757
                                                  int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   758
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   759
                painter.paintScrollBarTrackBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   760
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   761
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   762
90ce3da70b43 Initial load
duke
parents:
diff changeset
   763
        public void paintScrollBarTrackBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   764
                                                  Graphics g, int x, int y,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   765
                                                  int w, int h,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   766
                                                  int orientation) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   767
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   768
                painter.paintScrollBarTrackBackground(context, g, x, y, w, h,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   769
                                                      orientation);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   770
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   771
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   772
90ce3da70b43 Initial load
duke
parents:
diff changeset
   773
        public void paintScrollBarTrackBorder(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   774
                                              int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   775
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   776
                painter.paintScrollBarTrackBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   777
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   778
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   779
90ce3da70b43 Initial load
duke
parents:
diff changeset
   780
        public void paintScrollBarTrackBorder(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   781
                                              int x, int y, int w, int h,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   782
                                              int orientation) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   783
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   784
                painter.paintScrollBarTrackBorder(context, g, x, y, w, h,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   785
                                                  orientation);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   786
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   787
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   788
90ce3da70b43 Initial load
duke
parents:
diff changeset
   789
        public void paintScrollPaneBackground(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   790
                                              int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   791
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   792
                painter.paintScrollPaneBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   793
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   794
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   795
90ce3da70b43 Initial load
duke
parents:
diff changeset
   796
        public void paintScrollPaneBorder(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   797
                                          int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   798
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   799
                painter.paintScrollPaneBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   800
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   801
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   802
90ce3da70b43 Initial load
duke
parents:
diff changeset
   803
        public void paintSeparatorBackground(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   804
                                             int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   805
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   806
                painter.paintSeparatorBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   807
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   808
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   809
90ce3da70b43 Initial load
duke
parents:
diff changeset
   810
        public void paintSeparatorBackground(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   811
                                             int x, int y, int w, int h,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   812
                                             int orientation) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   813
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   814
                painter.paintSeparatorBackground(context, g, x, y, w, h, orientation);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   815
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   816
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   817
90ce3da70b43 Initial load
duke
parents:
diff changeset
   818
        public void paintSeparatorBorder(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   819
                                         int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   820
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   821
                painter.paintSeparatorBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   822
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   823
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   824
90ce3da70b43 Initial load
duke
parents:
diff changeset
   825
        public void paintSeparatorBorder(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   826
                                         int x, int y, int w, int h, int orientation) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   827
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   828
                painter.paintSeparatorBorder(context, g, x, y, w, h, orientation);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   829
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   830
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   831
90ce3da70b43 Initial load
duke
parents:
diff changeset
   832
        public void paintSeparatorForeground(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   833
                                             int x, int y, int w, int h,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   834
                                             int orientation) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   835
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   836
                painter.paintSeparatorForeground(context, g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   837
                                                 x, y, w, h, orientation);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   838
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   839
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   840
90ce3da70b43 Initial load
duke
parents:
diff changeset
   841
        public void paintSliderBackground(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   842
                                          int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   843
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   844
                painter.paintSliderBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   845
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   846
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   847
90ce3da70b43 Initial load
duke
parents:
diff changeset
   848
        public void paintSliderBackground(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   849
                                          int x, int y, int w, int h,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   850
                                          int orientation) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   851
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   852
                painter.paintSliderBackground(context, g, x, y, w, h, orientation);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   853
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   854
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   855
90ce3da70b43 Initial load
duke
parents:
diff changeset
   856
        public void paintSliderBorder(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   857
                                      int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   858
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   859
                painter.paintSliderBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   860
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   861
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   862
90ce3da70b43 Initial load
duke
parents:
diff changeset
   863
        public void paintSliderBorder(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   864
                                      int x, int y, int w, int h,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   865
                                      int orientation) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   866
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   867
                painter.paintSliderBorder(context, g, x, y, w, h, orientation);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   868
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   869
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   870
90ce3da70b43 Initial load
duke
parents:
diff changeset
   871
        public void paintSliderThumbBackground(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   872
                                               int x, int y, int w, int h,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   873
                                               int orientation) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   874
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   875
                painter.paintSliderThumbBackground(context, g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   876
                                                   x, y, w, h, orientation);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   877
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   878
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   879
90ce3da70b43 Initial load
duke
parents:
diff changeset
   880
        public void paintSliderThumbBorder(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   881
                                           int x, int y, int w, int h,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   882
                                           int orientation) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   883
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   884
                painter.paintSliderThumbBorder(context, g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   885
                                               x, y, w, h, orientation);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   886
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   887
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   888
90ce3da70b43 Initial load
duke
parents:
diff changeset
   889
        public void paintSliderTrackBackground(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   890
                                               int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   891
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   892
                painter.paintSliderTrackBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   893
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   894
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   895
90ce3da70b43 Initial load
duke
parents:
diff changeset
   896
        public void paintSliderTrackBackground(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   897
                                               int x, int y, int w, int h,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   898
                                               int orientation) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   899
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   900
                painter.paintSliderTrackBackground(context, g, x, y, w, h,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   901
                                                   orientation);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   902
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   903
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   904
90ce3da70b43 Initial load
duke
parents:
diff changeset
   905
        public void paintSliderTrackBorder(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   906
                                           int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   907
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   908
                painter.paintSliderTrackBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   909
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   910
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   911
90ce3da70b43 Initial load
duke
parents:
diff changeset
   912
        public void paintSliderTrackBorder(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   913
                                           int x, int y, int w, int h,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   914
                                           int orientation) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   915
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   916
                painter.paintSliderTrackBorder(context, g, x, y, w, h,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   917
                                               orientation);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   918
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   919
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   920
90ce3da70b43 Initial load
duke
parents:
diff changeset
   921
        public void paintSpinnerBackground(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   922
                                           int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   923
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   924
                painter.paintSpinnerBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   925
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   926
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   927
90ce3da70b43 Initial load
duke
parents:
diff changeset
   928
        public void paintSpinnerBorder(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   929
                                       int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   930
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   931
                painter.paintSpinnerBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   932
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   933
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   934
90ce3da70b43 Initial load
duke
parents:
diff changeset
   935
        public void paintSplitPaneDividerBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   936
                                                    Graphics g, int x, int y,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   937
                                                    int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   938
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   939
                painter.paintSplitPaneDividerBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   940
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   941
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   942
90ce3da70b43 Initial load
duke
parents:
diff changeset
   943
        public void paintSplitPaneDividerBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   944
                                                    Graphics g, int x, int y,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   945
                                                    int w, int h,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   946
                                                    int orientation) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   947
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   948
                painter.paintSplitPaneDividerBackground(context, g, x, y, w, h,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   949
                                                        orientation);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   950
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   951
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   952
90ce3da70b43 Initial load
duke
parents:
diff changeset
   953
        public void paintSplitPaneDividerForeground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   954
                                                    Graphics g, int x, int y,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   955
                                                    int w, int h,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   956
                                                    int orientation) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   957
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   958
                painter.paintSplitPaneDividerForeground(context, g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   959
                                                        x, y, w, h,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   960
                                                        orientation);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   961
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   962
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   963
90ce3da70b43 Initial load
duke
parents:
diff changeset
   964
        public void paintSplitPaneDragDivider(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   965
                                              int x, int y,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   966
                                              int w, int h, int orientation) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   967
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   968
                painter.paintSplitPaneDragDivider(context, g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   969
                                                  x, y, w, h, orientation);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   970
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   971
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   972
90ce3da70b43 Initial load
duke
parents:
diff changeset
   973
        public void paintSplitPaneBackground(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   974
                                             int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   975
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   976
                painter.paintSplitPaneBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   977
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   978
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   979
90ce3da70b43 Initial load
duke
parents:
diff changeset
   980
        public void paintSplitPaneBorder(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   981
                                         int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   982
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   983
                painter.paintSplitPaneBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   984
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   985
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   986
90ce3da70b43 Initial load
duke
parents:
diff changeset
   987
        public void paintTabbedPaneBackground(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   988
                                              int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   989
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   990
                painter.paintTabbedPaneBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   991
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   992
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   993
90ce3da70b43 Initial load
duke
parents:
diff changeset
   994
        public void paintTabbedPaneBorder(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   995
                                          int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   996
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   997
                painter.paintTabbedPaneBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   998
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   999
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1000
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1001
        public void paintTabbedPaneTabAreaBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1002
                                                     Graphics g, int x, int y,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1003
                                                     int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1004
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1005
                painter.paintTabbedPaneTabAreaBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1006
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1007
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1008
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1009
        public void paintTabbedPaneTabAreaBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1010
                                                     Graphics g, int x, int y,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1011
                                                     int w, int h,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1012
                                                     int orientation) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1013
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1014
                painter.paintTabbedPaneTabAreaBackground(context, g, x, y, w, h,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1015
                                                         orientation);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1016
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1017
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1018
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1019
        public void paintTabbedPaneTabAreaBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1020
                                                 Graphics g, int x, int y,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1021
                                                 int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1022
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1023
                painter.paintTabbedPaneTabAreaBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1024
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1025
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1026
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1027
        public void paintTabbedPaneTabAreaBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1028
                                                 Graphics g, int x, int y,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1029
                                                 int w, int h, int orientation) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1030
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1031
                painter.paintTabbedPaneTabAreaBorder(context, g, x, y, w, h,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1032
                                                     orientation);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1033
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1034
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1035
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1036
        public void paintTabbedPaneTabBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1037
                                                 Graphics g, int x, int y,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1038
                                                 int w, int h, int tabIndex) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1039
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1040
                painter.paintTabbedPaneTabBackground(context, g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1041
                                                     x, y, w, h, tabIndex);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1042
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1043
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1044
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1045
        public void paintTabbedPaneTabBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1046
                                                 Graphics g, int x, int y,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1047
                                                 int w, int h, int tabIndex,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1048
                                                 int orientation) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1049
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1050
                painter.paintTabbedPaneTabBackground(context, g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1051
                                                     x, y, w, h, tabIndex,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1052
                                                     orientation);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1053
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1054
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1055
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1056
        public void paintTabbedPaneTabBorder(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1057
                                             int x, int y, int w, int h,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1058
                                             int tabIndex) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1059
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1060
                painter.paintTabbedPaneTabBorder(context, g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1061
                                                 x, y, w, h, tabIndex);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1062
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1063
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1064
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1065
        public void paintTabbedPaneTabBorder(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1066
                                             int x, int y, int w, int h,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1067
                                             int tabIndex, int orientation) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1068
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1069
                painter.paintTabbedPaneTabBorder(context, g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1070
                                                 x, y, w, h, tabIndex,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1071
                                                 orientation);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1072
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1073
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1074
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1075
        public void paintTabbedPaneContentBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1076
                                                     Graphics g, int x, int y,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1077
                                                     int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1078
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1079
                painter.paintTabbedPaneContentBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1080
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1081
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1082
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1083
        public void paintTabbedPaneContentBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1084
                                                 Graphics g, int x, int y,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1085
                                                 int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1086
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1087
                painter.paintTabbedPaneContentBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1088
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1089
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1090
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1091
        public void paintTableHeaderBackground(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1092
                                               int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1093
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1094
                painter.paintTableHeaderBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1095
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1096
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1097
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1098
        public void paintTableHeaderBorder(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1099
                                           int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1100
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1101
                painter.paintTableHeaderBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1102
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1103
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1104
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1105
        public void paintTableBackground(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1106
                                         int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1107
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1108
                painter.paintTableBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1109
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1110
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1111
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1112
        public void paintTableBorder(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1113
                                     int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1114
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1115
                painter.paintTableBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1116
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1117
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1118
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1119
        public void paintTextAreaBackground(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1120
                                            int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1121
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1122
                painter.paintTextAreaBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1123
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1124
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1125
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1126
        public void paintTextAreaBorder(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1127
                                        int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1128
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1129
                painter.paintTextAreaBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1130
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1131
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1132
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1133
        public void paintTextPaneBackground(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1134
                                            int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1135
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1136
                painter.paintTextPaneBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1137
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1138
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1139
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1140
        public void paintTextPaneBorder(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1141
                                        int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1142
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1143
                painter.paintTextPaneBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1144
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1145
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1146
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1147
        public void paintTextFieldBackground(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1148
                                             int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1149
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1150
                painter.paintTextFieldBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1151
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1152
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1153
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1154
        public void paintTextFieldBorder(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1155
                                         int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1156
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1157
                painter.paintTextFieldBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1158
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1159
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1160
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1161
        public void paintToggleButtonBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1162
                                                Graphics g, int x, int y,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1163
                                                int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1164
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1165
                painter.paintToggleButtonBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1166
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1167
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1168
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1169
        public void paintToggleButtonBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1170
                                            Graphics g, int x, int y,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1171
                                            int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1172
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1173
                painter.paintToggleButtonBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1174
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1175
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1176
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1177
        public void paintToolBarBackground(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1178
                                           int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1179
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1180
                painter.paintToolBarBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1181
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1182
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1183
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1184
        public void paintToolBarBackground(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1185
                                           int x, int y, int w, int h,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1186
                                           int orientation) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1187
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1188
                painter.paintToolBarBackground(context, g, x, y, w, h,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1189
                                               orientation);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1190
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1191
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1192
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1193
        public void paintToolBarBorder(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1194
                                       int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1195
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1196
                painter.paintToolBarBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1197
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1198
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1199
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1200
        public void paintToolBarBorder(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1201
                                       int x, int y, int w, int h,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1202
                                       int orientation) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1203
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1204
                painter.paintToolBarBorder(context, g, x, y, w, h, orientation);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1205
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1206
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1207
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1208
        public void paintToolBarContentBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1209
                                                  Graphics g, int x, int y,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1210
                                                  int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1211
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1212
                painter.paintToolBarContentBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1213
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1214
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1215
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1216
        public void paintToolBarContentBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1217
                                                  Graphics g, int x, int y,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1218
                                                  int w, int h,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1219
                                                  int orientation) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1220
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1221
                painter.paintToolBarContentBackground(context, g, x, y, w, h,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1222
                                                      orientation);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1223
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1224
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1225
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1226
        public void paintToolBarContentBorder(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1227
                                              int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1228
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1229
                painter.paintToolBarContentBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1230
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1231
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1232
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1233
        public void paintToolBarContentBorder(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1234
                                              int x, int y, int w, int h,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1235
                                              int orientation) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1236
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1237
                painter.paintToolBarContentBorder(context, g, x, y, w, h,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1238
                                                  orientation);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1239
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1240
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1241
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1242
        public void paintToolBarDragWindowBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1243
                                                     Graphics g, int x, int y,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1244
                                                     int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1245
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1246
                painter.paintToolBarDragWindowBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1247
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1248
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1249
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1250
        public void paintToolBarDragWindowBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1251
                                                     Graphics g, int x, int y,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1252
                                                     int w, int h,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1253
                                                     int orientation) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1254
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1255
                painter.paintToolBarDragWindowBackground(context, g, x, y, w, h,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1256
                                                         orientation);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1257
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1258
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1259
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1260
        public void paintToolBarDragWindowBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1261
                                                 Graphics g, int x, int y,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1262
                                                 int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1263
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1264
                painter.paintToolBarDragWindowBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1265
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1266
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1267
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1268
        public void paintToolBarDragWindowBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1269
                                                 Graphics g, int x, int y,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1270
                                                 int w, int h,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1271
                                                 int orientation) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1272
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1273
                painter.paintToolBarDragWindowBorder(context, g, x, y, w, h,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1274
                                                     orientation);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1275
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1276
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1277
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1278
        public void paintToolTipBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1279
                                           Graphics g, int x, int y,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1280
                                           int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1281
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1282
                painter.paintToolTipBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1283
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1284
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1285
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1286
        public void paintToolTipBorder(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1287
                                       int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1288
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1289
                painter.paintToolTipBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1290
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1291
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1292
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1293
        public void paintTreeBackground(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1294
                                        int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1295
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1296
                painter.paintTreeBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1297
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1298
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1299
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1300
        public void paintTreeBorder(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1301
                                    int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1302
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1303
                painter.paintTreeBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1304
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1305
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1306
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1307
        public void paintTreeCellBackground(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1308
                                            int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1309
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1310
                painter.paintTreeCellBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1311
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1312
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1313
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1314
        public void paintTreeCellBorder(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1315
                                        int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1316
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1317
                painter.paintTreeCellBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1318
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1319
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1320
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1321
        public void paintTreeCellFocus(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1322
                                       int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1323
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1324
                painter.paintTreeCellFocus(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1325
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1326
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1327
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1328
        public void paintViewportBackground(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1329
                                            int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1330
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1331
                painter.paintViewportBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1332
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1333
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1334
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1335
        public void paintViewportBorder(SynthContext context, Graphics g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1336
                                        int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1337
            for (SynthPainter painter: painters) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1338
                painter.paintViewportBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1339
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1340
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1341
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1342
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1343
    private static class DelegatingPainter extends SynthPainter {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1344
        private static SynthPainter getPainter(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1345
                                               String method, int direction) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1346
            return ((ParsedSynthStyle)context.getStyle()).getBestPainter(
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1347
                               context, method, direction);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1348
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1349
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1350
        public void paintArrowButtonBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1351
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1352
            getPainter(context, "arrowbuttonbackground", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1353
                paintArrowButtonBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1354
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1355
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1356
        public void paintArrowButtonBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1357
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1358
            getPainter(context, "arrowbuttonborder", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1359
                paintArrowButtonBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1360
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1361
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1362
        public void paintArrowButtonForeground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1363
                     Graphics g, int x, int y, int w, int h, int direction) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1364
            getPainter(context, "arrowbuttonforeground", direction).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1365
                paintArrowButtonForeground(context, g, x, y, w, h, direction);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1366
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1367
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1368
        public void paintButtonBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1369
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1370
            getPainter(context, "buttonbackground", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1371
                paintButtonBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1372
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1373
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1374
        public void paintButtonBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1375
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1376
            getPainter(context, "buttonborder", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1377
                paintButtonBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1378
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1379
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1380
        public void paintCheckBoxMenuItemBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1381
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1382
            getPainter(context, "checkboxmenuitembackground", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1383
                paintCheckBoxMenuItemBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1384
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1385
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1386
        public void paintCheckBoxMenuItemBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1387
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1388
            getPainter(context, "checkboxmenuitemborder", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1389
                paintCheckBoxMenuItemBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1390
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1391
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1392
        public void paintCheckBoxBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1393
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1394
            getPainter(context, "checkboxbackground", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1395
                paintCheckBoxBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1396
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1397
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1398
        public void paintCheckBoxBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1399
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1400
            getPainter(context, "checkboxborder", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1401
                paintCheckBoxBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1402
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1403
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1404
        public void paintColorChooserBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1405
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1406
            getPainter(context, "colorchooserbackground", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1407
                paintColorChooserBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1408
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1409
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1410
        public void paintColorChooserBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1411
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1412
            getPainter(context, "colorchooserborder", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1413
                paintColorChooserBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1414
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1415
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1416
        public void paintComboBoxBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1417
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1418
            getPainter(context, "comboboxbackground", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1419
                paintComboBoxBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1420
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1421
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1422
        public void paintComboBoxBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1423
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1424
            getPainter(context, "comboboxborder", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1425
                paintComboBoxBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1426
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1427
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1428
        public void paintDesktopIconBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1429
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1430
            getPainter(context, "desktopiconbackground", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1431
                paintDesktopIconBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1432
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1433
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1434
        public void paintDesktopIconBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1435
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1436
            getPainter(context, "desktopiconborder", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1437
                paintDesktopIconBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1438
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1439
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1440
        public void paintDesktopPaneBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1441
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1442
            getPainter(context, "desktoppanebackground", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1443
                paintDesktopPaneBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1444
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1445
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1446
        public void paintDesktopPaneBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1447
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1448
            getPainter(context, "desktoppaneborder", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1449
                paintDesktopPaneBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1450
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1451
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1452
        public void paintEditorPaneBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1453
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1454
            getPainter(context, "editorpanebackground", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1455
                paintEditorPaneBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1456
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1457
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1458
        public void paintEditorPaneBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1459
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1460
            getPainter(context, "editorpaneborder", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1461
                paintEditorPaneBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1462
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1463
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1464
        public void paintFileChooserBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1465
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1466
            getPainter(context, "filechooserbackground", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1467
                paintFileChooserBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1468
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1469
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1470
        public void paintFileChooserBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1471
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1472
            getPainter(context, "filechooserborder", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1473
                paintFileChooserBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1474
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1475
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1476
        public void paintFormattedTextFieldBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1477
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1478
            getPainter(context, "formattedtextfieldbackground", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1479
                paintFormattedTextFieldBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1480
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1481
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1482
        public void paintFormattedTextFieldBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1483
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1484
            getPainter(context, "formattedtextfieldborder", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1485
                paintFormattedTextFieldBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1486
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1487
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1488
        public void paintInternalFrameTitlePaneBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1489
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1490
            getPainter(context, "internalframetitlepanebackground", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1491
                paintInternalFrameTitlePaneBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1492
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1493
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1494
        public void paintInternalFrameTitlePaneBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1495
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1496
            getPainter(context, "internalframetitlepaneborder", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1497
                paintInternalFrameTitlePaneBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1498
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1499
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1500
        public void paintInternalFrameBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1501
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1502
            getPainter(context, "internalframebackground", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1503
                paintInternalFrameBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1504
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1505
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1506
        public void paintInternalFrameBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1507
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1508
            getPainter(context, "internalframeborder", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1509
                paintInternalFrameBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1510
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1511
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1512
        public void paintLabelBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1513
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1514
            getPainter(context, "labelbackground", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1515
                paintLabelBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1516
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1517
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1518
        public void paintLabelBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1519
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1520
            getPainter(context, "labelborder", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1521
                paintLabelBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1522
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1523
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1524
        public void paintListBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1525
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1526
            getPainter(context, "listbackground", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1527
                paintListBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1528
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1529
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1530
        public void paintListBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1531
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1532
            getPainter(context, "listborder", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1533
                paintListBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1534
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1535
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1536
        public void paintMenuBarBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1537
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1538
            getPainter(context, "menubarbackground", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1539
                paintMenuBarBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1540
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1541
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1542
        public void paintMenuBarBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1543
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1544
            getPainter(context, "menubarborder", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1545
                paintMenuBarBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1546
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1547
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1548
        public void paintMenuItemBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1549
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1550
            getPainter(context, "menuitembackground", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1551
                paintMenuItemBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1552
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1553
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1554
        public void paintMenuItemBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1555
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1556
            getPainter(context, "menuitemborder", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1557
                paintMenuItemBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1558
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1559
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1560
        public void paintMenuBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1561
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1562
            getPainter(context, "menubackground", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1563
                paintMenuBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1564
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1565
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1566
        public void paintMenuBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1567
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1568
            getPainter(context, "menuborder", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1569
                paintMenuBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1570
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1571
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1572
        public void paintOptionPaneBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1573
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1574
            getPainter(context, "optionpanebackground", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1575
                paintOptionPaneBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1576
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1577
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1578
        public void paintOptionPaneBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1579
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1580
            getPainter(context, "optionpaneborder", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1581
                paintOptionPaneBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1582
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1583
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1584
        public void paintPanelBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1585
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1586
            getPainter(context, "panelbackground", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1587
                paintPanelBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1588
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1589
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1590
        public void paintPanelBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1591
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1592
            getPainter(context, "panelborder", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1593
                paintPanelBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1594
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1595
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1596
        public void paintPasswordFieldBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1597
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1598
            getPainter(context, "passwordfieldbackground", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1599
                paintPasswordFieldBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1600
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1601
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1602
        public void paintPasswordFieldBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1603
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1604
            getPainter(context, "passwordfieldborder", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1605
                paintPasswordFieldBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1606
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1607
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1608
        public void paintPopupMenuBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1609
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1610
            getPainter(context, "popupmenubackground", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1611
                paintPopupMenuBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1612
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1613
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1614
        public void paintPopupMenuBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1615
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1616
            getPainter(context, "popupmenuborder", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1617
                paintPopupMenuBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1618
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1619
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1620
        public void paintProgressBarBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1621
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1622
            getPainter(context, "progressbarbackground", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1623
                paintProgressBarBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1624
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1625
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1626
        public void paintProgressBarBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1627
                     Graphics g, int x, int y, int w, int h, int direction) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1628
            getPainter(context, "progressbarbackground", direction).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1629
                paintProgressBarBackground(context, g, x, y, w, h, direction);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1630
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1631
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1632
        public void paintProgressBarBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1633
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1634
            getPainter(context, "progressbarborder", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1635
                paintProgressBarBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1636
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1637
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1638
        public void paintProgressBarBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1639
                     Graphics g, int x, int y, int w, int h, int direction) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1640
            getPainter(context, "progressbarborder", direction).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1641
                paintProgressBarBorder(context, g, x, y, w, h, direction);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1642
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1643
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1644
        public void paintProgressBarForeground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1645
                     Graphics g, int x, int y, int w, int h, int direction) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1646
            getPainter(context, "progressbarforeground", direction).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1647
                paintProgressBarForeground(context, g, x, y, w, h, direction);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1648
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1649
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1650
        public void paintRadioButtonMenuItemBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1651
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1652
            getPainter(context, "radiobuttonmenuitembackground", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1653
                paintRadioButtonMenuItemBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1654
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1655
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1656
        public void paintRadioButtonMenuItemBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1657
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1658
            getPainter(context, "radiobuttonmenuitemborder", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1659
                paintRadioButtonMenuItemBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1660
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1661
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1662
        public void paintRadioButtonBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1663
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1664
            getPainter(context, "radiobuttonbackground", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1665
                paintRadioButtonBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1666
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1667
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1668
        public void paintRadioButtonBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1669
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1670
            getPainter(context, "radiobuttonborder", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1671
                paintRadioButtonBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1672
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1673
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1674
        public void paintRootPaneBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1675
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1676
            getPainter(context, "rootpanebackground", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1677
                paintRootPaneBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1678
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1679
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1680
        public void paintRootPaneBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1681
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1682
            getPainter(context, "rootpaneborder", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1683
                paintRootPaneBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1684
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1685
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1686
        public void paintScrollBarBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1687
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1688
            getPainter(context, "scrollbarbackground", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1689
               paintScrollBarBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1690
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1691
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1692
        public void paintScrollBarBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1693
                      Graphics g, int x, int y, int w, int h, int direction) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1694
            getPainter(context, "scrollbarbackground", direction).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1695
                paintScrollBarBackground(context, g, x, y, w, h, direction);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1696
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1697
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1698
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1699
        public void paintScrollBarBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1700
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1701
            getPainter(context, "scrollbarborder", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1702
                paintScrollBarBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1703
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1704
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1705
        public void paintScrollBarBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1706
                                         Graphics g, int x, int y, int w, int h,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1707
                                         int orientation) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1708
            getPainter(context, "scrollbarborder", orientation).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1709
                paintScrollBarBorder(context, g, x, y, w, h, orientation);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1710
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1711
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1712
        public void paintScrollBarThumbBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1713
                     Graphics g, int x, int y, int w, int h, int direction) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1714
            getPainter(context, "scrollbarthumbbackground", direction).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1715
                paintScrollBarThumbBackground(context, g, x, y, w, h, direction);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1716
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1717
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1718
        public void paintScrollBarThumbBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1719
                     Graphics g, int x, int y, int w, int h, int direction) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1720
            getPainter(context, "scrollbarthumbborder", direction).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1721
                paintScrollBarThumbBorder(context, g, x, y, w, h, direction);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1722
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1723
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1724
        public void paintScrollBarTrackBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1725
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1726
            getPainter(context, "scrollbartrackbackground", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1727
                paintScrollBarTrackBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1728
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1729
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1730
        public void paintScrollBarTrackBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1731
                     Graphics g, int x, int y, int w, int h, int direction) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1732
             getPainter(context, "scrollbartrackbackground", direction).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1733
                 paintScrollBarTrackBackground(context, g, x, y, w, h, direction);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1734
         }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1735
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1736
        public void paintScrollBarTrackBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1737
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1738
            getPainter(context, "scrollbartrackborder", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1739
                paintScrollBarTrackBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1740
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1741
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1742
        public void paintScrollBarTrackBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1743
                     Graphics g, int x, int y, int w, int h, int orientation) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1744
            getPainter(context, "scrollbartrackborder", orientation).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1745
                paintScrollBarTrackBorder(context, g, x, y, w, h, orientation);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1746
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1747
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1748
        public void paintScrollPaneBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1749
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1750
            getPainter(context, "scrollpanebackground", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1751
                paintScrollPaneBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1752
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1753
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1754
        public void paintScrollPaneBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1755
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1756
            getPainter(context, "scrollpaneborder", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1757
                paintScrollPaneBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1758
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1759
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1760
        public void paintSeparatorBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1761
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1762
            getPainter(context, "separatorbackground", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1763
                paintSeparatorBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1764
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1765
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1766
        public void paintSeparatorBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1767
                     Graphics g, int x, int y, int w, int h, int orientation) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1768
            getPainter(context, "separatorbackground", orientation).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1769
                paintSeparatorBackground(context, g, x, y, w, h, orientation);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1770
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1771
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1772
        public void paintSeparatorBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1773
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1774
            getPainter(context, "separatorborder", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1775
                paintSeparatorBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1776
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1777
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1778
        public void paintSeparatorBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1779
                     Graphics g, int x, int y, int w, int h, int orientation) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1780
            getPainter(context, "separatorborder", orientation).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1781
                paintSeparatorBorder(context, g, x, y, w, h, orientation);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1782
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1783
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1784
        public void paintSeparatorForeground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1785
                     Graphics g, int x, int y, int w, int h, int direction) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1786
            getPainter(context, "separatorforeground", direction).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1787
                paintSeparatorForeground(context, g, x, y, w, h, direction);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1788
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1789
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1790
        public void paintSliderBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1791
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1792
            getPainter(context, "sliderbackground", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1793
                paintSliderBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1794
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1795
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1796
        public void paintSliderBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1797
                     Graphics g, int x, int y, int w, int h, int direction) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1798
            getPainter(context, "sliderbackground", direction).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1799
            paintSliderBackground(context, g, x, y, w, h, direction);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1800
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1801
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1802
        public void paintSliderBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1803
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1804
            getPainter(context, "sliderborder", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1805
                paintSliderBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1806
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1807
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1808
        public void paintSliderBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1809
                     Graphics g, int x, int y, int w, int h, int direction) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1810
            getPainter(context, "sliderborder", direction).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1811
                paintSliderBorder(context, g, x, y, w, h, direction);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1812
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1813
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1814
        public void paintSliderThumbBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1815
                     Graphics g, int x, int y, int w, int h, int direction) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1816
            getPainter(context, "sliderthumbbackground", direction).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1817
                paintSliderThumbBackground(context, g, x, y, w, h, direction);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1818
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1819
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1820
        public void paintSliderThumbBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1821
                     Graphics g, int x, int y, int w, int h, int direction) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1822
            getPainter(context, "sliderthumbborder", direction).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1823
                paintSliderThumbBorder(context, g, x, y, w, h, direction);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1824
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1825
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1826
        public void paintSliderTrackBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1827
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1828
            getPainter(context, "slidertrackbackground", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1829
                paintSliderTrackBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1830
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1831
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1832
        public void paintSliderTrackBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1833
                     Graphics g, int x, int y, int w, int h, int direction) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1834
            getPainter(context, "slidertrackbackground", direction).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1835
                paintSliderTrackBackground(context, g, x, y, w, h, direction);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1836
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1837
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1838
        public void paintSliderTrackBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1839
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1840
            getPainter(context, "slidertrackborder", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1841
                paintSliderTrackBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1842
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1843
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1844
        public void paintSliderTrackBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1845
                     Graphics g, int x, int y, int w, int h, int direction) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1846
            getPainter(context, "slidertrackborder", direction).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1847
            paintSliderTrackBorder(context, g, x, y, w, h, direction);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1848
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1849
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1850
        public void paintSpinnerBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1851
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1852
            getPainter(context, "spinnerbackground", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1853
                paintSpinnerBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1854
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1855
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1856
        public void paintSpinnerBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1857
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1858
            getPainter(context, "spinnerborder", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1859
                paintSpinnerBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1860
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1861
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1862
        public void paintSplitPaneDividerBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1863
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1864
            getPainter(context, "splitpanedividerbackground", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1865
                paintSplitPaneDividerBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1866
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1867
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1868
        public void paintSplitPaneDividerBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1869
                     Graphics g, int x, int y, int w, int h, int orientation) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1870
            getPainter(context, "splitpanedividerbackground", orientation).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1871
            paintSplitPaneDividerBackground(context, g, x, y, w, h, orientation);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1872
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1873
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1874
        public void paintSplitPaneDividerForeground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1875
                     Graphics g, int x, int y, int w, int h, int direction) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1876
            getPainter(context, "splitpanedividerforeground", direction).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1877
                paintSplitPaneDividerForeground(context, g,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1878
                                                x, y, w, h, direction);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1879
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1880
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1881
        public void paintSplitPaneDragDivider(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1882
                     Graphics g, int x, int y, int w, int h, int direction) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1883
            getPainter(context, "splitpanedragdivider", direction).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1884
                paintSplitPaneDragDivider(context, g, x, y, w, h, direction);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1885
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1886
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1887
        public void paintSplitPaneBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1888
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1889
            getPainter(context, "splitpanebackground", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1890
                paintSplitPaneBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1891
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1892
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1893
        public void paintSplitPaneBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1894
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1895
            getPainter(context, "splitpaneborder", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1896
                paintSplitPaneBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1897
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1898
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1899
        public void paintTabbedPaneBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1900
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1901
            getPainter(context, "tabbedpanebackground", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1902
                paintTabbedPaneBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1903
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1904
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1905
        public void paintTabbedPaneBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1906
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1907
            getPainter(context, "tabbedpaneborder", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1908
                paintTabbedPaneBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1909
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1910
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1911
        public void paintTabbedPaneTabAreaBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1912
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1913
            getPainter(context, "tabbedpanetabareabackground", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1914
                paintTabbedPaneTabAreaBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1915
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1916
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1917
        public void paintTabbedPaneTabAreaBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1918
                     Graphics g, int x, int y, int w, int h, int orientation) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1919
            getPainter(context, "tabbedpanetabareabackground", orientation).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1920
                paintTabbedPaneTabAreaBackground(context, g, x, y, w, h,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1921
                                                 orientation);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1922
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1923
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1924
        public void paintTabbedPaneTabAreaBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1925
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1926
            getPainter(context, "tabbedpanetabareaborder", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1927
                paintTabbedPaneTabAreaBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1928
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1929
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1930
        public void paintTabbedPaneTabAreaBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1931
                     Graphics g, int x, int y, int w, int h, int orientation) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1932
            getPainter(context, "tabbedpanetabareaborder", orientation).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1933
                paintTabbedPaneTabAreaBorder(context, g, x, y, w, h,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1934
                                             orientation);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1935
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1936
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1937
        public void paintTabbedPaneTabBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1938
                     Graphics g, int x, int y, int w, int h, int direction) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1939
            getPainter(context, "tabbedpanetabbackground", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1940
                paintTabbedPaneTabBackground(context, g, x, y, w, h, direction);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1941
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1942
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1943
        public void paintTabbedPaneTabBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1944
                     Graphics g, int x, int y, int w, int h, int tabIndex,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1945
                     int direction) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1946
            getPainter(context, "tabbedpanetabbackground", direction).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1947
                paintTabbedPaneTabBackground(context, g, x, y, w, h, tabIndex,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1948
                                             direction);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1949
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1950
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1951
        public void paintTabbedPaneTabBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1952
                     Graphics g, int x, int y, int w, int h, int direction) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1953
            getPainter(context, "tabbedpanetabborder", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1954
                paintTabbedPaneTabBorder(context, g, x, y, w, h, direction);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1955
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1956
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1957
        public void paintTabbedPaneTabBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1958
                     Graphics g, int x, int y, int w, int h, int tabIndex,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1959
                     int direction) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1960
            getPainter(context, "tabbedpanetabborder", direction).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1961
                paintTabbedPaneTabBorder(context, g, x, y, w, h, tabIndex,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1962
                                         direction);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1963
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1964
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1965
        public void paintTabbedPaneContentBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1966
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1967
            getPainter(context, "tabbedpanecontentbackground", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1968
                paintTabbedPaneContentBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1969
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1970
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1971
        public void paintTabbedPaneContentBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1972
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1973
            getPainter(context, "tabbedpanecontentborder", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1974
                paintTabbedPaneContentBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1975
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1976
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1977
        public void paintTableHeaderBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1978
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1979
            getPainter(context, "tableheaderbackground", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1980
                paintTableHeaderBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1981
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1982
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1983
        public void paintTableHeaderBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1984
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1985
            getPainter(context, "tableheaderborder", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1986
                paintTableHeaderBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1987
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1988
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1989
        public void paintTableBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1990
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1991
            getPainter(context, "tablebackground", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1992
                paintTableBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1993
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1994
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1995
        public void paintTableBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1996
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1997
            getPainter(context, "tableborder", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1998
                paintTableBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1999
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2000
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2001
        public void paintTextAreaBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2002
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2003
            getPainter(context, "textareabackground", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2004
                paintTextAreaBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2005
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2006
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2007
        public void paintTextAreaBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2008
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2009
            getPainter(context, "textareaborder", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2010
                paintTextAreaBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2011
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2012
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2013
        public void paintTextPaneBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2014
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2015
            getPainter(context, "textpanebackground", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2016
                paintTextPaneBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2017
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2018
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2019
        public void paintTextPaneBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2020
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2021
            getPainter(context, "textpaneborder", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2022
                paintTextPaneBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2023
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2024
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2025
        public void paintTextFieldBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2026
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2027
            getPainter(context, "textfieldbackground", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2028
                paintTextFieldBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2029
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2030
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2031
        public void paintTextFieldBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2032
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2033
            getPainter(context, "textfieldborder", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2034
                paintTextFieldBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2035
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2036
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2037
        public void paintToggleButtonBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2038
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2039
            getPainter(context, "togglebuttonbackground", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2040
                paintToggleButtonBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2041
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2042
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2043
        public void paintToggleButtonBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2044
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2045
            getPainter(context, "togglebuttonborder", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2046
                paintToggleButtonBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2047
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2048
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2049
        public void paintToolBarBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2050
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2051
            getPainter(context, "toolbarbackground", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2052
                paintToolBarBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2053
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2054
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2055
        public void paintToolBarBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2056
                     Graphics g, int x, int y, int w, int h, int orientation) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2057
            getPainter(context, "toolbarbackground", orientation).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2058
                paintToolBarBackground(context, g, x, y, w, h, orientation);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2059
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2060
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2061
        public void paintToolBarBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2062
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2063
            getPainter(context, "toolbarborder", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2064
                paintToolBarBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2065
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2066
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2067
        public void paintToolBarBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2068
                     Graphics g, int x, int y, int w, int h, int orientation) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2069
            getPainter(context, "toolbarborder", orientation).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2070
                paintToolBarBorder(context, g, x, y, w, h, orientation);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2071
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2072
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2073
        public void paintToolBarContentBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2074
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2075
            getPainter(context, "toolbarcontentbackground", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2076
                paintToolBarContentBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2077
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2078
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2079
        public void paintToolBarContentBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2080
                     Graphics g, int x, int y, int w, int h, int orientation) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2081
            getPainter(context, "toolbarcontentbackground", orientation).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2082
                paintToolBarContentBackground(context, g, x, y, w, h, orientation);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2083
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2084
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2085
        public void paintToolBarContentBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2086
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2087
            getPainter(context, "toolbarcontentborder", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2088
                paintToolBarContentBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2089
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2090
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2091
        public void paintToolBarContentBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2092
                     Graphics g, int x, int y, int w, int h, int orientation) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2093
            getPainter(context, "toolbarcontentborder", orientation).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2094
                paintToolBarContentBorder(context, g, x, y, w, h, orientation);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2095
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2096
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2097
        public void paintToolBarDragWindowBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2098
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2099
            getPainter(context, "toolbardragwindowbackground", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2100
                paintToolBarDragWindowBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2101
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2102
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2103
        public void paintToolBarDragWindowBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2104
                     Graphics g, int x, int y, int w, int h, int orientation) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2105
            getPainter(context, "toolbardragwindowbackground", orientation).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2106
                paintToolBarDragWindowBackground(context, g, x, y, w, h, orientation);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2107
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2108
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2109
        public void paintToolBarDragWindowBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2110
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2111
            getPainter(context, "toolbardragwindowborder", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2112
                paintToolBarDragWindowBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2113
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2114
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2115
        public void paintToolBarDragWindowBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2116
                     Graphics g, int x, int y, int w, int h, int orientation) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2117
            getPainter(context, "toolbardragwindowborder", orientation).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2118
                paintToolBarDragWindowBorder(context, g, x, y, w, h, orientation);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2119
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2120
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2121
        public void paintToolTipBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2122
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2123
            getPainter(context, "tooltipbackground", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2124
                paintToolTipBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2125
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2126
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2127
        public void paintToolTipBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2128
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2129
            getPainter(context, "tooltipborder", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2130
                paintToolTipBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2131
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2132
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2133
        public void paintTreeBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2134
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2135
            getPainter(context, "treebackground", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2136
                paintTreeBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2137
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2138
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2139
        public void paintTreeBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2140
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2141
            getPainter(context, "treeborder", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2142
                paintTreeBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2143
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2144
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2145
        public void paintTreeCellBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2146
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2147
            getPainter(context, "treecellbackground", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2148
                paintTreeCellBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2149
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2150
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2151
        public void paintTreeCellBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2152
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2153
            getPainter(context, "treecellborder", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2154
                paintTreeCellBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2155
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2156
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2157
        public void paintTreeCellFocus(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2158
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2159
            getPainter(context, "treecellfocus", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2160
                paintTreeCellFocus(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2161
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2162
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2163
        public void paintViewportBackground(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2164
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2165
            getPainter(context, "viewportbackground", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2166
                paintViewportBackground(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2167
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2168
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2169
        public void paintViewportBorder(SynthContext context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2170
                     Graphics g, int x, int y, int w, int h) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2171
            getPainter(context, "viewportborder", -1).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2172
                paintViewportBorder(context, g, x, y, w, h);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2173
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2174
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2175
}