jdk/src/share/classes/javax/swing/plaf/BorderUIResource.java
author malenkov
Wed, 30 Apr 2014 19:28:05 +0400
changeset 24544 c0133e7c7162
parent 22574 7f8ce0c8c20a
permissions -rw-r--r--
8041917: unexcepted behavior of LineBorder while using Boolean variable true Reviewed-by: alexsch, serb
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
22574
7f8ce0c8c20a 8032627: Add @SuppressWarnings("serial") to appropriate javax.swing classes
darcy
parents: 20458
diff changeset
     2
 * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 *
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    23
 * questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
package javax.swing.plaf;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
import java.awt.Component;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
import java.awt.Insets;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
import java.awt.Color;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
import java.awt.Font;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
import java.awt.Graphics;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
import java.io.Serializable;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
import java.beans.ConstructorProperties;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
import javax.swing.border.*;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
import javax.swing.Icon;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
import javax.swing.plaf.UIResource;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
 * A Border wrapper class which implements UIResource.  UI
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
 * classes which set border properties should use this class
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
 * to wrap any borders specified as defaults.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
 * This class delegates all method invocations to the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
 * Border "delegate" object specified at construction.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
 * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
 * <strong>Warning:</strong>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
 * Serialized objects of this class will not be compatible with
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
 * future Swing releases. The current serialization support is
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
 * appropriate for short term storage or RMI between applications running
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
 * the same version of Swing.  As of 1.4, support for long term storage
20458
f2423fb3fd19 8025840: Fix all the doclint warnings about trademark
cl
parents: 5506
diff changeset
    54
 * of all JavaBeans&trade;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
 * has been added to the <code>java.beans</code> package.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
 * Please see {@link java.beans.XMLEncoder}.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
 * @see javax.swing.plaf.UIResource
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
 * @author Amy Fowler
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
 */
22574
7f8ce0c8c20a 8032627: Add @SuppressWarnings("serial") to appropriate javax.swing classes
darcy
parents: 20458
diff changeset
    62
@SuppressWarnings("serial") // Same-version serialization only
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
public class BorderUIResource implements Border, UIResource, Serializable
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
{
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
    static Border etched;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
    static Border loweredBevel;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
    static Border raisedBevel;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
    static Border blackLine;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
    public static Border getEtchedBorderUIResource() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
        if (etched == null) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
            etched = new EtchedBorderUIResource();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
        return etched;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
    public static Border getLoweredBevelBorderUIResource() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
        if (loweredBevel == null) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
            loweredBevel = new BevelBorderUIResource(BevelBorder.LOWERED);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
        return loweredBevel;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
    public static Border getRaisedBevelBorderUIResource() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
        if (raisedBevel == null) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
            raisedBevel = new BevelBorderUIResource(BevelBorder.RAISED);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
        return raisedBevel;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
    public static Border getBlackLineBorderUIResource() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
        if (blackLine == null) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
            blackLine = new LineBorderUIResource(Color.black);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
        return blackLine;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
    private Border delegate;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
     * Creates a UIResource border object which wraps
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
     * an existing Border instance.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
     * @param delegate the border being wrapped
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
    public BorderUIResource(Border delegate) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
        if (delegate == null) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
            throw new IllegalArgumentException("null border delegate argument");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
        this.delegate = delegate;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
    public void paintBorder(Component c, Graphics g, int x, int y,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
                            int width, int height) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
        delegate.paintBorder(c, g, x, y, width, height);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
    public Insets getBorderInsets(Component c)       {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
        return delegate.getBorderInsets(c);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
    public boolean isBorderOpaque() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
        return delegate.isBorderOpaque();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
    public static class CompoundBorderUIResource extends CompoundBorder implements UIResource {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
        @ConstructorProperties({"outsideBorder", "insideBorder"})
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
        public CompoundBorderUIResource(Border outsideBorder, Border insideBorder) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
            super(outsideBorder, insideBorder);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
    public static class EmptyBorderUIResource extends EmptyBorder implements UIResource {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
        public EmptyBorderUIResource(int top, int left, int bottom, int right)   {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
            super(top, left, bottom, right);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
        @ConstructorProperties({"borderInsets"})
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
        public EmptyBorderUIResource(Insets insets) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
            super(insets);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
    public static class LineBorderUIResource extends LineBorder implements UIResource {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
        public LineBorderUIResource(Color color) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
            super(color);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
        @ConstructorProperties({"lineColor", "thickness"})
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
        public LineBorderUIResource(Color color, int thickness)  {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
            super(color, thickness);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
    public static class BevelBorderUIResource extends BevelBorder implements UIResource {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
        public BevelBorderUIResource(int bevelType) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
            super(bevelType);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
        public BevelBorderUIResource(int bevelType, Color highlight, Color shadow) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
            super(bevelType, highlight, shadow);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
        @ConstructorProperties({"bevelType", "highlightOuterColor", "highlightInnerColor", "shadowOuterColor", "shadowInnerColor"})
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
        public BevelBorderUIResource(int bevelType,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
                                     Color highlightOuter, Color highlightInner,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
                                     Color shadowOuter, Color shadowInner) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
            super(bevelType, highlightOuter, highlightInner, shadowOuter, shadowInner);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
    public static class EtchedBorderUIResource extends EtchedBorder implements UIResource {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
        public EtchedBorderUIResource()    {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
            super();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
        public EtchedBorderUIResource(int etchType)    {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
            super(etchType);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
        public EtchedBorderUIResource(Color highlight, Color shadow)    {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
            super(highlight, shadow);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
        @ConstructorProperties({"etchType", "highlightColor", "shadowColor"})
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
        public EtchedBorderUIResource(int etchType, Color highlight, Color shadow)    {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
            super(etchType, highlight, shadow);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
    public static class MatteBorderUIResource extends MatteBorder implements UIResource {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
        public MatteBorderUIResource(int top, int left, int bottom, int right,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
                                     Color color)   {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
            super(top, left, bottom, right, color);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
        public MatteBorderUIResource(int top, int left, int bottom, int right,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
                                     Icon tileIcon)   {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
            super(top, left, bottom, right, tileIcon);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
        public MatteBorderUIResource(Icon tileIcon)   {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
            super(tileIcon);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
    public static class TitledBorderUIResource extends TitledBorder implements UIResource {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
        public TitledBorderUIResource(String title)     {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
            super(title);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
        public TitledBorderUIResource(Border border)       {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
            super(border);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
        public TitledBorderUIResource(Border border, String title) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
            super(border, title);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
        public TitledBorderUIResource(Border border,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
                        String title,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
                        int titleJustification,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
                        int titlePosition)      {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
            super(border, title, titleJustification, titlePosition);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
        public TitledBorderUIResource(Border border,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
                        String title,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
                        int titleJustification,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
                        int titlePosition,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
                        Font titleFont) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
            super(border, title, titleJustification, titlePosition, titleFont);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
        @ConstructorProperties({"border", "title", "titleJustification", "titlePosition", "titleFont", "titleColor"})
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
        public TitledBorderUIResource(Border border,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
                        String title,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
                        int titleJustification,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
                        int titlePosition,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
                        Font titleFont,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
                        Color titleColor)       {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
            super(border, title, titleJustification, titlePosition, titleFont, titleColor);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   249
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   250
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   251
90ce3da70b43 Initial load
duke
parents:
diff changeset
   252
}