MetaDone
|
Public Member Functions | |
ParallelogramBorder (Stroke stroke, Color strokeColor, Color backgroundColor, int margin, int outsideMargin, Orientation orientation, int diffSize) | |
void | paint (Graphics2D g, Rectangle bounds) |
Static Protected Member Functions | |
static Insets | computeInsets (int delta, Orientation orientation, int diffSize) |
Static Private Member Functions | |
static void | shrinkToParallelogram (int[] arr, int diff) |
Private Attributes | |
final Orientation | orientation |
final int | diffSize |
Draws a parallelogram border.
metadone.client.grasyla2.visuallibrary.widgets.customBorders.ParallelogramBorder.ParallelogramBorder | ( | Stroke | stroke, |
Color | strokeColor, | ||
Color | backgroundColor, | ||
int | margin, | ||
int | outsideMargin, | ||
Orientation | orientation, | ||
int | diffSize | ||
) |
Initializes this border.
For example, horizontal orientation with negative lean will be rendered as:
0-------1 \ \ 3-------2
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. |
orientation | The orientation of the parallelogram |
diffSize | The size the the lean |
References metadone.client.grasyla2.visuallibrary.widgets.customBorders.ParallelogramBorder.computeInsets(), metadone.client.grasyla2.visuallibrary.widgets.customBorders.ParallelogramBorder.diffSize, metadone.client.grasyla2.visuallibrary.widgets.customBorders.AbstractCustomBorder.getStrokeWidth(), and metadone.client.grasyla2.visuallibrary.widgets.customBorders.ParallelogramBorder.orientation.
static Insets metadone.client.grasyla2.visuallibrary.widgets.customBorders.ParallelogramBorder.computeInsets | ( | int | delta, |
Orientation | orientation, | ||
int | diffSize | ||
) | [static, protected] |
void metadone.client.grasyla2.visuallibrary.widgets.customBorders.ParallelogramBorder.paint | ( | Graphics2D | g, |
Rectangle | bounds | ||
) |
References metadone.client.grasyla2.visuallibrary.widgets.customBorders.ParallelogramBorder.diffSize, 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.ParallelogramBorder.orientation, metadone.client.grasyla2.visuallibrary.widgets.customBorders.AbstractCustomBorder.reduceBoundsForPaint(), and metadone.client.grasyla2.visuallibrary.widgets.customBorders.ParallelogramBorder.shrinkToParallelogram().
static void metadone.client.grasyla2.visuallibrary.widgets.customBorders.ParallelogramBorder.shrinkToParallelogram | ( | int[] | arr, |
int | diff | ||
) | [static, private] |
final Orientation metadone.client.grasyla2.visuallibrary.widgets.customBorders.ParallelogramBorder.orientation [private] |