MetaDone
|
Classes | |
class | TapeStackingStrategy |
Public Member Functions | |
WidgetTapeShape (Scene scene) | |
int | getTapeOutHeight () |
void | setTapeOutHeight (int tapeOutHeight) |
OvalStackingStrategy | getDefaultStrategy () |
boolean | isConformStrategy (Class<?extends StackingStrategy > strategy) |
Protected Member Functions | |
Shape | getPaintedShape () |
Private Attributes | |
int | tapeOutHeight = 14 |
A tape shape widget.
metadone.client.grasyla2.visuallibrary.widgets.backgrounds.WidgetTapeShape.WidgetTapeShape | ( | Scene | scene | ) |
Initializes this shape.
scene | The scene |
Referenced by metadone.client.grasyla2.visuallibrary.widgets.backgrounds.WidgetTapeShape.TapeStackingStrategy.getHeightMultiplicator().
OvalStackingStrategy metadone.client.grasyla2.visuallibrary.widgets.backgrounds.WidgetTapeShape.getDefaultStrategy | ( | ) | [virtual] |
Gets an instance of a default stacking strategy conform to this shape.
Reimplemented from metadone.client.grasyla2.visuallibrary.widgets.backgrounds.WidgetOvalShape.
Shape metadone.client.grasyla2.visuallibrary.widgets.backgrounds.WidgetTapeShape.getPaintedShape | ( | ) | [protected, virtual] |
Gets a shape that is painted in the background.
Reimplemented from metadone.client.grasyla2.visuallibrary.widgets.backgrounds.WidgetOvalShape.
References metadone.client.grasyla2.visuallibrary.widgets.backgrounds.WidgetTapeShape.getTapeOutHeight().
int metadone.client.grasyla2.visuallibrary.widgets.backgrounds.WidgetTapeShape.getTapeOutHeight | ( | ) |
Gets the height of the tape out.
References metadone.client.grasyla2.visuallibrary.widgets.backgrounds.WidgetTapeShape.tapeOutHeight.
Referenced by metadone.client.grasyla2.visuallibrary.widgets.backgrounds.WidgetTapeShape.getPaintedShape().
boolean metadone.client.grasyla2.visuallibrary.widgets.backgrounds.WidgetTapeShape.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 |
Reimplemented from metadone.client.grasyla2.visuallibrary.widgets.backgrounds.WidgetOvalShape.
void metadone.client.grasyla2.visuallibrary.widgets.backgrounds.WidgetTapeShape.setTapeOutHeight | ( | int | tapeOutHeight | ) |
Sets the height of the tape out.
tapeOutHeight | New height |
IllegalArgumentException | when tapeOutHeight <= 0 |
References metadone.client.grasyla2.visuallibrary.widgets.backgrounds.WidgetTapeShape.tapeOutHeight.