MetaDone
|
Public Member Functions | |
PointingBorder (Stroke stroke, Color strokeColor, Color backgroundColor, int margin, int outsideMargin, Insets points) | |
Insets | getBorderInsets () |
void | paint (Graphics2D g, Rectangle bounds) |
Protected Member Functions | |
Shape | makeShape (int[] x, int[] y) |
Private Attributes | |
final Insets | insets |
Rectangle border with borders pointing a given direction.
metadone.client.grasyla2.visuallibrary.widgets.customBorders.PointingBorder.PointingBorder | ( | 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 |
References metadone.client.grasyla2.visuallibrary.widgets.customBorders.AbstractCustomBorder.computeInsets(), metadone.client.grasyla2.visuallibrary.widgets.customBorders.AbstractCustomBorder.getStrokeWidth(), and metadone.client.grasyla2.visuallibrary.widgets.customBorders.PointingBorder.insets.
Insets metadone.client.grasyla2.visuallibrary.widgets.customBorders.PointingBorder.getBorderInsets | ( | ) |
Shape metadone.client.grasyla2.visuallibrary.widgets.customBorders.PointingBorder.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 in metadone.client.grasyla2.visuallibrary.widgets.customBorders.RoundedBorder.
Referenced by metadone.client.grasyla2.visuallibrary.widgets.customBorders.PointingBorder.paint().
void metadone.client.grasyla2.visuallibrary.widgets.customBorders.PointingBorder.paint | ( | Graphics2D | g, |
Rectangle | bounds | ||
) |
References 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.PointingBorder.insets, metadone.client.grasyla2.visuallibrary.widgets.customBorders.AbstractCustomBorder.isOpaque(), metadone.client.grasyla2.visuallibrary.widgets.customBorders.PointingBorder.makeShape(), and metadone.client.grasyla2.visuallibrary.widgets.customBorders.AbstractCustomBorder.reduceBoundsForPaint().
final Insets metadone.client.grasyla2.visuallibrary.widgets.customBorders.PointingBorder.insets [private] |
Reimplemented from metadone.client.grasyla2.visuallibrary.widgets.customBorders.AbstractCustomBorder.
Referenced by metadone.client.grasyla2.visuallibrary.widgets.customBorders.PointingBorder.getBorderInsets(), metadone.client.grasyla2.visuallibrary.widgets.customBorders.PointingBorder.paint(), and metadone.client.grasyla2.visuallibrary.widgets.customBorders.PointingBorder.PointingBorder().