MetaDone
|
Public Member Functions | |
RectangleBorder (Stroke stroke, Color strokeColor, Color backgroundColor, int margin, int outsideMargin) | |
void | paint (Graphics2D g, Rectangle bounds) |
Simple rectangular border.
metadone.client.grasyla2.visuallibrary.widgets.customBorders.RectangleBorder.RectangleBorder | ( | Stroke | stroke, |
Color | strokeColor, | ||
Color | backgroundColor, | ||
int | margin, | ||
int | outsideMargin | ||
) |
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. |
References metadone.client.grasyla2.visuallibrary.widgets.customBorders.AbstractCustomBorder.computeInsets(), and metadone.client.grasyla2.visuallibrary.widgets.customBorders.AbstractCustomBorder.getStrokeWidth().
void metadone.client.grasyla2.visuallibrary.widgets.customBorders.RectangleBorder.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.AbstractCustomBorder.isOpaque(), and metadone.client.grasyla2.visuallibrary.widgets.customBorders.AbstractCustomBorder.reduceBoundsForPaint().