MetaDone
metadone.client.grasyla2.visuallibrary.AnchorDecorator Class Reference
Collaboration diagram for metadone.client.grasyla2.visuallibrary.AnchorDecorator:

List of all members.

Public Member Functions

 AnchorDecorator (Widget widget, ConnectionWidgetLayoutAlignment align, Number placement)
final Widget getWidget ()
ConnectionWidgetLayoutAlignment getAlignment ()
Number getPlacement ()
void setContraint (ConnectionWidget edge)

Package Functions

 AnchorDecorator (AnchorDecorator decorator, Number placement)
 AnchorDecorator (AnchorDecorator decorator, ConnectionWidgetLayoutAlignment align)

Private Attributes

final Widget widget
final Number placement
final
ConnectionWidgetLayoutAlignment 
alignement

Detailed Description

A wrapper for a Widget to be attachable to an edge.

Author:
kma
See also:
setContraint(ConnectionWidget)

Constructor & Destructor Documentation

metadone.client.grasyla2.visuallibrary.AnchorDecorator.AnchorDecorator ( Widget  widget,
ConnectionWidgetLayoutAlignment  align,
Number  placement 
)

Initializes this decorator.

Parameters:
widgetThe widget
alignThe alignment
placementThe placement
Exceptions:
NullPointerExceptionwhen widget or align is null

References metadone.client.grasyla2.visuallibrary.AnchorDecorator.alignement, metadone.client.grasyla2.visuallibrary.AnchorDecorator.placement, and metadone.client.grasyla2.visuallibrary.AnchorDecorator.widget.

metadone.client.grasyla2.visuallibrary.AnchorDecorator.AnchorDecorator ( AnchorDecorator  decorator,
Number  placement 
) [package]
metadone.client.grasyla2.visuallibrary.AnchorDecorator.AnchorDecorator ( AnchorDecorator  decorator,
ConnectionWidgetLayoutAlignment  align 
) [package]

Initializes the decorator.

Parameters:
decoratorThe old decorator
placementThe new alignment

References metadone.client.grasyla2.visuallibrary.AnchorDecorator.placement, and metadone.client.grasyla2.visuallibrary.AnchorDecorator.widget.


Member Function Documentation

ConnectionWidgetLayoutAlignment metadone.client.grasyla2.visuallibrary.AnchorDecorator.getAlignment ( )
Number metadone.client.grasyla2.visuallibrary.AnchorDecorator.getPlacement ( )

Gets the placement.

Returns:
The placement or null for default

References metadone.client.grasyla2.visuallibrary.AnchorDecorator.placement.

Referenced by metadone.client.grasyla2.visuallibrary.AnchorDecorator.setContraint().

final Widget metadone.client.grasyla2.visuallibrary.AnchorDecorator.getWidget ( )
void metadone.client.grasyla2.visuallibrary.AnchorDecorator.setContraint ( ConnectionWidget  edge)

Sets the constraint of the edge using this decorator.

Parameters:
edgeThe edge
See also:
ConnectionWidget.setConstraint(Widget, ConnectionWidgetLayoutAlignment, int)
ConnectionWidget.setConstraint(Widget, ConnectionWidgetLayoutAlignment, float)

References metadone.client.grasyla2.visuallibrary.AnchorDecorator.getAlignment(), metadone.client.grasyla2.visuallibrary.AnchorDecorator.getPlacement(), metadone.client.grasyla2.visuallibrary.AnchorDecorator.getWidget(), and metadone.util.ClassUtil.isIntegral().

Referenced by metadone.client.grasyla2.visuallibrary.VLEdgeEngine.notifyChildChanged().


Member Data Documentation


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