< prev index next >
src/java.desktop/share/classes/com/sun/java/swing/plaf/windows/XPStyle.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 2002, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 2002, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 125,135 ****
/** Get a named <code>String</code> value from the current style
*
* @param part a <code>Part</code>
* @param state a <code>String</code>
! * @param attributeKey a <code>String</code>
* @return a <code>String</code> or null if key is not found
* in the current style
*
* This is currently only used by WindowsInternalFrameTitlePane for painting
* title foregound and can be removed when no longer needed
--- 125,135 ----
/** Get a named <code>String</code> value from the current style
*
* @param part a <code>Part</code>
* @param state a <code>String</code>
! * @param prop a <code>String</code>
* @return a <code>String</code> or null if key is not found
* in the current style
*
* This is currently only used by WindowsInternalFrameTitlePane for painting
* title foregound and can be removed when no longer needed
*** 170,180 ****
prop.getValue());
}
/** Get a named <code>Dimension</code> value from the current style
*
- * @param key a <code>String</code>
* @return a <code>Dimension</code> or null if key is not found
* in the current style
*
* This is currently only used by WindowsProgressBarUI and the value
* should probably be cached there instead of here.
--- 170,179 ----
*** 187,197 ****
}
/** Get a named <code>Point</code> (e.g. a location or an offset) value
* from the current style
*
- * @param key a <code>String</code>
* @return a <code>Point</code> or null if key is not found
* in the current style
*
* This is currently only used by WindowsInternalFrameTitlePane for painting
* title foregound and can be removed when no longer needed
--- 186,195 ----
*** 203,213 ****
return (d != null) ? new Point(d.width, d.height) : new Point();
}
/** Get a named <code>Insets</code> value from the current style
*
- * @param key a <code>String</code>
* @return an <code>Insets</code> object or null if key is not found
* in the current style
*
* This is currently only used to create borders and by
* WindowsInternalFrameTitlePane for painting title foregound.
--- 201,210 ----
*** 221,231 ****
}
/** Get a named <code>Color</code> value from the current style
*
- * @param part a <code>Part</code>
* @return a <code>Color</code> or null if key is not found
* in the current style
*/
synchronized Color getColor(Skin skin, Prop prop, Color fallback) {
String key = skin.toString() + "." + prop.name();
--- 218,227 ----
< prev index next >