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

List of all members.

Public Member Functions

 RoundedBorder (Stroke stroke, Color strokeColor, Color backgroundColor, int margin, int outsideMargin, Insets points)

Protected Member Functions

Shape makeShape (int[] x, int[] y)

Detailed Description

Rectangle border with rounded borders pointing a given direction.

Author:
kma

Constructor & Destructor Documentation

metadone.client.grasyla2.visuallibrary.widgets.customBorders.RoundedBorder.RoundedBorder ( Stroke  stroke,
Color  strokeColor,
Color  backgroundColor,
int  margin,
int  outsideMargin,
Insets  points 
)

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.
pointsThe delta used to place the points (positive values point outside, negative inside)
Exceptions:
NullPointerExceptionwhen stroke, strokeColor or points is null

Member Function Documentation

Shape metadone.client.grasyla2.visuallibrary.widgets.customBorders.RoundedBorder.makeShape ( int[]  x,
int[]  y 
) [protected]

Builds the shape of the border from 8 points.

 0----1----2
 |         |
 7         3
 |         |
 6----5----4
 
Parameters:
xThe x positions
yThe y positions
Returns:
A shape to paint

Reimplemented from metadone.client.grasyla2.visuallibrary.widgets.customBorders.PointingBorder.


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