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

List of all members.

Public Member Functions

 ParallelogramBorder (Stroke stroke, Color strokeColor, Color backgroundColor, int margin, int outsideMargin, Orientation orientation, int diffSize)
void paint (Graphics2D g, Rectangle bounds)

Static Protected Member Functions

static Insets computeInsets (int delta, Orientation orientation, int diffSize)

Static Private Member Functions

static void shrinkToParallelogram (int[] arr, int diff)

Private Attributes

final Orientation orientation
final int diffSize

Detailed Description

Draws a parallelogram border.

Author:
kma

Constructor & Destructor Documentation

metadone.client.grasyla2.visuallibrary.widgets.customBorders.ParallelogramBorder.ParallelogramBorder ( Stroke  stroke,
Color  strokeColor,
Color  backgroundColor,
int  margin,
int  outsideMargin,
Orientation  orientation,
int  diffSize 
)

Initializes this border.

For example, horizontal orientation with negative lean will be rendered as:

 0-------1
  \       \
   3-------2
 
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.
orientationThe orientation of the parallelogram
diffSizeThe size the the lean

References metadone.client.grasyla2.visuallibrary.widgets.customBorders.ParallelogramBorder.computeInsets(), metadone.client.grasyla2.visuallibrary.widgets.customBorders.ParallelogramBorder.diffSize, metadone.client.grasyla2.visuallibrary.widgets.customBorders.AbstractCustomBorder.getStrokeWidth(), and metadone.client.grasyla2.visuallibrary.widgets.customBorders.ParallelogramBorder.orientation.


Member Function Documentation

static Insets metadone.client.grasyla2.visuallibrary.widgets.customBorders.ParallelogramBorder.computeInsets ( int  delta,
Orientation  orientation,
int  diffSize 
) [static, protected]
static void metadone.client.grasyla2.visuallibrary.widgets.customBorders.ParallelogramBorder.shrinkToParallelogram ( int[]  arr,
int  diff 
) [static, private]

Member Data Documentation


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