MetaDone
metadone.client.grasyla2.visuallibrary.widgets.backgrounds.WidgetRectangleShape Class Reference
Inheritance diagram for metadone.client.grasyla2.visuallibrary.widgets.backgrounds.WidgetRectangleShape:
Collaboration diagram for metadone.client.grasyla2.visuallibrary.widgets.backgrounds.WidgetRectangleShape:

List of all members.

Public Member Functions

 WidgetRectangleShape (Scene scene)
StackingStrategy getDefaultStrategy ()
boolean isConformStrategy (Class<?extends StackingStrategy > strategy)

Protected Member Functions

Shape getPaintedShape ()

Detailed Description

A rectangle shape.

Author:
kma
See also:
AbstractWidgetShape

Constructor & Destructor Documentation

metadone.client.grasyla2.visuallibrary.widgets.backgrounds.WidgetRectangleShape.WidgetRectangleShape ( Scene  scene)

Initializes this shape.

Parameters:
sceneThe scene

Member Function Documentation

StackingStrategy metadone.client.grasyla2.visuallibrary.widgets.backgrounds.WidgetRectangleShape.getDefaultStrategy ( ) [virtual]

Gets an instance of a default stacking strategy conform to this shape.

Returns:
A stacking strategy

Implements metadone.client.grasyla2.visuallibrary.widgets.backgrounds.AbstractWidgetShape.

References metadone.client.grasyla2.visuallibrary.widgets.layouts.StackingLayout.StackingStrategy.DEFAULT_STRATEGY.

Shape metadone.client.grasyla2.visuallibrary.widgets.backgrounds.WidgetRectangleShape.getPaintedShape ( ) [protected, virtual]

Gets a shape that is painted in the background.

Returns:
A shape

Implements metadone.client.grasyla2.visuallibrary.widgets.backgrounds.AbstractWidgetShape.

boolean metadone.client.grasyla2.visuallibrary.widgets.backgrounds.WidgetRectangleShape.isConformStrategy ( Class<?extends StackingStrategy strategy) [virtual]

Checks if a strategy is conform to the shape.

Usually the implementation is:

 return MyCustomStrategy.class.isAssignableFrom(strategy);
 
Parameters:
Thestrategy to check
Returns:
Boolean
Exceptions:
NullPointerExceptionwhen strategy is null

Implements metadone.client.grasyla2.visuallibrary.widgets.backgrounds.AbstractWidgetShape.


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