MetaDone
|
Public Member Functions | |
RoundedBorder (Stroke stroke, Color strokeColor, Color backgroundColor, int margin, int outsideMargin, Insets points) | |
Protected Member Functions | |
Shape | makeShape (int[] x, int[] y) |
Rectangle border with rounded borders pointing a given direction.
metadone.client.grasyla2.visuallibrary.widgets.customBorders.RoundedBorder.RoundedBorder | ( | Stroke | stroke, |
Color | strokeColor, | ||
Color | backgroundColor, | ||
int | margin, | ||
int | outsideMargin, | ||
Insets | points | ||
) |
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. |
points | The delta used to place the points (positive values point outside, negative inside) |
NullPointerException | when stroke, strokeColor or points is null |
Shape metadone.client.grasyla2.visuallibrary.widgets.customBorders.RoundedBorder.makeShape | ( | int[] | x, |
int[] | y | ||
) | [protected] |
Builds the shape of the border from 8 points.
0----1----2 | | 7 3 | | 6----5----4
x | The x positions |
y | The y positions |
Reimplemented from metadone.client.grasyla2.visuallibrary.widgets.customBorders.PointingBorder.