equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2005, 2015, 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 |
118 * @author Richard Bair |
118 * @author Richard Bair |
119 * @author Jasper Potts |
119 * @author Jasper Potts |
120 */ |
120 */ |
121 public final class NimbusStyle extends SynthStyle { |
121 public final class NimbusStyle extends SynthStyle { |
122 /* Keys and scales for large/small/mini components, based on Apples sizes */ |
122 /* Keys and scales for large/small/mini components, based on Apples sizes */ |
|
123 /** Large key */ |
123 public static final String LARGE_KEY = "large"; |
124 public static final String LARGE_KEY = "large"; |
|
125 /** Small key */ |
124 public static final String SMALL_KEY = "small"; |
126 public static final String SMALL_KEY = "small"; |
|
127 /** Mini key */ |
125 public static final String MINI_KEY = "mini"; |
128 public static final String MINI_KEY = "mini"; |
|
129 /** Large scale */ |
126 public static final double LARGE_SCALE = 1.15; |
130 public static final double LARGE_SCALE = 1.15; |
|
131 /** Small scale */ |
127 public static final double SMALL_SCALE = 0.857; |
132 public static final double SMALL_SCALE = 0.857; |
|
133 /** Mini scale */ |
128 public static final double MINI_SCALE = 0.714; |
134 public static final double MINI_SCALE = 0.714; |
129 |
135 |
130 /** |
136 /** |
131 * Special constant used for performance reasons during the get() method. |
137 * Special constant used for performance reasons during the get() method. |
132 * If get() runs through all of the search locations and determines that |
138 * If get() runs through all of the search locations and determines that |