MetaDone
|
Public Member Functions | |
ShapeAwareAnchor (Widget widget) | |
Result | compute (Entry entry) |
Protected Member Functions | |
Result | computeResult (Point from, Point to) |
Result | computeResult (Point from, Point to, AbstractWidgetShape shape) |
An anchor aware of the shape of the widget.
metadone.client.grasyla2.visuallibrary.widgets.backgrounds.ShapeAwareAnchor.ShapeAwareAnchor | ( | Widget | widget | ) |
Initializes this widget.
widget | The widget containing a shape |
Result metadone.client.grasyla2.visuallibrary.widgets.backgrounds.ShapeAwareAnchor.compute | ( | Entry | entry | ) |
Result metadone.client.grasyla2.visuallibrary.widgets.backgrounds.ShapeAwareAnchor.computeResult | ( | Point | from, |
Point | to, | ||
AbstractWidgetShape | shape | ||
) | [protected] |
Computes the result with a found shape.
from | The related location |
to | The opposite location |
shape | The shape |
References metadone.client.grasyla2.visuallibrary.widgets.backgrounds.AbstractWidgetShape.computeAnchorPoint(), metadone.client.grasyla2.visuallibrary.widgets.backgrounds.AbstractWidgetShape.computeDirection(), and metadone.client.grasyla2.visuallibrary.widgets.backgrounds.ShapeAwareAnchor.computeResult().
Result metadone.client.grasyla2.visuallibrary.widgets.backgrounds.ShapeAwareAnchor.computeResult | ( | Point | from, |
Point | to | ||
) | [protected] |
Computes the result.
from | The related location |
to | The opposite location |
References metadone.client.grasyla2.visuallibrary.widgets.backgrounds.AbstractWidgetShape.computeDirection(), and metadone.client.grasyla2.visuallibrary.widgets.backgrounds.AbstractWidgetShape.computeRectangularAnchorPoint().
Referenced by metadone.client.grasyla2.visuallibrary.widgets.backgrounds.ShapeAwareAnchor.compute(), and metadone.client.grasyla2.visuallibrary.widgets.backgrounds.ShapeAwareAnchor.computeResult().