|
||||||||||
| 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.RoundRectCorneredBackground
public class RoundRectCorneredBackground
Paints a background with rounded and straight corners CSS-type is "round-rect-cornered"
Copyright (c) Enough Software 2008
| Field Summary | |
|---|---|
static int |
CORNER_ALL
Constant for using straight corners everywhere. |
static int |
CORNER_LEFT_BOTTOM
Constant for using a straight corner at the bottom left. |
static int |
CORNER_LEFT_TOP
Constant for using a straight corner at the top left. |
static int |
CORNER_NONE
Constant for using rounded corners everywhere. |
static int |
CORNER_RIGHT_BOTTOM
Constant for using a straight corner at the bottom right. |
static int |
CORNER_RIGHT_TOP
Constant for using a straight corner at the top right. |
| Fields inherited from class de.enough.polish.ui.Background |
|---|
borderWidth |
| Constructor Summary | |
|---|---|
RoundRectCorneredBackground(int color,
int arcWidth,
int arcHeight,
int straightCorners)
Creates a new round tab 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 CORNER_NONE
public static final int CORNER_LEFT_TOP
public static final int CORNER_RIGHT_TOP
public static final int CORNER_LEFT_BOTTOM
public static final int CORNER_RIGHT_BOTTOM
public static final int CORNER_ALL
| Constructor Detail |
|---|
public RoundRectCorneredBackground(int color,
int arcWidth,
int arcHeight,
int straightCorners)
color - the color of the backgroundarcWidth - the horizontal diameter of the arc at the top cornersarcHeight - the vertical diameter of the arc at the top cornersstraightCorners - a combination of CORNER constants that define the straight cornersCORNER_NONE,
CORNER_LEFT_TOP,
CORNER_RIGHT_TOP,
CORNER_LEFT_BOTTOM,
CORNER_RIGHT_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 | |||||||||