|
||||||||||
| 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.PartialSimpleBackground
public class PartialSimpleBackground
Provides a partial background - this background will be usually used within a combined background.
backgrounds {
partialTop {
type: partial;
start: 0%;
end: 20%;
color: white;
}
partialBottom {
type: partial;
start: 20%;
end: 100%;
color: blue;
}
}
.myForm {
background {
type: combined;
foreground: partialTop;
background: partialBottom;
}
}
Copyright Enough Software 2007 - 2009
history
Dec 28, 2007 - rob creation
| Field Summary |
|---|
| Fields inherited from class de.enough.polish.ui.Background |
|---|
borderWidth |
| Constructor Summary | |
|---|---|
PartialSimpleBackground(int color,
Dimension start,
Dimension end)
Creates a new gradient background |
|
PartialSimpleBackground(int color,
int start,
int end)
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 PartialSimpleBackground(int color,
int start,
int end)
color - the colorstart - the line counted from the top at which the gradient starts in percentend - the line counted from the top at which the gradient ends in percent
public PartialSimpleBackground(int color,
Dimension start,
Dimension end)
color - the colorstart - the line counted from the top at which the gradient starts in percentend - the line counted from the top at which the gradient ends 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 | |||||||||