|
||||||||||
| 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.TriangleBackground
public class TriangleBackground
Paints a filled rectangle as a background in a specific color.
Copyright Enough Software 2007 - 2009
| Field Summary | |
|---|---|
static int |
BOTTOM
Orientation for pointing the triangle downwards |
static int |
LEFT
Orientation for pointing the triangle to the left |
static int |
RIGHT
Orientation for pointing the triangle to the right |
static int |
TOP
Orientation for pointing the triangle upwards |
| Fields inherited from class de.enough.polish.ui.Background |
|---|
borderWidth |
| Constructor Summary | |
|---|---|
TriangleBackground(int color,
int orientation)
Creates a new triangle 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 |
| Field Detail |
|---|
public static final int TOP
public static final int BOTTOM
public static final int LEFT
public static final int RIGHT
| Constructor Detail |
|---|
public TriangleBackground(int color,
int orientation)
color - the color of the background in RGB, e.g. 0xFFDD11orientation - the orientation, either TOP, BOTTOM, LEFT, RIGHT| 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 | |||||||||