de.enough.polish.ui.backgrounds
Class BorderedRoundTabBackground

java.lang.Object
  extended by de.enough.polish.ui.Background
      extended by de.enough.polish.ui.backgrounds.BorderedRoundTabBackground
All Implemented Interfaces:
Serializable

public class BorderedRoundTabBackground
extends Background

Paints a rectangle with top round corners and a border.

Copyright Enough Software 2005 - 2009

Author:
Robert Virkus, robert@enough.de

Field Summary
 
Fields inherited from class de.enough.polish.ui.Background
borderWidth
 
Constructor Summary
BorderedRoundTabBackground(int color, int arcWidth, int arcHeight, int borderColor, int borderWidth)
          Creates a new round rectangle background with a border.
 
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 de.enough.polish.ui.Background
addRelativeToBackgroundRegion, animate, animate, hideNotify, releaseResources, showNotify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BorderedRoundTabBackground

public BorderedRoundTabBackground(int color,
                                  int arcWidth,
                                  int arcHeight,
                                  int borderColor,
                                  int borderWidth)
Creates a new round rectangle background with a border.

Parameters:
color - the color of the background
arcWidth - the horizontal diameter of the arc at the four corners
arcHeight - the vertical diameter of the arc at the four corners
borderColor - the color of the border
borderWidth - the width of the border
Method Detail

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 point
y - the vertical start point
width - the width of the background
height - the height of the background
g - 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