MetaDone
|
Classes | |
class | OvalStackingStrategy |
Public Member Functions | |
WidgetOvalShape (Scene scene) | |
Point | computeAnchorPoint (Point center, Point target) |
OvalStackingStrategy | getDefaultStrategy () |
boolean | isConformStrategy (Class<?extends StackingStrategy > strategy) |
Protected Member Functions | |
Shape | getPaintedShape () |
An ellipse shape widget.
metadone.client.grasyla2.visuallibrary.widgets.backgrounds.WidgetOvalShape.WidgetOvalShape | ( | Scene | scene | ) |
Creates an oval shape widget.
scene | The scene |
Point metadone.client.grasyla2.visuallibrary.widgets.backgrounds.WidgetOvalShape.computeAnchorPoint | ( | Point | center, |
Point | target | ||
) |
Computes the anchor points based on this shape.
null
can be returned to indicate that the computation should be skipped, the caller should decide a default position.
center | The center of the widget |
target | The target point |
null
Reimplemented from metadone.client.grasyla2.visuallibrary.widgets.backgrounds.AbstractWidgetShape.
OvalStackingStrategy metadone.client.grasyla2.visuallibrary.widgets.backgrounds.WidgetOvalShape.getDefaultStrategy | ( | ) | [virtual] |
Gets an instance of a default stacking strategy conform to this shape.
Implements metadone.client.grasyla2.visuallibrary.widgets.backgrounds.AbstractWidgetShape.
Reimplemented in metadone.client.grasyla2.visuallibrary.widgets.backgrounds.WidgetTapeShape.
Shape metadone.client.grasyla2.visuallibrary.widgets.backgrounds.WidgetOvalShape.getPaintedShape | ( | ) | [protected, virtual] |
Gets a shape that is painted in the background.
Implements metadone.client.grasyla2.visuallibrary.widgets.backgrounds.AbstractWidgetShape.
Reimplemented in metadone.client.grasyla2.visuallibrary.widgets.backgrounds.WidgetTapeShape.
boolean metadone.client.grasyla2.visuallibrary.widgets.backgrounds.WidgetOvalShape.isConformStrategy | ( | Class<?extends StackingStrategy > | strategy | ) | [virtual] |
Checks if a strategy is conform to the shape.
Usually the implementation is:
return MyCustomStrategy.class.isAssignableFrom(strategy);
The | strategy to check |
NullPointerException | when strategy is null |
Implements metadone.client.grasyla2.visuallibrary.widgets.backgrounds.AbstractWidgetShape.
Reimplemented in metadone.client.grasyla2.visuallibrary.widgets.backgrounds.WidgetTapeShape.