Source Code Cross Referenced for ParsedSynthStyle.java in  » 6.0-JDK-Core » swing » javax » swing » plaf » synth » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Home
Java Source Code / Java Documentation
1.6.0 JDK Core
2.6.0 JDK Modules
3.6.0 JDK Modules com.sun
4.6.0 JDK Modules com.sun.java
5.6.0 JDK Modules sun
6.6.0 JDK Platform
7.Ajax
8.Apache Harmony Java SE
9.Aspect oriented
10.Authentication Authorization
11.Blogger System
12.Build
13.Byte Code
14.Cache
15.Chart
16.Chat
17.Code Analyzer
18.Collaboration
19.Content Management System
20.Database Client
21.Database DBMS
22.Database JDBC Connection Pool
23.Database ORM
24.Development
25.EJB Server
26.ERP CRM Financial
27.ESB
28.Forum
29.Game
30.GIS
31.Graphic 3D
32.Graphic Library
33.Groupware
34.HTML Parser
35.IDE
36.IDE Eclipse
37.IDE Netbeans
38.Installer
39.Internationalization Localization
40.Inversion of Control
41.Issue Tracking
42.J2EE
43.J2ME
44.JBoss
45.JMS
46.JMX
47.Library
48.Mail Clients
49.Music
50.Net
51.Parser
52.PDF
53.Portal
54.Profiler
55.Project Management
56.Report
57.RSS RDF
58.Rule Engine
59.Science
60.Scripting
61.Search Engine
62.Security
63.Sevlet Container
64.Source Control
65.Swing Library
66.Template Engine
67.Test Coverage
68.Testing
69.UML
70.Web Crawler
71.Web Framework
72.Web Mail
73.Web Server
74.Web Services
75.Web Services apache cxf 2.2.6
76.Web Services AXIS2
77.Wiki Engine
78.Workflow Engines
79.XML
80.XML UI
Java Source Code / Java Documentation » 6.0 JDK Core » swing » javax.swing.plaf.synth 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


