|
||||||||||
| 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.GradientRadialBackground
public class GradientRadialBackground
Generates a radial gradient from the inner-color to the outer-color.
| Field Summary |
|---|
| Fields inherited from class de.enough.polish.ui.Background |
|---|
borderWidth |
| Constructor Summary | |
|---|---|
GradientRadialBackground(int innerColor,
int outerColor,
Dimension start,
Dimension end,
Dimension centerX,
Dimension centerY)
Creates a new radial gradient background |
|
GradientRadialBackground(int innerColor,
int outerColor,
int start,
int end)
Creates a new radial gradient background |
|
GradientRadialBackground(int innerColor,
int outerColor,
int start,
int end,
int centerX,
int centerY)
Creates a new radial gradient 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 GradientRadialBackground(int innerColor,
int outerColor,
int start,
int end)
innerColor - the color at the top of the gradientouterColor - the color at the bottom of the gradientstart - the line counted from the top at which the gradient starts, either in pixels or in percentend - the line counted from the top at which the gradient ends, either in pixels or in percent
public GradientRadialBackground(int innerColor,
int outerColor,
int start,
int end,
int centerX,
int centerY)
innerColor - the color at the top of the gradientouterColor - the color at the bottom of the gradientstart - the line counted from the top at which the gradient starts, either in pixels or in percentend - the line counted from the top at which the gradient ends, either in pixels or in percentcenterX - the horizontal center in percent. 0 is the center, -100 is the very left, +100 the very rightcenterY - the vertical center in percent. 0 is the center, -100 is the very top, +100 the very bottom
public GradientRadialBackground(int innerColor,
int outerColor,
Dimension start,
Dimension end,
Dimension centerX,
Dimension centerY)
innerColor - the color at the top of the gradientouterColor - the color at the bottom of the gradientstart - the line counted from the top at which the gradient starts, either in pixels or in percentend - the line counted from the top at which the gradient ends, either in pixels or in percentcenterX - the horizontal center in percent. 0 is the center, -100 is the very left, +100 the very rightcenterY - the vertical center in percent. 0 is the center, -100 is the very top, +100 the very bottom| 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 | |||||||||