|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.enough.polish.ui.Border
de.enough.polish.ui.borders.SimpleBorder
public class SimpleBorder
Paints a plain border in one color.
Copyright Enough Software 2004 - 2009
| Field Summary | |
|---|---|
protected int |
color
|
protected boolean |
isArgb
|
| Fields inherited from class de.enough.polish.ui.Border |
|---|
borderWidthBottom, borderWidthLeft, borderWidthRight, borderWidthTop |
| Constructor Summary | |
|---|---|
SimpleBorder(int color,
int borderWidth)
Creates a new simple border. |
|
SimpleBorder(int color,
int leftWidth,
int rightWidth,
int topWidth,
int bottomWidth)
Creates a new simple border. |
|
| Method Summary | |
|---|---|
void |
paint(int x,
int y,
int width,
int height,
Graphics g)
Paints this border. |
void |
setStyle(Style style)
Allows borders to be animated using CSS attribute animations. |
| Methods inherited from class de.enough.polish.ui.Border |
|---|
animate, animate, getBorderWidthBottom, getBorderWidthLeft, getBorderWidthRight, getBorderWidthTop, hideNotify, showNotify |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int color
protected final boolean isArgb
| Constructor Detail |
|---|
public SimpleBorder(int color,
int borderWidth)
color - the color of this border in RGB, e.g. 0xFFDD12borderWidth - the width of this border
public SimpleBorder(int color,
int leftWidth,
int rightWidth,
int topWidth,
int bottomWidth)
color - the color of this border in RGB, e.g. 0xFFDD12leftWidth - the width of this border on the left siderightWidth - the width of this border on the right sidetopWidth - the width of this border at the topbottomWidth - the width of this border at the bottom| Method Detail |
|---|
public void paint(int x,
int y,
int width,
int height,
Graphics g)
Border
paint in class Borderx - the horizontal start pointy - the vertical start pointwidth - the width of the borderheight - the height of the borderg - the Graphics on which the border should be painted.public void setStyle(Style style)
setStyle in class Borderstyle - the style containing typically only one element
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||