equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1995, 2008, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1995, 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 |
270 * <code>null</code>. |
270 * <code>null</code>. |
271 * |
271 * |
272 * @return the parameter string of this label |
272 * @return the parameter string of this label |
273 */ |
273 */ |
274 protected String paramString() { |
274 protected String paramString() { |
275 String str = ",align="; |
275 String align = ""; |
276 switch (alignment) { |
276 switch (alignment) { |
277 case LEFT: str += "left"; break; |
277 case LEFT: align = "left"; break; |
278 case CENTER: str += "center"; break; |
278 case CENTER: align = "center"; break; |
279 case RIGHT: str += "right"; break; |
279 case RIGHT: align = "right"; break; |
280 } |
280 } |
281 return super.paramString() + str + ",text=" + text; |
281 return super.paramString() + ",align=" + align + ",text=" + text; |
282 } |
282 } |
283 |
283 |
284 /** |
284 /** |
285 * Initialize JNI field and method IDs |
285 * Initialize JNI field and method IDs |
286 */ |
286 */ |