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

List of all members.

Public Member Functions

 NoteBorder (Stroke stroke, Color strokeColor, Color backgroundColor, int margin, int outsideMargin, int noteSize)
 NoteBorder (Stroke stroke, Color strokeColor, Color backgroundColor, int margin, int outsideMargin, int noteSize, int oppositeMargin)
void paint (Graphics2D g, Rectangle bounds)

Private Attributes

final int noteSize

Detailed Description

A note border.

Author:
kma

Constructor & Destructor Documentation

metadone.client.grasyla2.visuallibrary.widgets.customBorders.NoteBorder.NoteBorder ( Stroke  stroke,
Color  strokeColor,
Color  backgroundColor,
int  margin,
int  outsideMargin,
int  noteSize 
)

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.
noteSizeThe size of the note (top left corner)

References metadone.client.grasyla2.visuallibrary.widgets.customBorders.AbstractCustomBorder.backgroundColor, metadone.client.grasyla2.visuallibrary.widgets.customBorders.AbstractCustomBorder.margin, metadone.client.grasyla2.visuallibrary.widgets.customBorders.NoteBorder.noteSize, metadone.client.grasyla2.visuallibrary.widgets.customBorders.AbstractCustomBorder.outsideMargin, metadone.client.grasyla2.visuallibrary.widgets.customBorders.AbstractCustomBorder.stroke, and metadone.client.grasyla2.visuallibrary.widgets.customBorders.AbstractCustomBorder.strokeColor.

metadone.client.grasyla2.visuallibrary.widgets.customBorders.NoteBorder.NoteBorder ( Stroke  stroke,
Color  strokeColor,
Color  backgroundColor,
int  margin,
int  outsideMargin,
int  noteSize,
int  oppositeMargin 
)

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.
noteSizeThe size of the note (top left corner)
oppositeMarginThe additional margin for the bottom left corner

References metadone.client.grasyla2.visuallibrary.widgets.customBorders.AbstractCustomBorder.computeInsets(), metadone.client.grasyla2.visuallibrary.widgets.customBorders.AbstractCustomBorder.getStrokeWidth(), and metadone.client.grasyla2.visuallibrary.widgets.customBorders.NoteBorder.noteSize.


Member Function Documentation


Member Data Documentation


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