0001        /*
0002         * Copyright 2003-2005 Sun Microsystems, Inc.  All Rights Reserved.
0003         * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0004         *
0005         * This code is free software; you can redistribute it and/or modify it
0006         * under the terms of the GNU General Public License version 2 only, as
0007         * published by the Free Software Foundation.  Sun designates this
0008         * particular file as subject to the "Classpath" exception as provided
0009         * by Sun in the LICENSE file that accompanied this code.
0010         *
0011         * This code is distributed in the hope that it will be useful, but WITHOUT
0012         * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0013         * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
0014         * version 2 for more details (a copy is included in the LICENSE file that
0015         * accompanied this code).
0016         *
0017         * You should have received a copy of the GNU General Public License version
0018         * 2 along with this work; if not, write to the Free Software Foundation,
0019         * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0020         *
0021         * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
0022         * CA 95054 USA or visit www.sun.com if you need additional information or
0023         * have any questions.
0024         */
0025        package javax.swing.plaf.synth;
0026
0027        import java.awt.Graphics;
0028        import java.util.LinkedList;
0029
0030        import sun.swing.plaf.synth.DefaultSynthStyle;
0031
0032        /**
0033         * ParsedSynthStyle are the SynthStyle's that SynthParser creates.
0034         *
0035         * @version 1.13, 05/05/07
0036         * @author Scott Violet
0037         */
0038        class ParsedSynthStyle extends DefaultSynthStyle {
0039            private static SynthPainter DELEGATING_PAINTER_INSTANCE = new DelegatingPainter();
0040            private PainterInfo[] _painters;
0041
0042            private static PainterInfo[] mergePainterInfo(PainterInfo[] old,
0043                    PainterInfo[] newPI) {
0044                if (old == null) {
0045                    return newPI;
0046                }
0047                if (newPI == null) {
0048                    return old;
0049                }
0050                int oldLength = old.length;
0051                int newLength = newPI.length;
0052                int dups = 0;
0053                PainterInfo[] merged = new PainterInfo[oldLength + newLength];
0054                System.arraycopy(old, 0, merged, 0, oldLength);
0055                for (int newCounter = 0; newCounter < newLength; newCounter++) {
0056                    boolean found = false;
0057                    for (int oldCounter = 0; oldCounter < oldLength - dups; oldCounter++) {
0058                        if (newPI[newCounter].equalsPainter(old[oldCounter])) {
0059                            merged[oldCounter] = newPI[newCounter];
0060                            dups++;
0061                            found = true;
0062                            break;
0063                        }
0064                    }
0065                    if (!found) {
0066                        merged[oldLength + newCounter - dups] = newPI[newCounter];
0067                    }
0068                }
0069                if (dups > 0) {
0070                    PainterInfo[] tmp = merged;
0071                    merged = new PainterInfo[merged.length - dups];
0072                    System.arraycopy(tmp, 0, merged, 0, merged.length);
0073                }
0074                return merged;
0075            }
0076
0077            public ParsedSynthStyle() {
0078            }
0079
0080            public ParsedSynthStyle(DefaultSynthStyle style) {
0081                super (style);
0082                if (style instanceof  ParsedSynthStyle) {
0083                    ParsedSynthStyle pStyle = (ParsedSynthStyle) style;
0084
0085                    if (pStyle._painters != null) {
0086                        _painters = pStyle._painters;
0087                    }
0088                }
0089            }
0090
0091            public SynthPainter getPainter(SynthContext ss) {
0092                return DELEGATING_PAINTER_INSTANCE;
0093            }
0094
0095            public void setPainters(PainterInfo[] info) {
0096                _painters = info;
0097            }
0098
0099            public DefaultSynthStyle addTo(DefaultSynthStyle style) {
0100                if (!(style instanceof  ParsedSynthStyle)) {
0101                    style = new ParsedSynthStyle(style);
0102                }
0103                ParsedSynthStyle pStyle = (ParsedSynthStyle) super .addTo(style);
0104                pStyle._painters = mergePainterInfo(pStyle._painters, _painters);
0105                return pStyle;
0106            }
0107
0108            private SynthPainter getBestPainter(SynthContext context,
0109                    String method, int direction) {
0110                // Check the state info first
0111                StateInfo info = (StateInfo) getStateInfo(context
0112                        .getComponentState());
0113                SynthPainter painter;
0114                if (info != null) {
0115                    if ((painter = getBestPainter(info.getPainters(), method,
0116                            direction)) != null) {
0117                        return painter;
0118                    }
0119                }
0120                if ((painter = getBestPainter(_painters, method, direction)) != null) {
0121                    return painter;
0122                }
0123                return SynthPainter.NULL_PAINTER;
0124            }
0125
0126            private SynthPainter getBestPainter(PainterInfo[] info,
0127                    String method, int direction) {
0128                if (info != null) {
0129                    // Painter specified with no method
0130                    SynthPainter nullPainter = null;
0131                    // Painter specified for this method
0132                    SynthPainter methodPainter = null;
0133
0134                    for (int counter = info.length - 1; counter >= 0; counter--) {
0135                        PainterInfo pi = info[counter];
0136
0137                        if (pi.getMethod() == method) {
0138                            if (pi.getDirection() == direction) {
0139                                return pi.getPainter();
0140                            } else if (methodPainter == null
0141                                    && pi.getDirection() == -1) {
0142                                methodPainter = pi.getPainter();
0143                            }
0144                        } else if (nullPainter == null
0145                                && pi.getMethod() == null) {
0146                            nullPainter = pi.getPainter();
0147                        }
0148                    }
0149                    if (methodPainter != null) {
0150                        return methodPainter;
0151                    }
0152                    return nullPainter;
0153                }
0154                return null;
0155            }
0156
0157            public String toString() {
0158                StringBuffer text = new StringBuffer(super .toString());
0159                if (_painters != null) {
0160                    text.append(",painters=[");
0161                    for (int i = 0; i < +_painters.length; i++) {
0162                        text.append(_painters[i].toString());
0163                    }
0164                    text.append("]");
0165                }
0166                return text.toString();
0167            }
0168
0169            static class StateInfo extends DefaultSynthStyle.StateInfo {
0170                private PainterInfo[] _painterInfo;
0171
0172                public StateInfo() {
0173                }
0174
0175                public StateInfo(DefaultSynthStyle.StateInfo info) {
0176                    super (info);
0177                    if (info instanceof  StateInfo) {
0178                        _painterInfo = ((StateInfo) info)._painterInfo;
0179                    }
0180                }
0181
0182                public void setPainters(PainterInfo[] painterInfo) {
0183                    _painterInfo = painterInfo;
0184                }
0185
0186                public PainterInfo[] getPainters() {
0187                    return _painterInfo;
0188                }
0189
0190                public Object clone() {
0191                    return new StateInfo(this );
0192                }
0193
0194                public DefaultSynthStyle.StateInfo addTo(
0195                        DefaultSynthStyle.StateInfo info) {
0196                    if (!(info instanceof  StateInfo)) {
0197                        info = new StateInfo(info);
0198                    } else {
0199                        info = super .addTo(info);
0200                        StateInfo si = (StateInfo) info;
0201                        si._painterInfo = mergePainterInfo(si._painterInfo,
0202                                _painterInfo);
0203                    }
0204                    return info;
0205                }
0206
0207                public String toString() {
0208                    StringBuffer text = new StringBuffer(super .toString());
0209                    text.append(",painters=[");
0210                    if (_painterInfo != null) {
0211                        for (int i = 0; i < +_painterInfo.length; i++) {
0212                            text.append("    ").append(
0213                                    _painterInfo[i].toString());
0214                        }
0215                    }
0216                    text.append("]");
0217                    return text.toString();
0218                }
0219            }
0220
0221            static class PainterInfo {
0222                private String _method;
0223                private SynthPainter _painter;
0224                private int _direction;
0225
0226                PainterInfo(String method, SynthPainter painter, int direction) {
0227                    if (method != null) {
0228                        _method = method.intern();
0229                    }
0230                    _painter = painter;
0231                    _direction = direction;
0232                }
0233
0234                void addPainter(SynthPainter painter) {
0235                    if (!(_painter instanceof  AggregatePainter)) {
0236                        _painter = new AggregatePainter(_painter);
0237                    }
0238
0239                    ((AggregatePainter) _painter).addPainter(painter);
0240                }
0241
0242                String getMethod() {
0243                    return _method;
0244                }
0245
0246                SynthPainter getPainter() {
0247                    return _painter;
0248                }
0249
0250                int getDirection() {
0251                    return _direction;
0252                }
0253
0254                boolean equalsPainter(PainterInfo info) {
0255                    return (_method == info._method && _direction == info._direction);
0256                }
0257
0258                public String toString() {
0259                    return "PainterInfo {method=" + _method + ",direction="
0260                            + _direction + ",painter=" + _painter + "}";
0261                }
0262            }
0263
0264            private static class AggregatePainter extends SynthPainter {
0265                private java.util.List<SynthPainter> painters;
0266
0267                AggregatePainter(SynthPainter painter) {
0268                    painters = new LinkedList<SynthPainter>();
0269                    painters.add(painter);
0270                }
0271
0272                void addPainter(SynthPainter painter) {
0273                    if (painter != null) {
0274                        painters.add(painter);
0275                    }
0276                }
0277
0278                public void paintArrowButtonBackground(SynthContext context,
0279                        Graphics g, int x, int y, int w, int h) {
0280                    for (SynthPainter painter : painters) {
0281                        painter.paintArrowButtonBackground(context, g, x, y, w,
0282                                h);
0283                    }
0284                }
0285
0286                public void paintArrowButtonBorder(SynthContext context,
0287                        Graphics g, int x, int y, int w, int h) {
0288                    for (SynthPainter painter : painters) {
0289                        painter.paintArrowButtonBorder(context, g, x, y, w, h);
0290                    }
0291                }
0292
0293                public void paintArrowButtonForeground(SynthContext context,
0294                        Graphics g, int x, int y, int w, int h, int direction) {
0295                    for (SynthPainter painter : painters) {
0296                        painter.paintArrowButtonForeground(context, g, x, y, w,
0297                                h, direction);
0298                    }
0299                }
0300
0301                public void paintButtonBackground(SynthContext context,
0302                        Graphics g, int x, int y, int w, int h) {
0303                    for (SynthPainter painter : painters) {
0304                        painter.paintButtonBackground(context, g, x, y, w, h);
0305                    }
0306                }
0307
0308                public void paintButtonBorder(SynthContext context, Graphics g,
0309                        int x, int y, int w, int h) {
0310                    for (SynthPainter painter : painters) {
0311                        painter.paintButtonBorder(context, g, x, y, w, h);
0312                    }
0313                }
0314
0315                public void paintCheckBoxMenuItemBackground(
0316                        SynthContext context, Graphics g, int x, int y, int w,
0317                        int h) {
0318                    for (SynthPainter painter : painters) {
0319                        painter.paintCheckBoxMenuItemBackground(context, g, x,
0320                                y, w, h);
0321                    }
0322                }
0323
0324                public void paintCheckBoxMenuItemBorder(SynthContext context,
0325                        Graphics g, int x, int y, int w, int h) {
0326                    for (SynthPainter painter : painters) {
0327                        painter.paintCheckBoxMenuItemBorder(context, g, x, y,
0328                                w, h);
0329                    }
0330                }
0331
0332                public void paintCheckBoxBackground(SynthContext context,
0333                        Graphics g, int x, int y, int w, int h) {
0334                    for (SynthPainter painter : painters) {
0335                        painter.paintCheckBoxBackground(context, g, x, y, w, h);
0336                    }
0337                }
0338
0339                public void paintCheckBoxBorder(SynthContext context,
0340                        Graphics g, int x, int y, int w, int h) {
0341                    for (SynthPainter painter : painters) {
0342                        painter.paintCheckBoxBorder(context, g, x, y, w, h);
0343                    }
0344                }
0345
0346                public void paintColorChooserBackground(SynthContext context,
0347                        Graphics g, int x, int y, int w, int h) {
0348                    for (SynthPainter painter : painters) {
0349                        painter.paintColorChooserBackground(context, g, x, y,
0350                                w, h);
0351                    }
0352                }
0353
0354                public void paintColorChooserBorder(SynthContext context,
0355                        Graphics g, int x, int y, int w, int h) {
0356                    for (SynthPainter painter : painters) {
0357                        painter.paintColorChooserBorder(context, g, x, y, w, h);
0358                    }
0359                }
0360
0361                public void paintComboBoxBackground(SynthContext context,
0362                        Graphics g, int x, int y, int w, int h) {
0363                    for (SynthPainter painter : painters) {
0364                        painter.paintComboBoxBackground(context, g, x, y, w, h);
0365                    }
0366                }
0367
0368                public void paintComboBoxBorder(SynthContext context,
0369                        Graphics g, int x, int y, int w, int h) {
0370                    for (SynthPainter painter : painters) {
0371                        painter.paintComboBoxBorder(context, g, x, y, w, h);
0372                    }
0373                }
0374
0375                public void paintDesktopIconBackground(SynthContext context,
0376                        Graphics g, int x, int y, int w, int h) {
0377                    for (SynthPainter painter : painters) {
0378                        painter.paintDesktopIconBackground(context, g, x, y, w,
0379                                h);
0380                    }
0381                }
0382
0383                public void paintDesktopIconBorder(SynthContext context,
0384                        Graphics g, int x, int y, int w, int h) {
0385                    for (SynthPainter painter : painters) {
0386                        painter.paintDesktopIconBorder(context, g, x, y, w, h);
0387                    }
0388                }
0389
0390                public void paintDesktopPaneBackground(SynthContext context,
0391                        Graphics g, int x, int y, int w, int h) {
0392                    for (SynthPainter painter : painters) {
0393                        painter.paintDesktopPaneBackground(context, g, x, y, w,
0394                                h);
0395                    }
0396                }
0397
0398                public void paintDesktopPaneBorder(SynthContext context,
0399                        Graphics g, int x, int y, int w, int h) {
0400                    for (SynthPainter painter : painters) {
0401                        painter.paintDesktopPaneBorder(context, g, x, y, w, h);
0402                    }
0403                }
0404
0405                public void paintEditorPaneBackground(SynthContext context,
0406                        Graphics g, int x, int y, int w, int h) {
0407                    for (SynthPainter painter : painters) {
0408                        painter.paintEditorPaneBackground(context, g, x, y, w,
0409                                h);
0410                    }
0411                }
0412
0413                public void paintEditorPaneBorder(SynthContext context,
0414                        Graphics g, int x, int y, int w, int h) {
0415                    for (SynthPainter painter : painters) {
0416                        painter.paintEditorPaneBorder(context, g, x, y, w, h);
0417                    }
0418                }
0419
0420                public void paintFileChooserBackground(SynthContext context,
0421                        Graphics g, int x, int y, int w, int h) {
0422                    for (SynthPainter painter : painters) {
0423                        painter.paintFileChooserBackground(context, g, x, y, w,
0424                                h);
0425                    }
0426                }
0427
0428                public void paintFileChooserBorder(SynthContext context,
0429                        Graphics g, int x, int y, int w, int h) {
0430                    for (SynthPainter painter : painters) {
0431                        painter.paintFileChooserBorder(context, g, x, y, w, h);
0432                    }
0433                }
0434
0435                public void paintFormattedTextFieldBackground(
0436                        SynthContext context, Graphics g, int x, int y, int w,
0437                        int h) {
0438                    for (SynthPainter painter : painters) {
0439                        painter.paintFormattedTextFieldBackground(context, g,
0440                                x, y, w, h);
0441                    }
0442                }
0443
0444                public void paintFormattedTextFieldBorder(SynthContext context,
0445                        Graphics g, int x, int y, int w, int h) {
0446                    for (SynthPainter painter : painters) {
0447                        painter.paintFormattedTextFieldBorder(context, g, x, y,
0448                                w, h);
0449                    }
0450                }
0451
0452                public void paintInternalFrameTitlePaneBackground(
0453                        SynthContext context, Graphics g, int x, int y, int w,
0454                        int h) {
0455                    for (SynthPainter painter : painters) {
0456                        painter.paintInternalFrameTitlePaneBackground(context,
0457                                g, x, y, w, h);
0458                    }
0459                }
0460
0461                public void paintInternalFrameTitlePaneBorder(
0462                        SynthContext context, Graphics g, int x, int y, int w,
0463                        int h) {
0464                    for (SynthPainter painter : painters) {
0465                        painter.paintInternalFrameTitlePaneBorder(context, g,
0466                                x, y, w, h);
0467                    }
0468                }
0469
0470                public void paintInternalFrameBackground(SynthContext context,
0471                        Graphics g, int x, int y, int w, int h) {
0472                    for (SynthPainter painter : painters) {
0473                        painter.paintInternalFrameBackground(context, g, x, y,
0474                                w, h);
0475                    }
0476                }
0477
0478                public void paintInternalFrameBorder(SynthContext context,
0479                        Graphics g, int x, int y, int w, int h) {
0480                    for (SynthPainter painter : painters) {
0481                        painter
0482                                .paintInternalFrameBorder(context, g, x, y, w,
0483                                        h);
0484                    }
0485                }
0486
0487                public void paintLabelBackground(SynthContext context,
0488                        Graphics g, int x, int y, int w, int h) {
0489                    for (SynthPainter painter : painters) {
0490                        painter.paintLabelBackground(context, g, x, y, w, h);
0491                    }
0492                }
0493
0494                public void paintLabelBorder(SynthContext context, Graphics g,
0495                        int x, int y, int w, int h) {
0496                    for (SynthPainter painter : painters) {
0497                        painter.paintLabelBorder(context, g, x, y, w, h);
0498                    }
0499                }
0500
0501                public void paintListBackground(SynthContext context,
0502                        Graphics g, int x, int y, int w, int h) {
0503                    for (SynthPainter painter : painters) {
0504                        painter.paintListBackground(context, g, x, y, w, h);
0505                    }
0506                }
0507
0508                public void paintListBorder(SynthContext context, Graphics g,
0509                        int x, int y, int w, int h) {
0510                    for (SynthPainter painter : painters) {
0511                        painter.paintListBorder(context, g, x, y, w, h);
0512                    }
0513                }
0514
0515                public void paintMenuBarBackground(SynthContext context,
0516                        Graphics g, int x, int y, int w, int h) {
0517                    for (SynthPainter painter : painters) {
0518                        painter.paintMenuBarBackground(context, g, x, y, w, h);
0519                    }
0520                }
0521
0522                public void paintMenuBarBorder(SynthContext context,
0523                        Graphics g, int x, int y, int w, int h) {
0524                    for (SynthPainter painter : painters) {
0525                        painter.paintMenuBarBorder(context, g, x, y, w, h);
0526                    }
0527                }
0528
0529                public void paintMenuItemBackground(SynthContext context,
0530                        Graphics g, int x, int y, int w, int h) {
0531                    for (SynthPainter painter : painters) {
0532                        painter.paintMenuItemBackground(context, g, x, y, w, h);
0533                    }
0534                }
0535
0536                public void paintMenuItemBorder(SynthContext context,
0537                        Graphics g, int x, int y, int w, int h) {
0538                    for (SynthPainter painter : painters) {
0539                        painter.paintMenuItemBorder(context, g, x, y, w, h);
0540                    }
0541                }
0542
0543                public void paintMenuBackground(SynthContext context,
0544                        Graphics g, int x, int y, int w, int h) {
0545                    for (SynthPainter painter : painters) {
0546                        painter.paintMenuBackground(context, g, x, y, w, h);
0547                    }
0548                }
0549
0550                public void paintMenuBorder(SynthContext context, Graphics g,
0551                        int x, int y, int w, int h) {
0552                    for (SynthPainter painter : painters) {
0553                        painter.paintMenuBorder(context, g, x, y, w, h);
0554                    }
0555                }
0556
0557                public void paintOptionPaneBackground(SynthContext context,
0558                        Graphics g, int x, int y, int w, int h) {
0559                    for (SynthPainter painter : painters) {
0560                        painter.paintOptionPaneBackground(context, g, x, y, w,
0561                                h);
0562                    }
0563                }
0564
0565                public void paintOptionPaneBorder(SynthContext context,
0566                        Graphics g, int x, int y, int w, int h) {
0567                    for (SynthPainter painter : painters) {
0568                        painter.paintOptionPaneBorder(context, g, x, y, w, h);
0569                    }
0570                }
0571
0572                public void paintPanelBackground(SynthContext context,
0573                        Graphics g, int x, int y, int w, int h) {
0574                    for (SynthPainter painter : painters) {
0575                        painter.paintPanelBackground(context, g, x, y, w, h);
0576                    }
0577                }
0578
0579                public void paintPanelBorder(SynthContext context, Graphics g,
0580                        int x, int y, int w, int h) {
0581                    for (SynthPainter painter : painters) {
0582                        painter.paintPanelBorder(context, g, x, y, w, h);
0583                    }
0584                }
0585
0586                public void paintPasswordFieldBackground(SynthContext context,
0587                        Graphics g, int x, int y, int w, int h) {
0588                    for (SynthPainter painter : painters) {
0589                        painter.paintPasswordFieldBackground(context, g, x, y,
0590                                w, h);
0591                    }
0592                }
0593
0594                public void paintPasswordFieldBorder(SynthContext context,
0595                        Graphics g, int x, int y, int w, int h) {
0596                    for (SynthPainter painter : painters) {
0597                        painter
0598                                .paintPasswordFieldBorder(context, g, x, y, w,
0599                                        h);
0600                    }
0601                }
0602
0603                public void paintPopupMenuBackground(SynthContext context,
0604                        Graphics g, int x, int y, int w, int h) {
0605                    for (SynthPainter painter : painters) {
0606                        painter
0607                                .paintPopupMenuBackground(context, g, x, y, w,
0608                                        h);
0609                    }
0610                }
0611
0612                public void paintPopupMenuBorder(SynthContext context,
0613                        Graphics g, int x, int y, int w, int h) {
0614                    for (SynthPainter painter : painters) {
0615                        painter.paintPopupMenuBorder(context, g, x, y, w, h);
0616                    }
0617                }
0618
0619                public void paintProgressBarBackground(SynthContext context,
0620                        Graphics g, int x, int y, int w, int h) {
0621                    for (SynthPainter painter : painters) {
0622                        painter.paintProgressBarBackground(context, g, x, y, w,
0623                                h);
0624                    }
0625                }
0626
0627                public void paintProgressBarBackground(SynthContext context,
0628                        Graphics g, int x, int y, int w, int h, int orientation) {
0629                    for (SynthPainter painter : painters) {
0630                        painter.paintProgressBarBackground(context, g, x, y, w,
0631                                h, orientation);
0632                    }
0633                }
0634
0635                public void paintProgressBarBorder(SynthContext context,
0636                        Graphics g, int x, int y, int w, int h) {
0637                    for (SynthPainter painter : painters) {
0638                        painter.paintProgressBarBorder(context, g, x, y, w, h);
0639                    }
0640                }
0641
0642                public void paintProgressBarBorder(SynthContext context,
0643                        Graphics g, int x, int y, int w, int h, int orientation) {
0644                    for (SynthPainter painter : painters) {
0645                        painter.paintProgressBarBorder(context, g, x, y, w, h,
0646                                orientation);
0647                    }
0648                }
0649
0650                public void paintProgressBarForeground(SynthContext context,
0651                        Graphics g, int x, int y, int w, int h, int orientation) {
0652                    for (SynthPainter painter : painters) {
0653                        painter.paintProgressBarForeground(context, g, x, y, w,
0654                                h, orientation);
0655                    }
0656                }
0657
0658                public void paintRadioButtonMenuItemBackground(
0659                        SynthContext context, Graphics g, int x, int y, int w,
0660                        int h) {
0661                    for (SynthPainter painter : painters) {
0662                        painter.paintRadioButtonMenuItemBackground(context, g,
0663                                x, y, w, h);
0664                    }
0665                }
0666
0667                public void paintRadioButtonMenuItemBorder(
0668                        SynthContext context, Graphics g, int x, int y, int w,
0669                        int h) {
0670                    for (SynthPainter painter : painters) {
0671                        painter.paintRadioButtonMenuItemBorder(context, g, x,
0672                                y, w, h);
0673                    }
0674                }
0675
0676                public void paintRadioButtonBackground(SynthContext context,
0677                        Graphics g, int x, int y, int w, int h) {
0678                    for (SynthPainter painter : painters) {
0679                        painter.paintRadioButtonBackground(context, g, x, y, w,
0680                                h);
0681                    }
0682                }
0683
0684                public void paintRadioButtonBorder(SynthContext context,
0685                        Graphics g, int x, int y, int w, int h) {
0686                    for (SynthPainter painter : painters) {
0687                        painter.paintRadioButtonBorder(context, g, x, y, w, h);
0688                    }
0689                }
0690
0691                public void paintRootPaneBackground(SynthContext context,
0692                        Graphics g, int x, int y, int w, int h) {
0693                    for (SynthPainter painter : painters) {
0694                        painter.paintRootPaneBackground(context, g, x, y, w, h);
0695                    }
0696                }
0697
0698                public void paintRootPaneBorder(SynthContext context,
0699                        Graphics g, int x, int y, int w, int h) {
0700                    for (SynthPainter painter : painters) {
0701                        painter.paintRootPaneBorder(context, g, x, y, w, h);
0702                    }
0703                }
0704
0705                public void paintScrollBarBackground(SynthContext context,
0706                        Graphics g, int x, int y, int w, int h) {
0707                    for (SynthPainter painter : painters) {
0708                        painter
0709                                .paintScrollBarBackground(context, g, x, y, w,
0710                                        h);
0711                    }
0712                }
0713
0714                public void paintScrollBarBackground(SynthContext context,
0715                        Graphics g, int x, int y, int w, int h, int orientation) {
0716                    for (SynthPainter painter : painters) {
0717                        painter.paintScrollBarBackground(context, g, x, y, w,
0718                                h, orientation);
0719                    }
0720                }
0721
0722                public void paintScrollBarBorder(SynthContext context,
0723                        Graphics g, int x, int y, int w, int h) {
0724                    for (SynthPainter painter : painters) {
0725                        painter.paintScrollBarBorder(context, g, x, y, w, h);
0726                    }
0727                }
0728
0729                public void paintScrollBarBorder(SynthContext context,
0730                        Graphics g, int x, int y, int w, int h, int orientation) {
0731                    for (SynthPainter painter : painters) {
0732                        painter.paintScrollBarBorder(context, g, x, y, w, h,
0733                                orientation);
0734                    }
0735                }
0736
0737                public void paintScrollBarThumbBackground(SynthContext context,
0738                        Graphics g, int x, int y, int w, int h, int orientation) {
0739                    for (SynthPainter painter : painters) {
0740                        painter.paintScrollBarThumbBackground(context, g, x, y,
0741                                w, h, orientation);
0742                    }
0743                }
0744
0745                public void paintScrollBarThumbBorder(SynthContext context,
0746                        Graphics g, int x, int y, int w, int h, int orientation) {
0747                    for (SynthPainter painter : painters) {
0748                        painter.paintScrollBarThumbBorder(context, g, x, y, w,
0749                                h, orientation);
0750                    }
0751                }
0752
0753                public void paintScrollBarTrackBackground(SynthContext context,
0754                        Graphics g, int x, int y, int w, int h) {
0755                    for (SynthPainter painter : painters) {
0756                        painter.paintScrollBarTrackBackground(context, g, x, y,
0757                                w, h);
0758                    }
0759                }
0760
0761                public void paintScrollBarTrackBackground(SynthContext context,
0762                        Graphics g, int x, int y, int w, int h, int orientation) {
0763                    for (SynthPainter painter : painters) {
0764                        painter.paintScrollBarTrackBackground(context, g, x, y,
0765                                w, h, orientation);
0766                    }
0767                }
0768
0769                public void paintScrollBarTrackBorder(SynthContext context,
0770                        Graphics g, int x, int y, int w, int h) {
0771                    for (SynthPainter painter : painters) {
0772                        painter.paintScrollBarTrackBorder(context, g, x, y, w,
0773                                h);
0774                    }
0775                }
0776
0777                public void paintScrollBarTrackBorder(SynthContext context,
0778                        Graphics g, int x, int y, int w, int h, int orientation) {
0779                    for (SynthPainter painter : painters) {
0780                        painter.paintScrollBarTrackBorder(context, g, x, y, w,
0781                                h, orientation);
0782                    }
0783                }
0784
0785                public void paintScrollPaneBackground(SynthContext context,
0786                        Graphics g, int x, int y, int w, int h) {
0787                    for (SynthPainter painter : painters) {
0788                        painter.paintScrollPaneBackground(context, g, x, y, w,
0789                                h);
0790                    }
0791                }
0792
0793                public void paintScrollPaneBorder(SynthContext context,
0794                        Graphics g, int x, int y, int w, int h) {
0795                    for (SynthPainter painter : painters) {
0796                        painter.paintScrollPaneBorder(context, g, x, y, w, h);
0797                    }
0798                }
0799
0800                public void paintSeparatorBackground(SynthContext context,
0801                        Graphics g, int x, int y, int w, int h) {
0802                    for (SynthPainter painter : painters) {
0803                        painter
0804                                .paintSeparatorBackground(context, g, x, y, w,
0805                                        h);
0806                    }
0807                }
0808
0809                public void paintSeparatorBackground(SynthContext context,
0810                        Graphics g, int x, int y, int w, int h, int orientation) {
0811                    for (SynthPainter painter : painters) {
0812                        painter.paintSeparatorBackground(context, g, x, y, w,
0813                                h, orientation);
0814                    }
0815                }
0816
0817                public void paintSeparatorBorder(SynthContext context,
0818                        Graphics g, int x, int y, int w, int h) {
0819                    for (SynthPainter painter : painters) {
0820                        painter.paintSeparatorBorder(context, g, x, y, w, h);
0821                    }
0822                }
0823
0824                public void paintSeparatorBorder(SynthContext context,
0825                        Graphics g, int x, int y, int w, int h, int orientation) {
0826                    for (SynthPainter painter : painters) {
0827                        painter.paintSeparatorBorder(context, g, x, y, w, h,
0828                                orientation);
0829                    }
0830                }
0831
0832                public void paintSeparatorForeground(SynthContext context,
0833                        Graphics g, int x, int y, int w, int h, int orientation) {
0834                    for (SynthPainter painter : painters) {
0835                        painter.paintSeparatorForeground(context, g, x, y, w,
0836                                h, orientation);
0837                    }
0838                }
0839
0840                public void paintSliderBackground(SynthContext context,
0841                        Graphics g, int x, int y, int w, int h) {
0842                    for (SynthPainter painter : painters) {
0843                        painter.paintSliderBackground(context, g, x, y, w, h);
0844                    }
0845                }
0846
0847                public void paintSliderBackground(SynthContext context,
0848                        Graphics g, int x, int y, int w, int h, int orientation) {
0849                    for (SynthPainter painter : painters) {
0850                        painter.paintSliderBackground(context, g, x, y, w, h,
0851                                orientation);
0852                    }
0853                }
0854
0855                public void paintSliderBorder(SynthContext context, Graphics g,
0856                        int x, int y, int w, int h) {
0857                    for (SynthPainter painter : painters) {
0858                        painter.paintSliderBorder(context, g, x, y, w, h);
0859                    }
0860                }
0861
0862                public void paintSliderBorder(SynthContext context, Graphics g,
0863                        int x, int y, int w, int h, int orientation) {
0864                    for (SynthPainter painter : painters) {
0865                        painter.paintSliderBorder(context, g, x, y, w, h,
0866                                orientation);
0867                    }
0868                }
0869
0870                public void paintSliderThumbBackground(SynthContext context,
0871                        Graphics g, int x, int y, int w, int h, int orientation) {
0872                    for (SynthPainter painter : painters) {
0873                        painter.paintSliderThumbBackground(context, g, x, y, w,
0874                                h, orientation);
0875                    }
0876                }
0877
0878                public void paintSliderThumbBorder(SynthContext context,
0879                        Graphics g, int x, int y, int w, int h, int orientation) {
0880                    for (SynthPainter painter : painters) {
0881                        painter.paintSliderThumbBorder(context, g, x, y, w, h,
0882                                orientation);
0883                    }
0884                }
0885
0886                public void paintSliderTrackBackground(SynthContext context,
0887                        Graphics g, int x, int y, int w, int h) {
0888                    for (SynthPainter painter : painters) {
0889                        painter.paintSliderTrackBackground(context, g, x, y, w,
0890                                h);
0891                    }
0892                }
0893
0894                public void paintSliderTrackBackground(SynthContext context,
0895                        Graphics g, int x, int y, int w, int h, int orientation) {
0896                    for (SynthPainter painter : painters) {
0897                        painter.paintSliderTrackBackground(context, g, x, y, w,
0898                                h, orientation);
0899                    }
0900                }
0901
0902                public void paintSliderTrackBorder(SynthContext context,
0903                        Graphics g, int x, int y, int w, int h) {
0904                    for (SynthPainter painter : painters) {
0905                        painter.paintSliderTrackBorder(context, g, x, y, w, h);
0906                    }
0907                }
0908
0909                public void paintSliderTrackBorder(SynthContext context,
0910                        Graphics g, int x, int y, int w, int h, int orientation) {
0911                    for (SynthPainter painter : painters) {
0912                        painter.paintSliderTrackBorder(context, g, x, y, w, h,
0913                                orientation);
0914                    }
0915                }
0916
0917                public void paintSpinnerBackground(SynthContext context,
0918                        Graphics g, int x, int y, int w, int h) {
0919                    for (SynthPainter painter : painters) {
0920                        painter.paintSpinnerBackground(context, g, x, y, w, h);
0921                    }
0922                }
0923
0924                public void paintSpinnerBorder(SynthContext context,
0925                        Graphics g, int x, int y, int w, int h) {
0926                    for (SynthPainter painter : painters) {
0927                        painter.paintSpinnerBorder(context, g, x, y, w, h);
0928                    }
0929                }
0930
0931                public void paintSplitPaneDividerBackground(
0932                        SynthContext context, Graphics g, int x, int y, int w,
0933                        int h) {
0934                    for (SynthPainter painter : painters) {
0935                        painter.paintSplitPaneDividerBackground(context, g, x,
0936                                y, w, h);
0937                    }
0938                }
0939
0940                public void paintSplitPaneDividerBackground(
0941                        SynthContext context, Graphics g, int x, int y, int w,
0942                        int h, int orientation) {
0943                    for (SynthPainter painter : painters) {
0944                        painter.paintSplitPaneDividerBackground(context, g, x,
0945                                y, w, h, orientation);
0946                    }
0947                }
0948
0949                public void paintSplitPaneDividerForeground(
0950                        SynthContext context, Graphics g, int x, int y, int w,
0951                        int h, int orientation) {
0952                    for (SynthPainter painter : painters) {
0953                        painter.paintSplitPaneDividerForeground(context, g, x,
0954                                y, w, h, orientation);
0955                    }
0956                }
0957
0958                public void paintSplitPaneDragDivider(SynthContext context,
0959                        Graphics g, int x, int y, int w, int h, int orientation) {
0960                    for (SynthPainter painter : painters) {
0961                        painter.paintSplitPaneDragDivider(context, g, x, y, w,
0962                                h, orientation);
0963                    }
0964                }
0965
0966                public void paintSplitPaneBackground(SynthContext context,
0967                        Graphics g, int x, int y, int w, int h) {
0968                    for (SynthPainter painter : painters) {
0969                        painter
0970                                .paintSplitPaneBackground(context, g, x, y, w,
0971                                        h);
0972                    }
0973                }
0974
0975                public void paintSplitPaneBorder(SynthContext context,
0976                        Graphics g, int x, int y, int w, int h) {
0977                    for (SynthPainter painter : painters) {
0978                        painter.paintSplitPaneBorder(context, g, x, y, w, h);
0979                    }
0980                }
0981
0982                public void paintTabbedPaneBackground(SynthContext context,
0983                        Graphics g, int x, int y, int w, int h) {
0984                    for (SynthPainter painter : painters) {
0985                        painter.paintTabbedPaneBackground(context, g, x, y, w,
0986                                h);
0987                    }
0988                }
0989
0990                public void paintTabbedPaneBorder(SynthContext context,
0991                        Graphics g, int x, int y, int w, int h) {
0992                    for (SynthPainter painter : painters) {
0993                        painter.paintTabbedPaneBorder(context, g, x, y, w, h);
0994                    }
0995                }
0996
0997                public void paintTabbedPaneTabAreaBackground(
0998                        SynthContext context, Graphics g, int x, int y, int w,
0999                        int h) {
1000                    for (SynthPainter painter : painters) {
1001                        painter.paintTabbedPaneTabAreaBackground(context, g, x,
1002                                y, w, h);
1003                    }
1004                }
1005
1006                public void paintTabbedPaneTabAreaBackground(
1007                        SynthContext context, Graphics g, int x, int y, int w,
1008                        int h, int orientation) {
1009                    for (SynthPainter painter : painters) {
1010                        painter.paintTabbedPaneTabAreaBackground(context, g, x,
1011                                y, w, h, orientation);
1012                    }
1013                }
1014
1015                public void paintTabbedPaneTabAreaBorder(SynthContext context,
1016                        Graphics g, int x, int y, int w, int h) {
1017                    for (SynthPainter painter : painters) {
1018                        painter.paintTabbedPaneTabAreaBorder(context, g, x, y,
1019                                w, h);
1020                    }
1021                }
1022
1023                public void paintTabbedPaneTabAreaBorder(SynthContext context,
1024                        Graphics g, int x, int y, int w, int h, int orientation) {
1025                    for (SynthPainter painter : painters) {
1026                        painter.paintTabbedPaneTabAreaBorder(context, g, x, y,
1027                                w, h, orientation);
1028                    }
1029                }
1030
1031                public void paintTabbedPaneTabBackground(SynthContext context,
1032                        Graphics g, int x, int y, int w, int h, int tabIndex) {
1033                    for (SynthPainter painter : painters) {
1034                        painter.paintTabbedPaneTabBackground(context, g, x, y,
1035                                w, h, tabIndex);
1036                    }
1037                }
1038
1039                public void paintTabbedPaneTabBackground(SynthContext context,
1040                        Graphics g, int x, int y, int w, int h, int tabIndex,
1041                        int orientation) {
1042                    for (SynthPainter painter : painters) {
1043                        painter.paintTabbedPaneTabBackground(context, g, x, y,
1044                                w, h, tabIndex, orientation);
1045                    }
1046                }
1047
1048                public void paintTabbedPaneTabBorder(SynthContext context,
1049                        Graphics g, int x, int y, int w, int h, int tabIndex) {
1050                    for (SynthPainter painter : painters) {
1051                        painter.paintTabbedPaneTabBorder(context, g, x, y, w,
1052                                h, tabIndex);
1053                    }
1054                }
1055
1056                public void paintTabbedPaneTabBorder(SynthContext context,
1057                        Graphics g, int x, int y, int w, int h, int tabIndex,
1058                        int orientation) {
1059                    for (SynthPainter painter : painters) {
1060                        painter.paintTabbedPaneTabBorder(context, g, x, y, w,
1061                                h, tabIndex, orientation);
1062                    }
1063                }
1064
1065                public void paintTabbedPaneContentBackground(
1066                        SynthContext context, Graphics g, int x, int y, int w,
1067                        int h) {
1068                    for (SynthPainter painter : painters) {
1069                        painter.paintTabbedPaneContentBackground(context, g, x,
1070                                y, w, h);
1071                    }
1072                }
1073
1074                public void paintTabbedPaneContentBorder(SynthContext context,
1075                        Graphics g, int x, int y, int w, int h) {
1076                    for (SynthPainter painter : painters) {
1077                        painter.paintTabbedPaneContentBorder(context, g, x, y,
1078                                w, h);
1079                    }
1080                }
1081
1082                public void paintTableHeaderBackground(SynthContext context,
1083                        Graphics g, int x, int y, int w, int h) {
1084                    for (SynthPainter painter : painters) {
1085                        painter.paintTableHeaderBackground(context, g, x, y, w,
1086                                h);
1087                    }
1088                }
1089
1090                public void paintTableHeaderBorder(SynthContext context,
1091                        Graphics g, int x, int y, int w, int h) {
1092                    for (SynthPainter painter : painters) {
1093                        painter.paintTableHeaderBorder(context, g, x, y, w, h);
1094                    }
1095                }
1096
1097                public void paintTableBackground(SynthContext context,
1098                        Graphics g, int x, int y, int w, int h) {
1099                    for (SynthPainter painter : painters) {
1100                        painter.paintTableBackground(context, g, x, y, w, h);
1101                    }
1102                }
1103
1104                public void paintTableBorder(SynthContext context, Graphics g,
1105                        int x, int y, int w, int h) {
1106                    for (SynthPainter painter : painters) {
1107                        painter.paintTableBorder(context, g, x, y, w, h);
1108                    }
1109                }
1110
1111                public void paintTextAreaBackground(SynthContext context,
1112                        Graphics g, int x, int y, int w, int h) {
1113                    for (SynthPainter painter : painters) {
1114                        painter.paintTextAreaBackground(context, g, x, y, w, h);
1115                    }
1116                }
1117
1118                public void paintTextAreaBorder(SynthContext context,
1119                        Graphics g, int x, int y, int w, int h) {
1120                    for (SynthPainter painter : painters) {
1121                        painter.paintTextAreaBorder(context, g, x, y, w, h);
1122                    }
1123                }
1124
1125                public void paintTextPaneBackground(SynthContext context,
1126                        Graphics g, int x, int y, int w, int h) {
1127                    for (SynthPainter painter : painters) {
1128                        painter.paintTextPaneBackground(context, g, x, y, w, h);
1129                    }
1130                }
1131
1132                public void paintTextPaneBorder(SynthContext context,
1133                        Graphics g, int x, int y, int w, int h) {
1134                    for (SynthPainter painter : painters) {
1135                        painter.paintTextPaneBorder(context, g, x, y, w, h);
1136                    }
1137                }
1138
1139                public void paintTextFieldBackground(SynthContext context,
1140                        Graphics g, int x, int y, int w, int h) {
1141                    for (SynthPainter painter : painters) {
1142                        painter
1143                                .paintTextFieldBackground(context, g, x, y, w,
1144                                        h);
1145                    }
1146                }
1147
1148                public void paintTextFieldBorder(SynthContext context,
1149                        Graphics g, int x, int y, int w, int h) {
1150                    for (SynthPainter painter : painters) {
1151                        painter.paintTextFieldBorder(context, g, x, y, w, h);
1152                    }
1153                }
1154
1155                public void paintToggleButtonBackground(SynthContext context,
1156                        Graphics g, int x, int y, int w, int h) {
1157                    for (SynthPainter painter : painters) {
1158                        painter.paintToggleButtonBackground(context, g, x, y,
1159                                w, h);
1160                    }
1161                }
1162
1163                public void paintToggleButtonBorder(SynthContext context,
1164                        Graphics g, int x, int y, int w, int h) {
1165                    for (SynthPainter painter : painters) {
1166                        painter.paintToggleButtonBorder(context, g, x, y, w, h);
1167                    }
1168                }
1169
1170                public void paintToolBarBackground(SynthContext context,
1171                        Graphics g, int x, int y, int w, int h) {
1172                    for (SynthPainter painter : painters) {
1173                        painter.paintToolBarBackground(context, g, x, y, w, h);
1174                    }
1175                }
1176
1177                public void paintToolBarBackground(SynthContext context,
1178                        Graphics g, int x, int y, int w, int h, int orientation) {
1179                    for (SynthPainter painter : painters) {
1180                        painter.paintToolBarBackground(context, g, x, y, w, h,
1181                                orientation);
1182                    }
1183                }
1184
1185                public void paintToolBarBorder(SynthContext context,
1186                        Graphics g, int x, int y, int w, int h) {
1187                    for (SynthPainter painter : painters) {
1188                        painter.paintToolBarBorder(context, g, x, y, w, h);
1189                    }
1190                }
1191
1192                public void paintToolBarBorder(SynthContext context,
1193                        Graphics g, int x, int y, int w, int h, int orientation) {
1194                    for (SynthPainter painter : painters) {
1195                        painter.paintToolBarBorder(context, g, x, y, w, h,
1196                                orientation);
1197                    }
1198                }
1199
1200                public void paintToolBarContentBackground(SynthContext context,
1201                        Graphics g, int x, int y, int w, int h) {
1202                    for (SynthPainter painter : painters) {
1203                        painter.paintToolBarContentBackground(context, g, x, y,
1204                                w, h);
1205                    }
1206                }
1207
1208                public void paintToolBarContentBackground(SynthContext context,
1209                        Graphics g, int x, int y, int w, int h, int orientation) {
1210                    for (SynthPainter painter : painters) {
1211                        painter.paintToolBarContentBackground(context, g, x, y,
1212                                w, h, orientation);
1213                    }
1214                }
1215
1216                public void paintToolBarContentBorder(SynthContext context,
1217                        Graphics g, int x, int y, int w, int h) {
1218                    for (SynthPainter painter : painters) {
1219                        painter.paintToolBarContentBorder(context, g, x, y, w,
1220                                h);
1221                    }
1222                }
1223
1224                public void paintToolBarContentBorder(SynthContext context,
1225                        Graphics g, int x, int y, int w, int h, int orientation) {
1226                    for (SynthPainter painter : painters) {
1227                        painter.paintToolBarContentBorder(context, g, x, y, w,
1228                                h, orientation);
1229                    }
1230                }
1231
1232                public void paintToolBarDragWindowBackground(
1233                        SynthContext context, Graphics g, int x, int y, int w,
1234                        int h) {
1235                    for (SynthPainter painter : painters) {
1236                        painter.paintToolBarDragWindowBackground(context, g, x,
1237                                y, w, h);
1238                    }
1239                }
1240
1241                public void paintToolBarDragWindowBackground(
1242                        SynthContext context, Graphics g, int x, int y, int w,
1243                        int h, int orientation) {
1244                    for (SynthPainter painter : painters) {
1245                        painter.paintToolBarDragWindowBackground(context, g, x,
1246                                y, w, h, orientation);
1247                    }
1248                }
1249
1250                public void paintToolBarDragWindowBorder(SynthContext context,
1251                        Graphics g, int x, int y, int w, int h) {
1252                    for (SynthPainter painter : painters) {
1253                        painter.paintToolBarDragWindowBorder(context, g, x, y,
1254                                w, h);
1255                    }
1256                }
1257
1258                public void paintToolBarDragWindowBorder(SynthContext context,
1259                        Graphics g, int x, int y, int w, int h, int orientation) {
1260                    for (SynthPainter painter : painters) {
1261                        painter.paintToolBarDragWindowBorder(context, g, x, y,
1262                                w, h, orientation);
1263                    }
1264                }
1265
1266                public void paintToolTipBackground(SynthContext context,
1267                        Graphics g, int x, int y, int w, int h) {
1268                    for (SynthPainter painter : painters) {
1269                        painter.paintToolTipBackground(context, g, x, y, w, h);
1270                    }
1271                }
1272
1273                public void paintToolTipBorder(SynthContext context,
1274                        Graphics g, int x, int y, int w, int h) {
1275                    for (SynthPainter painter : painters) {
1276                        painter.paintToolTipBorder(context, g, x, y, w, h);
1277                    }
1278                }
1279
1280                public void paintTreeBackground(SynthContext context,
1281                        Graphics g, int x, int y, int w, int h) {
1282                    for (SynthPainter painter : painters) {
1283                        painter.paintTreeBackground(context, g, x, y, w, h);
1284                    }
1285                }
1286
1287                public void paintTreeBorder(SynthContext context, Graphics g,
1288                        int x, int y, int w, int h) {
1289                    for (SynthPainter painter : painters) {
1290                        painter.paintTreeBorder(context, g, x, y, w, h);
1291                    }
1292                }
1293
1294                public void paintTreeCellBackground(SynthContext context,
1295                        Graphics g, int x, int y, int w, int h) {
1296                    for (SynthPainter painter : painters) {
1297                        painter.paintTreeCellBackground(context, g, x, y, w, h);
1298                    }
1299                }
1300
1301                public void paintTreeCellBorder(SynthContext context,
1302                        Graphics g, int x, int y, int w, int h) {
1303                    for (SynthPainter painter : painters) {
1304                        painter.paintTreeCellBorder(context, g, x, y, w, h);
1305                    }
1306                }
1307
1308                public void paintTreeCellFocus(SynthContext context,
1309                        Graphics g, int x, int y, int w, int h) {
1310                    for (SynthPainter painter : painters) {
1311                        painter.paintTreeCellFocus(context, g, x, y, w, h);
1312                    }
1313                }
1314
1315                public void paintViewportBackground(SynthContext context,
1316                        Graphics g, int x, int y, int w, int h) {
1317                    for (SynthPainter painter : painters) {
1318                        painter.paintViewportBackground(context, g, x, y, w, h);
1319                    }
1320                }
1321
1322                public void paintViewportBorder(SynthContext context,
1323                        Graphics g, int x, int y, int w, int h) {
1324                    for (SynthPainter painter : painters) {
1325                        painter.paintViewportBorder(context, g, x, y, w, h);
1326                    }
1327                }
1328            }
1329
1330            private static class DelegatingPainter extends SynthPainter {
1331                private static SynthPainter getPainter(SynthContext context,
1332                        String method, int direction) {
1333                    return ((ParsedSynthStyle) context.getStyle())
1334                            .getBestPainter(context, method, direction);
1335                }
1336
1337                public void paintArrowButtonBackground(SynthContext context,
1338                        Graphics g, int x, int y, int w, int h) {
1339                    getPainter(context, "arrowbuttonbackground", -1)
1340                            .paintArrowButtonBackground(context, g, x, y, w, h);
1341                }
1342
1343                public void paintArrowButtonBorder(SynthContext context,
1344                        Graphics g, int x, int y, int w, int h) {
1345                    getPainter(context, "arrowbuttonborder", -1)
1346                            .paintArrowButtonBorder(context, g, x, y, w, h);
1347                }
1348
1349                public void paintArrowButtonForeground(SynthContext context,
1350                        Graphics g, int x, int y, int w, int h, int direction) {
1351                    getPainter(context, "arrowbuttonforeground", direction)
1352                            .paintArrowButtonForeground(context, g, x, y, w, h,
1353                                    direction);
1354                }
1355
1356                public void paintButtonBackground(SynthContext context,
1357                        Graphics g, int x, int y, int w, int h) {
1358                    getPainter(context, "buttonbackground", -1)
1359                            .paintButtonBackground(context, g, x, y, w, h);
1360                }
1361
1362                public void paintButtonBorder(SynthContext context, Graphics g,
1363                        int x, int y, int w, int h) {
1364                    getPainter(context, "buttonborder", -1).paintButtonBorder(
1365                            context, g, x, y, w, h);
1366                }
1367
1368                public void paintCheckBoxMenuItemBackground(
1369                        SynthContext context, Graphics g, int x, int y, int w,
1370                        int h) {
1371                    getPainter(context, "checkboxmenuitembackground", -1)
1372                            .paintCheckBoxMenuItemBackground(context, g, x, y,
1373                                    w, h);
1374                }
1375
1376                public void paintCheckBoxMenuItemBorder(SynthContext context,
1377                        Graphics g, int x, int y, int w, int h) {
1378                    getPainter(context, "checkboxmenuitemborder", -1)
1379                            .paintCheckBoxMenuItemBorder(context, g, x, y, w, h);
1380                }
1381
1382                public void paintCheckBoxBackground(SynthContext context,
1383                        Graphics g, int x, int y, int w, int h) {
1384                    getPainter(context, "checkboxbackground", -1)
1385                            .paintCheckBoxBackground(context, g, x, y, w, h);
1386                }
1387
1388                public void paintCheckBoxBorder(SynthContext context,
1389                        Graphics g, int x, int y, int w, int h) {
1390                    getPainter(context, "checkboxborder", -1)
1391                            .paintCheckBoxBorder(context, g, x, y, w, h);
1392                }
1393
1394                public void paintColorChooserBackground(SynthContext context,
1395                        Graphics g, int x, int y, int w, int h) {
1396                    getPainter(context, "colorchooserbackground", -1)
1397                            .paintColorChooserBackground(context, g, x, y, w, h);
1398                }
1399
1400                public void paintColorChooserBorder(SynthContext context,
1401                        Graphics g, int x, int y, int w, int h) {
1402                    getPainter(context, "colorchooserborder", -1)
1403                            .paintColorChooserBorder(context, g, x, y, w, h);
1404                }
1405
1406                public void paintComboBoxBackground(SynthContext context,
1407                        Graphics g, int x, int y, int w, int h) {
1408                    getPainter(context, "comboboxbackground", -1)
1409                            .paintComboBoxBackground(context, g, x, y, w, h);
1410                }
1411
1412                public void paintComboBoxBorder(SynthContext context,
1413                        Graphics g, int x, int y, int w, int h) {
1414                    getPainter(context, "comboboxborder", -1)
1415                            .paintComboBoxBorder(context, g, x, y, w, h);
1416                }
1417
1418                public void paintDesktopIconBackground(SynthContext context,
1419                        Graphics g, int x, int y, int w, int h) {
1420                    getPainter(context, "desktopiconbackground", -1)
1421                            .paintDesktopIconBackground(context, g, x, y, w, h);
1422                }
1423
1424                public void paintDesktopIconBorder(SynthContext context,
1425                        Graphics g, int x, int y, int w, int h) {
1426                    getPainter(context, "desktopiconborder", -1)
1427                            .paintDesktopIconBorder(context, g, x, y, w, h);
1428                }
1429
1430                public void paintDesktopPaneBackground(SynthContext context,
1431                        Graphics g, int x, int y, int w, int h) {
1432                    getPainter(context, "desktoppanebackground", -1)
1433                            .paintDesktopPaneBackground(context, g, x, y, w, h);
1434                }
1435
1436                public void paintDesktopPaneBorder(SynthContext context,
1437                        Graphics g, int x, int y, int w, int h) {
1438                    getPainter(context, "desktoppaneborder", -1)
1439                            .paintDesktopPaneBorder(context, g, x, y, w, h);
1440                }
1441
1442                public void paintEditorPaneBackground(SynthContext context,
1443                        Graphics g, int x, int y, int w, int h) {
1444                    getPainter(context, "editorpanebackground", -1)
1445                            .paintEditorPaneBackground(context, g, x, y, w, h);
1446                }
1447
1448                public void paintEditorPaneBorder(SynthContext context,
1449                        Graphics g, int x, int y, int w, int h) {
1450                    getPainter(context, "editorpaneborder", -1)
1451                            .paintEditorPaneBorder(context, g, x, y, w, h);
1452                }
1453
1454                public void paintFileChooserBackground(SynthContext context,
1455                        Graphics g, int x, int y, int w, int h) {
1456                    getPainter(context, "filechooserbackground", -1)
1457                            .paintFileChooserBackground(context, g, x, y, w, h);
1458                }
1459
1460                public void paintFileChooserBorder(SynthContext context,
1461                        Graphics g, int x, int y, int w, int h) {
1462                    getPainter(context, "filechooserborder", -1)
1463                            .paintFileChooserBorder(context, g, x, y, w, h);
1464                }
1465
1466                public void paintFormattedTextFieldBackground(
1467                        SynthContext context, Graphics g, int x, int y, int w,
1468                        int h) {
1469                    getPainter(context, "formattedtextfieldbackground", -1)
1470                            .paintFormattedTextFieldBackground(context, g, x,
1471                                    y, w, h);
1472                }
1473
1474                public void paintFormattedTextFieldBorder(SynthContext context,
1475                        Graphics g, int x, int y, int w, int h) {
1476                    getPainter(context, "formattedtextfieldborder", -1)
1477                            .paintFormattedTextFieldBorder(context, g, x, y, w,
1478                                    h);
1479                }
1480
1481                public void paintInternalFrameTitlePaneBackground(
1482                        SynthContext context, Graphics g, int x, int y, int w,
1483                        int h) {
1484                    getPainter(context, "internalframetitlepanebackground", -1)
1485                            .paintInternalFrameTitlePaneBackground(context, g,
1486                                    x, y, w, h);
1487                }
1488
1489                public void paintInternalFrameTitlePaneBorder(
1490                        SynthContext context, Graphics g, int x, int y, int w,
1491                        int h) {
1492                    getPainter(context, "internalframetitlepaneborder", -1)
1493                            .paintInternalFrameTitlePaneBorder(context, g, x,
1494                                    y, w, h);
1495                }
1496
1497                public void paintInternalFrameBackground(SynthContext context,
1498                        Graphics g, int x, int y, int w, int h) {
1499                    getPainter(context, "internalframebackground", -1)
1500                            .paintInternalFrameBackground(context, g, x, y, w,
1501                                    h);
1502                }
1503
1504                public void paintInternalFrameBorder(SynthContext context,
1505                        Graphics g, int x, int y, int w, int h) {
1506                    getPainter(context, "internalframeborder", -1)
1507                            .paintInternalFrameBorder(context, g, x, y, w, h);
1508                }
1509
1510                public void paintLabelBackground(SynthContext context,
1511                        Graphics g, int x, int y, int w, int h) {
1512                    getPainter(context, "labelbackground", -1)
1513                            .paintLabelBackground(context, g, x, y, w, h);
1514                }
1515
1516                public void paintLabelBorder(SynthContext context, Graphics g,
1517                        int x, int y, int w, int h) {
1518                    getPainter(context, "labelborder", -1).paintLabelBorder(
1519                            context, g, x, y, w, h);
1520                }
1521
1522                public void paintListBackground(SynthContext context,
1523                        Graphics g, int x, int y, int w, int h) {
1524                    getPainter(context, "listbackground", -1)
1525                            .paintListBackground(context, g, x, y, w, h);
1526                }
1527
1528                public void paintListBorder(SynthContext context, Graphics g,
1529                        int x, int y, int w, int h) {
1530                    getPainter(context, "listborder", -1).paintListBorder(
1531                            context, g, x, y, w, h);
1532                }
1533
1534                public void paintMenuBarBackground(SynthContext context,
1535                        Graphics g, int x, int y, int w, int h) {
1536                    getPainter(context, "menubarbackground", -1)
1537                            .paintMenuBarBackground(context, g, x, y, w, h);
1538                }
1539
1540                public void paintMenuBarBorder(SynthContext context,
1541                        Graphics g, int x, int y, int w, int h) {
1542                    getPainter(context, "menubarborder", -1)
1543                            .paintMenuBarBorder(context, g, x, y, w, h);
1544                }
1545
1546                public void paintMenuItemBackground(SynthContext context,
1547                        Graphics g, int x, int y, int w, int h) {
1548                    getPainter(context, "menuitembackground", -1)
1549                            .paintMenuItemBackground(context, g, x, y, w, h);
1550                }
1551
1552                public void paintMenuItemBorder(SynthContext context,
1553                        Graphics g, int x, int y, int w, int h) {
1554                    getPainter(context, "menuitemborder", -1)
1555                            .paintMenuItemBorder(context, g, x, y, w, h);
1556                }
1557
1558                public void paintMenuBackground(SynthContext context,
1559                        Graphics g, int x, int y, int w, int h) {
1560                    getPainter(context, "menubackground", -1)
1561                            .paintMenuBackground(context, g, x, y, w, h);
1562                }
1563
1564                public void paintMenuBorder(SynthContext context, Graphics g,
1565                        int x, int y, int w, int h) {
1566                    getPainter(context, "menuborder", -1).paintMenuBorder(
1567                            context, g, x, y, w, h);
1568                }
1569
1570                public void paintOptionPaneBackground(SynthContext context,
1571                        Graphics g, int x, int y, int w, int h) {
1572                    getPainter(context, "optionpanebackground", -1)
1573                            .paintOptionPaneBackground(context, g, x, y, w, h);
1574                }
1575
1576                public void paintOptionPaneBorder(SynthContext context,
1577                        Graphics g, int x, int y, int w, int h) {
1578                    getPainter(context, "optionpaneborder", -1)
1579                            .paintOptionPaneBorder(context, g, x, y, w, h);
1580                }
1581
1582                public void paintPanelBackground(SynthContext context,
1583                        Graphics g, int x, int y, int w, int h) {
1584                    getPainter(context, "panelbackground", -1)
1585                            .paintPanelBackground(context, g, x, y, w, h);
1586                }
1587
1588                public void paintPanelBorder(SynthContext context, Graphics g,
1589                        int x, int y, int w, int h) {
1590                    getPainter(context, "panelborder", -1).paintPanelBorder(
1591                            context, g, x, y, w, h);
1592                }
1593
1594                public void paintPasswordFieldBackground(SynthContext context,
1595                        Graphics g, int x, int y, int w, int h) {
1596                    getPainter(context, "passwordfieldbackground", -1)
1597                            .paintPasswordFieldBackground(context, g, x, y, w,
1598                                    h);
1599                }
1600
1601                public void paintPasswordFieldBorder(SynthContext context,
1602                        Graphics g, int x, int y, int w, int h) {
1603                    getPainter(context, "passwordfieldborder", -1)
1604                            .paintPasswordFieldBorder(context, g, x, y, w, h);
1605                }
1606
1607                public void paintPopupMenuBackground(SynthContext context,
1608                        Graphics g, int x, int y, int w, int h) {
1609                    getPainter(context, "popupmenubackground", -1)
1610                            .paintPopupMenuBackground(context, g, x, y, w, h);
1611                }
1612
1613                public void paintPopupMenuBorder(SynthContext context,
1614                        Graphics g, int x, int y, int w, int h) {
1615                    getPainter(context, "popupmenuborder", -1)
1616                            .paintPopupMenuBorder(context, g, x, y, w, h);
1617                }
1618
1619                public void paintProgressBarBackground(SynthContext context,
1620                        Graphics g, int x, int y, int w, int h) {
1621                    getPainter(context, "progressbarbackground", -1)
1622                            .paintProgressBarBackground(context, g, x, y, w, h);
1623                }
1624
1625                public void paintProgressBarBackground(SynthContext context,
1626                        Graphics g, int x, int y, int w, int h, int direction) {
1627                    getPainter(context, "progressbarbackground", direction)
1628                            .paintProgressBarBackground(context, g, x, y, w, h,
1629                                    direction);
1630                }
1631
1632                public void paintProgressBarBorder(SynthContext context,
1633                        Graphics g, int x, int y, int w, int h) {
1634                    getPainter(context, "progressbarborder", -1)
1635                            .paintProgressBarBorder(context, g, x, y, w, h);
1636                }
1637
1638                public void paintProgressBarBorder(SynthContext context,
1639                        Graphics g, int x, int y, int w, int h, int direction) {
1640                    getPainter(context, "progressbarborder", direction)
1641                            .paintProgressBarBorder(context, g, x, y, w, h,
1642                                    direction);
1643                }
1644
1645                public void paintProgressBarForeground(SynthContext context,
1646                        Graphics g, int x, int y, int w, int h, int direction) {
1647                    getPainter(context, "progressbarforeground", direction)
1648                            .paintProgressBarForeground(context, g, x, y, w, h,
1649                                    direction);
1650                }
1651
1652                public void paintRadioButtonMenuItemBackground(
1653                        SynthContext context, Graphics g, int x, int y, int w,
1654                        int h) {
1655                    getPainter(context, "radiobuttonmenuitembackground", -1)
1656                            .paintRadioButtonMenuItemBackground(context, g, x,
1657                                    y, w, h);
1658                }
1659
1660                public void paintRadioButtonMenuItemBorder(
1661                        SynthContext context, Graphics g, int x, int y, int w,
1662                        int h) {
1663                    getPainter(context, "radiobuttonmenuitemborder", -1)
1664                            .paintRadioButtonMenuItemBorder(context, g, x, y,
1665                                    w, h);
1666                }
1667
1668                public void paintRadioButtonBackground(SynthContext context,
1669                        Graphics g, int x, int y, int w, int h) {
1670                    getPainter(context, "radiobuttonbackground", -1)
1671                            .paintRadioButtonBackground(context, g, x, y, w, h);
1672                }
1673
1674                public void paintRadioButtonBorder(SynthContext context,
1675                        Graphics g, int x, int y, int w, int h) {
1676                    getPainter(context, "radiobuttonborder", -1)
1677                            .paintRadioButtonBorder(context, g, x, y, w, h);
1678                }
1679
1680                public void paintRootPaneBackground(SynthContext context,
1681                        Graphics g, int x, int y, int w, int h) {
1682                    getPainter(context, "rootpanebackground", -1)
1683                            .paintRootPaneBackground(context, g, x, y, w, h);
1684                }
1685
1686                public void paintRootPaneBorder(SynthContext context,
1687                        Graphics g, int x, int y, int w, int h) {
1688                    getPainter(context, "rootpaneborder", -1)
1689                            .paintRootPaneBorder(context, g, x, y, w, h);
1690                }
1691
1692                public void paintScrollBarBackground(SynthContext context,
1693                        Graphics g, int x, int y, int w, int h) {
1694                    getPainter(context, "scrollbarbackground", -1)
1695                            .paintScrollBarBackground(context, g, x, y, w, h);
1696                }
1697
1698                public void paintScrollBarBackground(SynthContext context,
1699                        Graphics g, int x, int y, int w, int h, int direction) {
1700                    getPainter(context, "scrollbarbackground", direction)
1701                            .paintScrollBarBackground(context, g, x, y, w, h,
1702                                    direction);
1703                }
1704
1705                public void paintScrollBarBorder(SynthContext context,
1706                        Graphics g, int x, int y, int w, int h) {
1707                    getPainter(context, "scrollbarborder", -1)
1708                            .paintScrollBarBorder(context, g, x, y, w, h);
1709                }
1710
1711                public void paintScrollBarBorder(SynthContext context,
1712                        Graphics g, int x, int y, int w, int h, int orientation) {
1713                    getPainter(context, "scrollbarborder", orientation)
1714                            .paintScrollBarBorder(context, g, x, y, w, h,
1715                                    orientation);
1716                }
1717
1718                public void paintScrollBarThumbBackground(SynthContext context,
1719                        Graphics g, int x, int y, int w, int h, int direction) {
1720                    getPainter(context, "scrollbarthumbbackground", direction)
1721                            .paintScrollBarThumbBackground(context, g, x, y, w,
1722                                    h, direction);
1723                }
1724
1725                public void paintScrollBarThumbBorder(SynthContext context,
1726                        Graphics g, int x, int y, int w, int h, int direction) {
1727                    getPainter(context, "scrollbarthumbborder", direction)
1728                            .paintScrollBarThumbBorder(context, g, x, y, w, h,
1729                                    direction);
1730                }
1731
1732                public void paintScrollBarTrackBackground(SynthContext context,
1733                        Graphics g, int x, int y, int w, int h) {
1734                    getPainter(context, "scrollbartrackbackground", -1)
1735                            .paintScrollBarTrackBackground(context, g, x, y, w,
1736                                    h);
1737                }
1738
1739                public void paintScrollBarTrackBackground(SynthContext context,
1740                        Graphics g, int x, int y, int w, int h, int direction) {
1741                    getPainter(context, "scrollbartrackbackground", direction)
1742                            .paintScrollBarTrackBackground(context, g, x, y, w,
1743                                    h, direction);
1744                }
1745
1746                public void paintScrollBarTrackBorder(SynthContext context,
1747                        Graphics g, int x, int y, int w, int h) {
1748                    getPainter(context, "scrollbartrackborder", -1)
1749                            .paintScrollBarTrackBorder(context, g, x, y, w, h);
1750                }
1751
1752                public void paintScrollBarTrackBorder(SynthContext context,
1753                        Graphics g, int x, int y, int w, int h, int orientation) {
1754                    getPainter(context, "scrollbartrackborder", orientation)
1755                            .paintScrollBarTrackBorder(context, g, x, y, w, h,
1756                                    orientation);
1757                }
1758
1759                public void paintScrollPaneBackground(SynthContext context,
1760                        Graphics g, int x, int y, int w, int h) {
1761                    getPainter(context, "scrollpanebackground", -1)
1762                            .paintScrollPaneBackground(context, g, x, y, w, h);
1763                }
1764
1765                public void paintScrollPaneBorder(SynthContext context,
1766                        Graphics g, int x, int y, int w, int h) {
1767                    getPainter(context, "scrollpaneborder", -1)
1768                            .paintScrollPaneBorder(context, g, x, y, w, h);
1769                }
1770
1771                public void paintSeparatorBackground(SynthContext context,
1772                        Graphics g, int x, int y, int w, int h) {
1773                    getPainter(context, "separatorbackground", -1)
1774                            .paintSeparatorBackground(context, g, x, y, w, h);
1775                }
1776
1777                public void paintSeparatorBackground(SynthContext context,
1778                        Graphics g, int x, int y, int w, int h, int orientation) {
1779                    getPainter(context, "separatorbackground", orientation)
1780                            .paintSeparatorBackground(context, g, x, y, w, h,
1781                                    orientation);
1782                }
1783
1784                public void paintSeparatorBorder(SynthContext context,
1785                        Graphics g, int x, int y, int w, int h) {
1786                    getPainter(context, "separatorborder", -1)
1787                            .paintSeparatorBorder(context, g, x, y, w, h);
1788                }
1789
1790                public void paintSeparatorBorder(SynthContext context,
1791                        Graphics g, int x, int y, int w, int h, int orientation) {
1792                    getPainter(context, "separatorborder", orientation)
1793                            .paintSeparatorBorder(context, g, x, y, w, h,
1794                                    orientation);
1795                }
1796
1797                public void paintSeparatorForeground(SynthContext context,
1798                        Graphics g, int x, int y, int w, int h, int direction) {
1799                    getPainter(context, "separatorforeground", direction)
1800                            .paintSeparatorForeground(context, g, x, y, w, h,
1801                                    direction);
1802                }
1803
1804                public void paintSliderBackground(SynthContext context,
1805                        Graphics g, int x, int y, int w, int h) {
1806                    getPainter(context, "sliderbackground", -1)
1807                            .paintSliderBackground(context, g, x, y, w, h);
1808                }
1809
1810                public void paintSliderBackground(SynthContext context,
1811                        Graphics g, int x, int y, int w, int h, int direction) {
1812                    getPainter(context, "sliderbackground", direction)
1813                            .paintSliderBackground(context, g, x, y, w, h,
1814                                    direction);
1815                }
1816
1817                public void paintSliderBorder(SynthContext context, Graphics g,
1818                        int x, int y, int w, int h) {
1819                    getPainter(context, "sliderborder", -1).paintSliderBorder(
1820                            context, g, x, y, w, h);
1821                }
1822
1823                public void paintSliderBorder(SynthContext context, Graphics g,
1824                        int x, int y, int w, int h, int direction) {
1825                    getPainter(context, "sliderborder", direction)
1826                            .paintSliderBorder(context, g, x, y, w, h,
1827                                    direction);
1828                }
1829
1830                public void paintSliderThumbBackground(SynthContext context,
1831                        Graphics g, int x, int y, int w, int h, int direction) {
1832                    getPainter(context, "sliderthumbbackground", direction)
1833                            .paintSliderThumbBackground(context, g, x, y, w, h,
1834                                    direction);
1835                }
1836
1837                public void paintSliderThumbBorder(SynthContext context,
1838                        Graphics g, int x, int y, int w, int h, int direction) {
1839                    getPainter(context, "sliderthumbborder", direction)
1840                            .paintSliderThumbBorder(context, g, x, y, w, h,
1841                                    direction);
1842                }
1843
1844                public void paintSliderTrackBackground(SynthContext context,
1845                        Graphics g, int x, int y, int w, int h) {
1846                    getPainter(context, "slidertrackbackground", -1)
1847                            .paintSliderTrackBackground(context, g, x, y, w, h);
1848                }
1849
1850                public void paintSliderTrackBackground(SynthContext context,
1851                        Graphics g, int x, int y, int w, int h, int direction) {
1852                    getPainter(context, "slidertrackbackground", direction)
1853                            .paintSliderTrackBackground(context, g, x, y, w, h,
1854                                    direction);
1855                }
1856
1857                public void paintSliderTrackBorder(SynthContext context,
1858                        Graphics g, int x, int y, int w, int h) {
1859                    getPainter(context, "slidertrackborder", -1)
1860                            .paintSliderTrackBorder(context, g, x, y, w, h);
1861                }
1862
1863                public void paintSliderTrackBorder(SynthContext context,
1864                        Graphics g, int x, int y, int w, int h, int direction) {
1865                    getPainter(context, "slidertrackborder", direction)
1866                            .paintSliderTrackBorder(context, g, x, y, w, h,
1867                                    direction);
1868                }
1869
1870                public void paintSpinnerBackground(SynthContext context,
1871                        Graphics g, int x, int y, int w, int h) {
1872                    getPainter(context, "spinnerbackground", -1)
1873                            .paintSpinnerBackground(context, g, x, y, w, h);
1874                }
1875
1876                public void paintSpinnerBorder(SynthContext context,
1877                        Graphics g, int x, int y, int w, int h) {
1878                    getPainter(context, "spinnerborder", -1)
1879                            .paintSpinnerBorder(context, g, x, y, w, h);
1880                }
1881
1882                public void paintSplitPaneDividerBackground(
1883                        SynthContext context, Graphics g, int x, int y, int w,
1884                        int h) {
1885                    getPainter(context, "splitpanedividerbackground", -1)
1886                            .paintSplitPaneDividerBackground(context, g, x, y,
1887                                    w, h);
1888                }
1889
1890                public void paintSplitPaneDividerBackground(
1891                        SynthContext context, Graphics g, int x, int y, int w,
1892                        int h, int orientation) {
1893                    getPainter(context, "splitpanedividerbackground",
1894                            orientation).paintSplitPaneDividerBackground(
1895                            context, g, x, y, w, h, orientation);
1896                }
1897
1898                public void paintSplitPaneDividerForeground(
1899                        SynthContext context, Graphics g, int x, int y, int w,
1900                        int h, int direction) {
1901                    getPainter(context, "splitpanedividerforeground", direction)
1902                            .paintSplitPaneDividerForeground(context, g, x, y,
1903                                    w, h, direction);
1904                }
1905
1906                public void paintSplitPaneDragDivider(SynthContext context,
1907                        Graphics g, int x, int y, int w, int h, int direction) {
1908                    getPainter(context, "splitpanedragdivider", direction)
1909                            .paintSplitPaneDragDivider(context, g, x, y, w, h,
1910                                    direction);
1911                }
1912
1913                public void paintSplitPaneBackground(SynthContext context,
1914                        Graphics g, int x, int y, int w, int h) {
1915                    getPainter(context, "splitpanebackground", -1)
1916                            .paintSplitPaneBackground(context, g, x, y, w, h);
1917                }
1918
1919                public void paintSplitPaneBorder(SynthContext context,
1920                        Graphics g, int x, int y, int w, int h) {
1921                    getPainter(context, "splitpaneborder", -1)
1922                            .paintSplitPaneBorder(context, g, x, y, w, h);
1923                }
1924
1925                public void paintTabbedPaneBackground(SynthContext context,
1926                        Graphics g, int x, int y, int w, int h) {
1927                    getPainter(context, "tabbedpanebackground", -1)
1928                            .paintTabbedPaneBackground(context, g, x, y, w, h);
1929                }
1930
1931                public void paintTabbedPaneBorder(SynthContext context,
1932                        Graphics g, int x, int y, int w, int h) {
1933                    getPainter(context, "tabbedpaneborder", -1)
1934                            .paintTabbedPaneBorder(context, g, x, y, w, h);
1935                }
1936
1937                public void paintTabbedPaneTabAreaBackground(
1938                        SynthContext context, Graphics g, int x, int y, int w,
1939                        int h) {
1940                    getPainter(context, "tabbedpanetabareabackground", -1)
1941                            .paintTabbedPaneTabAreaBackground(context, g, x, y,
1942                                    w, h);
1943                }
1944
1945                public void paintTabbedPaneTabAreaBackground(
1946                        SynthContext context, Graphics g, int x, int y, int w,
1947                        int h, int orientation) {
1948                    getPainter(context, "tabbedpanetabareabackground",
1949                            orientation).paintTabbedPaneTabAreaBackground(
1950                            context, g, x, y, w, h, orientation);
1951                }
1952
1953                public void paintTabbedPaneTabAreaBorder(SynthContext context,
1954                        Graphics g, int x, int y, int w, int h) {
1955                    getPainter(context, "tabbedpanetabareaborder", -1)
1956                            .paintTabbedPaneTabAreaBorder(context, g, x, y, w,
1957                                    h);
1958                }
1959
1960                public void paintTabbedPaneTabAreaBorder(SynthContext context,
1961                        Graphics g, int x, int y, int w, int h, int orientation) {
1962                    getPainter(context, "tabbedpanetabareaborder", orientation)
1963                            .paintTabbedPaneTabAreaBorder(context, g, x, y, w,
1964                                    h, orientation);
1965                }
1966
1967                public void paintTabbedPaneTabBackground(SynthContext context,
1968                        Graphics g, int x, int y, int w, int h, int direction) {
1969                    getPainter(context, "tabbedpanetabbackground", -1)
1970                            .paintTabbedPaneTabBackground(context, g, x, y, w,
1971                                    h, direction);
1972                }
1973
1974                public void paintTabbedPaneTabBackground(SynthContext context,
1975                        Graphics g, int x, int y, int w, int h, int tabIndex,
1976                        int direction) {
1977                    getPainter(context, "tabbedpanetabbackground", direction)
1978                            .paintTabbedPaneTabBackground(context, g, x, y, w,
1979                                    h, tabIndex, direction);
1980                }
1981
1982                public void paintTabbedPaneTabBorder(SynthContext context,
1983                        Graphics g, int x, int y, int w, int h, int direction) {
1984                    getPainter(context, "tabbedpanetabborder", -1)
1985                            .paintTabbedPaneTabBorder(context, g, x, y, w, h,
1986                                    direction);
1987                }
1988
1989                public void paintTabbedPaneTabBorder(SynthContext context,
1990                        Graphics g, int x, int y, int w, int h, int tabIndex,
1991                        int direction) {
1992                    getPainter(context, "tabbedpanetabborder", direction)
1993                            .paintTabbedPaneTabBorder(context, g, x, y, w, h,
1994                                    tabIndex, direction);
1995                }
1996
1997                public void paintTabbedPaneContentBackground(
1998                        SynthContext context, Graphics g, int x, int y, int w,
1999                        int h) {
2000                    getPainter(context, "tabbedpanecontentbackground", -1)
2001                            .paintTabbedPaneContentBackground(context, g, x, y,
2002                                    w, h);
2003                }
2004
2005                public void paintTabbedPaneContentBorder(SynthContext context,
2006                        Graphics g, int x, int y, int w, int h) {
2007                    getPainter(context, "tabbedpanecontentborder", -1)
2008                            .paintTabbedPaneContentBorder(context, g, x, y, w,
2009                                    h);
2010                }
2011
2012                public void paintTableHeaderBackground(SynthContext context,
2013                        Graphics g, int x, int y, int w, int h) {
2014                    getPainter(context, "tableheaderbackground", -1)
2015                            .paintTableHeaderBackground(context, g, x, y, w, h);
2016                }
2017
2018                public void paintTableHeaderBorder(SynthContext context,
2019                        Graphics g, int x, int y, int w, int h) {
2020                    getPainter(context, "tableheaderborder", -1)
2021                            .paintTableHeaderBorder(context, g, x, y, w, h);
2022                }
2023
2024                public void paintTableBackground(SynthContext context,
2025                        Graphics g, int x, int y, int w, int h) {
2026                    getPainter(context, "tablebackground", -1)
2027                            .paintTableBackground(context, g, x, y, w, h);
2028                }
2029
2030                public void paintTableBorder(SynthContext context, Graphics g,
2031                        int x, int y, int w, int h) {
2032                    getPainter(context, "tableborder", -1).paintTableBorder(
2033                            context, g, x, y, w, h);
2034                }
2035
2036                public void paintTextAreaBackground(SynthContext context,
2037                        Graphics g, int x, int y, int w, int h) {
2038                    getPainter(context, "textareabackground", -1)
2039                            .paintTextAreaBackground(context, g, x, y, w, h);
2040                }
2041
2042                public void paintTextAreaBorder(SynthContext context,
2043                        Graphics g, int x, int y, int w, int h) {
2044                    getPainter(context, "textareaborder", -1)
2045                            .paintTextAreaBorder(context, g, x, y, w, h);
2046                }
2047
2048                public void paintTextPaneBackground(SynthContext context,
2049                        Graphics g, int x, int y, int w, int h) {
2050                    getPainter(context, "textpanebackground", -1)
2051                            .paintTextPaneBackground(context, g, x, y, w, h);
2052                }
2053
2054                public void paintTextPaneBorder(SynthContext context,
2055                        Graphics g, int x, int y, int w, int h) {
2056                    getPainter(context, "textpaneborder", -1)
2057                            .paintTextPaneBorder(context, g, x, y, w, h);
2058                }
2059
2060                public void paintTextFieldBackground(SynthContext context,
2061                        Graphics g, int x, int y, int w, int h) {
2062                    getPainter(context, "textfieldbackground", -1)
2063                            .paintTextFieldBackground(context, g, x, y, w, h);
2064                }
2065
2066                public void paintTextFieldBorder(SynthContext context,
2067                        Graphics g, int x, int y, int w, int h) {
2068                    getPainter(context, "textfieldborder", -1)
2069                            .paintTextFieldBorder(context, g, x, y, w, h);
2070                }
2071
2072                public void paintToggleButtonBackground(SynthContext context,
2073                        Graphics g, int x, int y, int w, int h) {
2074                    getPainter(context, "togglebuttonbackground", -1)
2075                            .paintToggleButtonBackground(context, g, x, y, w, h);
2076                }
2077
2078                public void paintToggleButtonBorder(SynthContext context,
2079                        Graphics g, int x, int y, int w, int h) {
2080                    getPainter(context, "togglebuttonborder", -1)
2081                            .paintToggleButtonBorder(context, g, x, y, w, h);
2082                }
2083
2084                public void paintToolBarBackground(SynthContext context,
2085                        Graphics g, int x, int y, int w, int h) {
2086                    getPainter(context, "toolbarbackground", -1)
2087                            .paintToolBarBackground(context, g, x, y, w, h);
2088                }
2089
2090                public void paintToolBarBackground(SynthContext context,
2091                        Graphics g, int x, int y, int w, int h, int orientation) {
2092                    getPainter(context, "toolbarbackground", orientation)
2093                            .paintToolBarBackground(context, g, x, y, w, h,
2094                                    orientation);
2095                }
2096
2097                public void paintToolBarBorder(SynthContext context,
2098                        Graphics g, int x, int y, int w, int h) {
2099                    getPainter(context, "toolbarborder", -1)
2100                            .paintToolBarBorder(context, g, x, y, w, h);
2101                }
2102
2103                public void paintToolBarBorder(SynthContext context,
2104                        Graphics g, int x, int y, int w, int h, int orientation) {
2105                    getPainter(context, "toolbarborder", orientation)
2106                            .paintToolBarBorder(context, g, x, y, w, h,
2107                                    orientation);
2108                }
2109
2110                public void paintToolBarContentBackground(SynthContext context,
2111                        Graphics g, int x, int y, int w, int h) {
2112                    getPainter(context, "toolbarcontentbackground", -1)
2113                            .paintToolBarContentBackground(context, g, x, y, w,
2114                                    h);
2115                }
2116
2117                public void paintToolBarContentBackground(SynthContext context,
2118                        Graphics g, int x, int y, int w, int h, int orientation) {
2119                    getPainter(context, "toolbarcontentbackground", orientation)
2120                            .paintToolBarContentBackground(context, g, x, y, w,
2121                                    h, orientation);
2122                }
2123
2124                public void paintToolBarContentBorder(SynthContext context,
2125                        Graphics g, int x, int y, int w, int h) {
2126                    getPainter(context, "toolbarcontentborder", -1)
2127                            .paintToolBarContentBorder(context, g, x, y, w, h);
2128                }
2129
2130                public void paintToolBarContentBorder(SynthContext context,
2131                        Graphics g, int x, int y, int w, int h, int orientation) {
2132                    getPainter(context, "toolbarcontentborder", orientation)
2133                            .paintToolBarContentBorder(context, g, x, y, w, h,
2134                                    orientation);
2135                }
2136
2137                public void paintToolBarDragWindowBackground(
2138                        SynthContext context, Graphics g, int x, int y, int w,
2139                        int h) {
2140                    getPainter(context, "toolbardragwindowbackground", -1)
2141                            .paintToolBarDragWindowBackground(context, g, x, y,
2142                                    w, h);
2143                }
2144
2145                public void paintToolBarDragWindowBackground(
2146                        SynthContext context, Graphics g, int x, int y, int w,
2147                        int h, int orientation) {
2148                    getPainter(context, "toolbardragwindowbackground",
2149                            orientation).paintToolBarDragWindowBackground(
2150                            context, g, x, y, w, h, orientation);
2151                }
2152
2153                public void paintToolBarDragWindowBorder(SynthContext context,
2154                        Graphics g, int x, int y, int w, int h) {
2155                    getPainter(context, "toolbardragwindowborder", -1)
2156                            .paintToolBarDragWindowBorder(context, g, x, y, w,
2157                                    h);
2158                }
2159
2160                public void paintToolBarDragWindowBorder(SynthContext context,
2161                        Graphics g, int x, int y, int w, int h, int orientation) {
2162                    getPainter(context, "toolbardragwindowborder", orientation)
2163                            .paintToolBarDragWindowBorder(context, g, x, y, w,
2164                                    h, orientation);
2165                }
2166
2167                public void paintToolTipBackground(SynthContext context,
2168                        Graphics g, int x, int y, int w, int h) {
2169                    getPainter(context, "tooltipbackground", -1)
2170                            .paintToolTipBackground(context, g, x, y, w, h);
2171                }
2172
2173                public void paintToolTipBorder(SynthContext context,
2174                        Graphics g, int x, int y, int w, int h) {
2175                    getPainter(context, "tooltipborder", -1)
2176                            .paintToolTipBorder(context, g, x, y, w, h);
2177                }
2178
2179                public void paintTreeBackground(SynthContext context,
2180                        Graphics g, int x, int y, int w, int h) {
2181                    getPainter(context, "treebackground", -1)
2182                            .paintTreeBackground(context, g, x, y, w, h);
2183                }
2184
2185                public void paintTreeBorder(SynthContext context, Graphics g,
2186                        int x, int y, int w, int h) {
2187                    getPainter(context, "treeborder", -1).paintTreeBorder(
2188                            context, g, x, y, w, h);
2189                }
2190
2191                public void paintTreeCellBackground(SynthContext context,
2192                        Graphics g, int x, int y, int w, int h) {
2193                    getPainter(context, "treecellbackground", -1)
2194                            .paintTreeCellBackground(context, g, x, y, w, h);
2195                }
2196
2197                public void paintTreeCellBorder(SynthContext context,
2198                        Graphics g, int x, int y, int w, int h) {
2199                    getPainter(context, "treecellborder", -1)
2200                            .paintTreeCellBorder(context, g, x, y, w, h);
2201                }
2202
2203                public void paintTreeCellFocus(SynthContext context,
2204                        Graphics g, int x, int y, int w, int h) {
2205                    getPainter(context, "treecellfocus", -1)
2206                            .paintTreeCellFocus(context, g, x, y, w, h);
2207                }
2208
2209                public void paintViewportBackground(SynthContext context,
2210                        Graphics g, int x, int y, int w, int h) {
2211                    getPainter(context, "viewportbackground", -1)
2212                            .paintViewportBackground(context, g, x, y, w, h);
2213                }
2214
2215                public void paintViewportBorder(SynthContext context,
2216                        Graphics g, int x, int y, int w, int h) {
2217                    getPainter(context, "viewportborder", -1)
2218                            .paintViewportBorder(context, g, x, y, w, h);
2219                }
2220            }
2221        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.