MetaDone
metadone.client.grasyla2.visuallibrary.widgets.customBorders.CubeBorder Class Reference
Inheritance diagram for metadone.client.grasyla2.visuallibrary.widgets.customBorders.CubeBorder:
Collaboration diagram for metadone.client.grasyla2.visuallibrary.widgets.customBorders.CubeBorder:

List of all members.

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

Detailed Description

Draws a cube as the border.

Author:
kma

Constructor & Destructor Documentation

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.

Parameters:
strokeThe stroke used to draw the lines.
strokeColorThe color of the stroke of the border.
backgroundColorThe color to fill the shape (null for a transparent shape).
marginThe margin between the border and the content.
outsideMarginThe outside margin.
dxThe delta x of the cube
dyThe 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().


Member Function Documentation

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]

Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations