MetaDone
|
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 |
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:
The shape is a polygon composed of points: (0,0)-(centerSize,height)-(endSize,0)-(centerSize,-height)
metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.QuadAnchorShape.QuadAnchorShape | ( | Stroke | stroke, |
boolean | filled, | ||
Color | fillColor, | ||
int | height, | ||
int | endSize, | ||
int | centerSize | ||
) |
Initializes this shape.
stroke | The stroke (optional) |
filled | Whether the shape is filled |
fillColor | The color with which the shape is filled (optional) |
height | The height of the shape |
endSize | endSize QuadAnchorShape |
centerSize | centerSize QuadAnchorShape |
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.
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 | ( | ) |
final int metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.QuadAnchorShape.cutDistance [private] |
Referenced by metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.QuadAnchorShape.getCutDistance(), metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.QuadAnchorShape.QuadAnchorShape(), and metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.QuadAnchorShape.toString().
final int metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.QuadAnchorShape.radius [private] |
Referenced by metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.QuadAnchorShape.getRadius(), metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.QuadAnchorShape.QuadAnchorShape(), and metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.QuadAnchorShape.toString().