MetaDone
|
Public Member Functions | |
CubeBorder (Stroke stroke, Color strokeColor, Color backgroundColor, int margin, int outsideMargin, int dx, int dy) | |
void | paint (Graphics2D g, Rectangle bounds) |
Package Attributes | |
final int | dy |
Static Private Member Functions | |
static Point2D | translated (Point2D p, int dx, int dy) |
static Point2D[] | replacePoint (Point2D[] p, int index, Point2D[] substitute) |
static Polygon | polygonFromPoints (Point2D[] points) |
Private Attributes | |
final int | dx |
Draws a cube as the border.
metadone.client.grasyla2.visuallibrary.widgets.customBorders.CubeBorder.CubeBorder | ( | Stroke | stroke, |
Color | strokeColor, | ||
Color | backgroundColor, | ||
int | margin, | ||
int | outsideMargin, | ||
int | dx, | ||
int | dy | ||
) |
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. |
dx | The delta x of the cube |
dy | The delta y of the cube |
References metadone.client.grasyla2.visuallibrary.widgets.customBorders.AbstractCustomBorder.computeInsets(), metadone.client.grasyla2.visuallibrary.widgets.customBorders.CubeBorder.dx, metadone.client.grasyla2.visuallibrary.widgets.customBorders.CubeBorder.dy, and metadone.client.grasyla2.visuallibrary.widgets.customBorders.AbstractCustomBorder.getStrokeWidth().
void metadone.client.grasyla2.visuallibrary.widgets.customBorders.CubeBorder.paint | ( | Graphics2D | g, |
Rectangle | bounds | ||
) |
References metadone.client.grasyla2.visuallibrary.widgets.customBorders.CubeBorder.dx, metadone.client.grasyla2.visuallibrary.widgets.customBorders.CubeBorder.dy, 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.CubeBorder.polygonFromPoints(), metadone.client.grasyla2.visuallibrary.widgets.customBorders.AbstractCustomBorder.reduceBoundsForPaint(), metadone.client.grasyla2.visuallibrary.widgets.customBorders.CubeBorder.replacePoint(), and metadone.client.grasyla2.visuallibrary.widgets.customBorders.CubeBorder.translated().
static Polygon metadone.client.grasyla2.visuallibrary.widgets.customBorders.CubeBorder.polygonFromPoints | ( | Point2D[] | points | ) | [static, private] |
static Point2D [] metadone.client.grasyla2.visuallibrary.widgets.customBorders.CubeBorder.replacePoint | ( | Point2D[] | p, |
int | index, | ||
Point2D[] | substitute | ||
) | [static, private] |
static Point2D metadone.client.grasyla2.visuallibrary.widgets.customBorders.CubeBorder.translated | ( | Point2D | p, |
int | dx, | ||
int | dy | ||
) | [static, private] |
final int metadone.client.grasyla2.visuallibrary.widgets.customBorders.CubeBorder.dx [private] |
final int metadone.client.grasyla2.visuallibrary.widgets.customBorders.CubeBorder.dy [package] |