MetaDone
metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.QuadAnchorShape Class Reference
Inheritance diagram for metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.QuadAnchorShape:
Collaboration diagram for metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.QuadAnchorShape:

List of all members.

Public Member Functions

 QuadAnchorShape (Stroke stroke, boolean filled, Color fillColor, int height, int endSize, int centerSize)
double getCutDistance ()
int getRadius ()
String toString ()

Static Private Member Functions

static Shape makeShape (int height, int endSize, int centerSize)

Private Attributes

final int radius
final int cutDistance

Detailed Description

An anchor shape that draws a quadrilateral.

This shape may be used to draw arrows, rhombs, etc...

The drawn shape starts by going to the center of the edge by the centerSize and with given height. Then the line goes to the edge at a distance of endSize from the beginning point.

For example you can draw:

  • A triangle: centerSize == endSize
  • A rhomb: centerSize * 2 == endSize
  • An arrow: centerSize > endSize
  • ...

The shape is a polygon composed of points: (0,0)-(centerSize,height)-(endSize,0)-(centerSize,-height)

Author:
kma

Constructor & Destructor Documentation

metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.QuadAnchorShape.QuadAnchorShape ( Stroke  stroke,
boolean  filled,
Color  fillColor,
int  height,
int  endSize,
int  centerSize 
)

Initializes this shape.

Parameters:
strokeThe stroke (optional)
filledWhether the shape is filled
fillColorThe color with which the shape is filled (optional)
heightThe height of the shape
endSizeendSize QuadAnchorShape
centerSizecenterSize QuadAnchorShape
See also:
QuadAnchorShape
AbstractCustomAnchorShape

References metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.QuadAnchorShape.cutDistance, metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.QuadAnchorShape.makeShape(), and metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.QuadAnchorShape.radius.


Member Function Documentation

double metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.QuadAnchorShape.getCutDistance ( )
int metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.QuadAnchorShape.getRadius ( )
static Shape metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.QuadAnchorShape.makeShape ( int  height,
int  endSize,
int  centerSize 
) [static, private]
String metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.QuadAnchorShape.toString ( )

Member Data Documentation


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