|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.enough.polish.ui.Background
de.enough.polish.ui.backgrounds.Web20RoundRectBackground
public class Web20RoundRectBackground
Paints a rectangle with round corners as a background.
Copyright Enough Software 2006 - 2009
| Field Summary |
|---|
| Fields inherited from class de.enough.polish.ui.Background |
|---|
borderWidth, parent |
| Constructor Summary | |
|---|---|
Web20RoundRectBackground(Color colorObj,
int arcWidth,
int arcHeight,
Color circleColorObj,
int circleAnchor,
int paddingLeft,
int paddingRight,
int paddingTop,
int paddingBottom)
Creates a new round rectangle background. |
|
Web20RoundRectBackground(int color,
int arcWidth,
int arcHeight,
int circleColor,
int circleAnchor,
int paddingLeft,
int paddingRight,
int paddingTop,
int paddingBottom)
Creates a new round rectangle background. |
|
| 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, setParentItem, showNotify |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Web20RoundRectBackground(int color,
int arcWidth,
int arcHeight,
int circleColor,
int circleAnchor,
int paddingLeft,
int paddingRight,
int paddingTop,
int paddingBottom)
color - the color of the backgroundarcWidth - the horizontal diameter of the arc at the four cornersarcHeight - the vertical diameter of the arc at the four cornerscircleColor - the color of the circle arc blended over the rounded backgroundcircleAnchor - the anchor of the circle, either Graphics.TOP, Graphics.BOTTOM, Graphics.LEFT or Graphics.RIGHTpaddingLeft - the padding between the round edges and the background's left boundarypaddingRight - the padding between the round edges and the background's right boundarypaddingTop - the padding between the round edges and the background's top boundarypaddingBottom - the padding between the round edges and the background's bottom boundary
public Web20RoundRectBackground(Color colorObj,
int arcWidth,
int arcHeight,
Color circleColorObj,
int circleAnchor,
int paddingLeft,
int paddingRight,
int paddingTop,
int paddingBottom)
colorObj - the color of the backgroundarcWidth - the horizontal diameter of the arc at the four cornersarcHeight - the vertical diameter of the arc at the four cornerscircleColorObj - the color of the circle arc blended over the rounded backgroundcircleAnchor - the anchor of the circle, either Graphics.TOP, Graphics.BOTTOM, Graphics.LEFT or Graphics.RIGHTpaddingLeft - the padding between the round edges and the background's left boundarypaddingRight - the padding between the round edges and the background's right boundarypaddingTop - the padding between the round edges and the background's top boundarypaddingBottom - the padding between the round edges and the background's bottom boundary| Method Detail |
|---|
public void paint(int x,
int y,
int width,
int height,
Graphics g)
Background
paint in class Backgroundx - 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.public void setStyle(Style style)
Background
setStyle in class Backgroundstyle - the style containing typically only one element
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||