|
||||||||||
| 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.CircleBackground
public class CircleBackground
Paints a circular or elliptical background.
Following CSS-attributes are supported:
Copyright Enough Software 2004 - 2009
| Field Summary |
|---|
| Fields inherited from class de.enough.polish.ui.Background |
|---|
borderWidth |
| Constructor Summary | |
|---|---|
CircleBackground(int color,
int diameter,
int anchor,
int xOffset,
int yOffset)
Creates a new circle 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, showNotify |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CircleBackground(int color,
int diameter,
int anchor,
int xOffset,
int yOffset)
color - the color of the background.diameter - the diameter of the background in pixels (positive numbers) or percent (negative numbers), when -1 this will
be ignored, otherwise this will result in a centered circle
(instead of an ellipse).anchor - the anchor of the background, e.g. Graphics.RIGHT | Graphics.VCENTERxOffset - The number of pixels to move the image horizontally, negative values move it to the left.yOffset - The number of pixels to move the image vertically, negative values move it to the top.| 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 | |||||||||