public class GradiatedBackground extends AbstractBackground
| Constructor and Description |
|---|
GradiatedBackground()
Creates a gradiated background with defaults colors: from dark gray to white.
|
GradiatedBackground(Color from,
Color to)
Creates a gradiated background with specified from and to colors.
|
| Modifier and Type | Method and Description |
|---|---|
BufferedImage |
getBackground(int width,
int height)
Returns the background by the given width and height.
|
addBackgroundpublic GradiatedBackground()
public BufferedImage getBackground(int width, int height)
Backgroundwidth - width in pixels.height - height in pixels.Copyright © 2015. All rights reserved.