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

List of all members.

Public Member Functions

 AnchorDecoratorAdaptor (GrasylaContext context, ConcreteObject expression, Engine parent) throws BadPreCondition

Protected Member Functions

Component<?extends
AnchorDecorator
adapt (Component<?extends Widget > source) throws BadPreCondition

Private Attributes

Number percent = 0.5f
ConnectionWidgetLayoutAlignment alignment = ConnectionWidgetLayoutAlignment.NONE

Detailed Description

An engine that adapts Widget into AnchorDecorator.

Attributes
  • decorator_position: Number the position of the decorator. Either a floating value which is the percentage or an integral value which is the distance from the anchor. The default is 0.5.
  • decorator_align: String which is the alignment, transformed into ConnectionWidgetLayoutAlignment

Result
An AnchorDecorator built from the Widget.
Author:
kma

Constructor & Destructor Documentation

metadone.client.grasyla2.visuallibrary.AnchorDecoratorAdaptor.AnchorDecoratorAdaptor ( GrasylaContext  context,
ConcreteObject  expression,
Engine  parent 
) throws BadPreCondition

Initializes this engine.

Parameters:
contextThe context
expressionThe expression
parentThe parent or null
Exceptions:
BadPreCondition

References metadone.client.grasyla2.visuallibrary.AnchorDecoratorAdaptor.percent.


Member Function Documentation

Component<? extends AnchorDecorator> metadone.client.grasyla2.visuallibrary.AnchorDecoratorAdaptor.adapt ( Component<?extends Widget >  source) throws BadPreCondition [protected]

Member Data Documentation

ConnectionWidgetLayoutAlignment metadone.client.grasyla2.visuallibrary.AnchorDecoratorAdaptor.alignment = ConnectionWidgetLayoutAlignment.NONE [private]

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