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

List of all members.

Classes

class  RhombStackingStrategy

Public Member Functions

 WidgetRhombShape (Scene scene)
Point computeAnchorPoint (Point center, Point target)
RhombStackingStrategy getDefaultStrategy ()
boolean isConformStrategy (Class<?extends StackingStrategy > strategy)

Protected Member Functions

Shape getPaintedShape ()

Detailed Description

A rhomb shape widget.

Author:
kma
See also:
AbstractWidgetShape

Constructor & Destructor Documentation

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

Initializes this shape.

Parameters:
sceneThe scene

Member Function Documentation

Point metadone.client.grasyla2.visuallibrary.widgets.backgrounds.WidgetRhombShape.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.

Parameters:
centerThe center of the widget
targetThe target point
Returns:
The point where the anchor should be attached or null
See also:
#computeDirection(Point, Point)
computeRectangularAnchorPoint(Dimension, Point, Point)

Reimplemented from metadone.client.grasyla2.visuallibrary.widgets.backgrounds.AbstractWidgetShape.

RhombStackingStrategy metadone.client.grasyla2.visuallibrary.widgets.backgrounds.WidgetRhombShape.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.

Shape metadone.client.grasyla2.visuallibrary.widgets.backgrounds.WidgetRhombShape.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.WidgetRhombShape.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