equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
194 } |
194 } |
195 |
195 |
196 /** |
196 /** |
197 * Returns the color used for tiling the border or null |
197 * Returns the color used for tiling the border or null |
198 * if a tile icon is being used. |
198 * if a tile icon is being used. |
|
199 * |
|
200 * @return the {@code Color} object used to render the border or {@code null} |
|
201 * if a tile icon is used |
199 * @since 1.3 |
202 * @since 1.3 |
200 */ |
203 */ |
201 public Color getMatteColor() { |
204 public Color getMatteColor() { |
202 return color; |
205 return color; |
203 } |
206 } |
204 |
207 |
205 /** |
208 /** |
206 * Returns the icon used for tiling the border or null |
209 * Returns the icon used for tiling the border or null |
207 * if a solid color is being used. |
210 * if a solid color is being used. |
|
211 * |
|
212 * @return the {@code Icon} used to tile the border or {@code null} if a |
|
213 * solid color is used to fill the border |
208 * @since 1.3 |
214 * @since 1.3 |
209 */ |
215 */ |
210 public Icon getTileIcon() { |
216 public Icon getTileIcon() { |
211 return tileIcon; |
217 return tileIcon; |
212 } |
218 } |
213 |
219 |
214 /** |
220 /** |
215 * Returns whether or not the border is opaque. |
221 * Returns whether or not the border is opaque. |
|
222 * |
|
223 * @return {@code true} if the border is opaque, {@code false} otherwise |
216 */ |
224 */ |
217 public boolean isBorderOpaque() { |
225 public boolean isBorderOpaque() { |
218 // If a tileIcon is set, then it may contain transparent bits |
226 // If a tileIcon is set, then it may contain transparent bits |
219 return color != null; |
227 return color != null; |
220 } |
228 } |