|
||||||||||
| 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.BorderedSimpleBackground
public class BorderedSimpleBackground
Paints a filled rectangle with a border around it as a background.
This background-type can save some memory and processing time, when used instead of the SimpleBackground and a SimpleBorder together.
Copyright Enough Software 2004 - 2009
| Field Summary |
|---|
| Fields inherited from class de.enough.polish.ui.Background |
|---|
borderWidth |
| Constructor Summary | |
|---|---|
BorderedSimpleBackground(Color color,
Color borderColor,
int borderWidth)
Creates a new simple background with a border. |
|
BorderedSimpleBackground(int color,
int borderColor,
int borderWidth)
Creates a new simple background with a border. |
|
| 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 BorderedSimpleBackground(int color,
int borderColor,
int borderWidth)
color - the color of the backgroundborderColor - the color of the borderborderWidth - the width of the border
public BorderedSimpleBackground(Color color,
Color borderColor,
int borderWidth)
color - the color of the backgroundborderColor - the color of the borderborderWidth - the width of the border| 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 | |||||||||