de.enough.polish.ui.backgrounds
Class VerticalSplitRoundRectBackground
java.lang.Object
de.enough.polish.ui.Background
de.enough.polish.ui.backgrounds.VerticalSplitRoundRectBackground
- All Implemented Interfaces:
- Serializable
public class VerticalSplitRoundRectBackground
- extends Background
Creates a rectangular background with two colors and rounded corners.
Copyright Enough Software 2008
- Author:
- Robert Virkus, j2mepolish@enough.de
|
Method Summary |
void |
paint(int x,
int y,
int width,
int height,
Graphics g)
Paints this background. |
void |
setStyle(Style style)
Allows backgrounds to be animated using CSS attribute animations. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VerticalSplitRoundRectBackground
public VerticalSplitRoundRectBackground(int topColor,
int bottomColor,
int splitPos,
int arcWidth,
int arcHeight)
- Creates a new background
- Parameters:
topColor - the top colorbottomColor - the bottom colorsplitPos - the split position either in percent (0 - 100) or in pixels, negative values are interpreted as percentarcWidth - the horizontal diameter of the arc at the four cornersarcHeight - the vertical diameter of the arc at the four corners
paint
public void paint(int x,
int y,
int width,
int height,
Graphics g)
- Description copied from class:
Background
- Paints this background.
- Specified by:
paint in class Background
- Parameters:
x - the horizontal start pointy - the vertical start pointwidth - the width of the backgroundheight - the height of the backgroundg - the Graphics on which the background should be painted.
setStyle
public void setStyle(Style style)
- Description copied from class:
Background
- Allows backgrounds to be animated using CSS attribute animations.
- Overrides:
setStyle in class Background
- Parameters:
style - the style containing typically only one element