de.enough.polish.ui.borders
Class RightBorder
java.lang.Object
de.enough.polish.ui.Border
de.enough.polish.ui.borders.RightBorder
- All Implemented Interfaces:
- Serializable
public class RightBorder
- extends Border
Paints a plain border in one color at the right side of the item.
Copyright Enough Software 2005 - 2009
- Author:
- Robert Virkus, robert@enough.de
|
Constructor Summary |
RightBorder(int color,
int borderWidth)
Creates a new simple border. |
|
Method Summary |
void |
paint(int x,
int y,
int width,
int height,
Graphics g)
Paints this border. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RightBorder
public RightBorder(int color,
int borderWidth)
- Creates a new simple border.
- Parameters:
color - the color of this border in RGB, e.g. 0xFFDD12borderWidth - the width of this border
paint
public void paint(int x,
int y,
int width,
int height,
Graphics g)
- Description copied from class:
Border
- Paints this border.
- Specified by:
paint in class Border
- Parameters:
x - 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.