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

List of all members.

Public Member Functions

 CylinderBorder (Stroke stroke, Color strokeColor, Color backgroundColor, int margin, int outsideMargin, int topsize, Direction direction)
void paint (Graphics2D g, Rectangle bounds)

Static Protected Member Functions

static Insets computeInsets (int delta, int topsize, Direction dir)

Private Attributes

final int topsize
final Direction cylinderDir

Detailed Description

A cylinder drawn as a border.

Author:
kma

Constructor & Destructor Documentation

metadone.client.grasyla2.visuallibrary.widgets.customBorders.CylinderBorder.CylinderBorder ( Stroke  stroke,
Color  strokeColor,
Color  backgroundColor,
int  margin,
int  outsideMargin,
int  topsize,
Direction  direction 
)

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.
topsizeThe size of the top side of the cylinder
directionThe direction pointed by the top side of the cylinder

References metadone.client.grasyla2.visuallibrary.widgets.customBorders.CylinderBorder.computeInsets(), metadone.client.grasyla2.visuallibrary.widgets.customBorders.CylinderBorder.cylinderDir, metadone.client.grasyla2.visuallibrary.widgets.customBorders.AbstractCustomBorder.getStrokeWidth(), and metadone.client.grasyla2.visuallibrary.widgets.customBorders.CylinderBorder.topsize.


Member Function Documentation

static Insets metadone.client.grasyla2.visuallibrary.widgets.customBorders.CylinderBorder.computeInsets ( int  delta,
int  topsize,
Direction  dir 
) [static, protected]

Member Data Documentation


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