< prev index next >
src/java.desktop/share/classes/javax/swing/plaf/metal/MetalUtils.java
Print this page
*** 185,195 ****
//
// Ocean specific stuff.
//
/**
* Draws a radial type gradient. The gradient will be drawn vertically if
! * <code>vertical</code> is true, otherwise horizontally.
* The UIManager key consists of five values:
* r1 r2 c1 c2 c3. The gradient is broken down into four chunks drawn
* in order from the origin.
* <ol>
* <li>Gradient r1 % of the size from c1 to c2
--- 185,195 ----
//
// Ocean specific stuff.
//
/**
* Draws a radial type gradient. The gradient will be drawn vertically if
! * {@code vertical} is true, otherwise horizontally.
* The UIManager key consists of five values:
* r1 r2 c1 c2 c3. The gradient is broken down into four chunks drawn
* in order from the origin.
* <ol>
* <li>Gradient r1 % of the size from c1 to c2
*** 204,214 ****
* @param x X coordinate to draw from
* @param y Y coordinate to draw from
* @param w Width to draw to
* @param h Height to draw to
* @param vertical Direction of the gradient
! * @return true if <code>key</code> exists, otherwise false.
*/
static boolean drawGradient(Component c, Graphics g, String key,
int x, int y, int w, int h, boolean vertical) {
@SuppressWarnings("unchecked")
java.util.List<?> gradient = (java.util.List)UIManager.get(key);
--- 204,214 ----
* @param x X coordinate to draw from
* @param y Y coordinate to draw from
* @param w Width to draw to
* @param h Height to draw to
* @param vertical Direction of the gradient
! * @return true if {@code key} exists, otherwise false.
*/
static boolean drawGradient(Component c, Graphics g, String key,
int x, int y, int w, int h, boolean vertical) {
@SuppressWarnings("unchecked")
java.util.List<?> gradient = (java.util.List)UIManager.get(key);
< prev index next >