MetaDone
|
Public Member Functions | |
CylinderBorder (Stroke stroke, Color strokeColor, Color backgroundColor, int margin, int outsideMargin, int topsize, Direction direction) | |
void | paint (Graphics2D g, Rectangle bounds) |
Static Protected Member Functions | |
static Insets | computeInsets (int delta, int topsize, Direction dir) |
Private Attributes | |
final int | topsize |
final Direction | cylinderDir |
A cylinder drawn as a border.
metadone.client.grasyla2.visuallibrary.widgets.customBorders.CylinderBorder.CylinderBorder | ( | Stroke | stroke, |
Color | strokeColor, | ||
Color | backgroundColor, | ||
int | margin, | ||
int | outsideMargin, | ||
int | topsize, | ||
Direction | direction | ||
) |
Initializes this border.
stroke | The stroke used to draw the lines. |
strokeColor | The color of the stroke of the border. |
backgroundColor | The color to fill the shape (null for a transparent shape). |
margin | The margin between the border and the content. |
outsideMargin | The outside margin. |
topsize | The size of the top side of the cylinder |
direction | The direction pointed by the top side of the cylinder |
References metadone.client.grasyla2.visuallibrary.widgets.customBorders.CylinderBorder.computeInsets(), metadone.client.grasyla2.visuallibrary.widgets.customBorders.CylinderBorder.cylinderDir, metadone.client.grasyla2.visuallibrary.widgets.customBorders.AbstractCustomBorder.getStrokeWidth(), and metadone.client.grasyla2.visuallibrary.widgets.customBorders.CylinderBorder.topsize.
static Insets metadone.client.grasyla2.visuallibrary.widgets.customBorders.CylinderBorder.computeInsets | ( | int | delta, |
int | topsize, | ||
Direction | dir | ||
) | [static, protected] |
void metadone.client.grasyla2.visuallibrary.widgets.customBorders.CylinderBorder.paint | ( | Graphics2D | g, |
Rectangle | bounds | ||
) |
References metadone.client.grasyla2.visuallibrary.widgets.customBorders.CylinderBorder.cylinderDir, metadone.client.grasyla2.visuallibrary.widgets.customBorders.AbstractCustomBorder.getBackgroundColor(), metadone.client.grasyla2.visuallibrary.widgets.customBorders.AbstractCustomBorder.getOutsideMargin(), metadone.client.grasyla2.visuallibrary.widgets.customBorders.AbstractCustomBorder.getStroke(), metadone.client.grasyla2.visuallibrary.widgets.customBorders.AbstractCustomBorder.getStrokeColor(), metadone.client.grasyla2.visuallibrary.widgets.customBorders.AbstractCustomBorder.isOpaque(), metadone.client.grasyla2.visuallibrary.widgets.customBorders.AbstractCustomBorder.reduceBoundsForPaint(), and metadone.client.grasyla2.visuallibrary.widgets.customBorders.CylinderBorder.topsize.
final Direction metadone.client.grasyla2.visuallibrary.widgets.customBorders.CylinderBorder.cylinderDir [private] |