|
||||||||||
| 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.GradientHorizontalBackground
public class GradientHorizontalBackground
Generates a gradient from the left-color to the right-color. Copyright 2008 Enough Software
| Field Summary |
|---|
| Fields inherited from class de.enough.polish.ui.Background |
|---|
borderWidth |
| Constructor Summary | |
|---|---|
GradientHorizontalBackground(int leftColor,
int rightColor,
int stroke)
Creates a new gradient background |
|
GradientHorizontalBackground(int leftColor,
int rightColor,
int stroke,
Dimension start,
Dimension end)
Creates a new gradient background |
|
GradientHorizontalBackground(int leftColor,
int rightColor,
int stroke,
int start,
int end,
boolean isPercent)
Creates a new 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 GradientHorizontalBackground(int leftColor,
int rightColor,
int stroke)
leftColor - the color at the left edge of the gradientrightColor - the color at the right edge of the gradientstroke - the line stroke style
public GradientHorizontalBackground(int leftColor,
int rightColor,
int stroke,
int start,
int end,
boolean isPercent)
leftColor - the color at the top of the gradientrightColor - the color at the bottom of the gradientstroke - the line stroke stylestart - 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 percentisPercent - true when the start and end settings should be counted in percent
public GradientHorizontalBackground(int leftColor,
int rightColor,
int stroke,
Dimension start,
Dimension end)
leftColor - the color at the top of the gradientrightColor - the color at the bottom of the gradientstroke - the line stroke stylestart - 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| 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 | |||||||||