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

List of all members.

Classes

class  SideAnchorAttribute

Public Member Functions

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

Protected Member Functions

Component<?extends
ConnectionWidget > 
evaluateComponent (BootstrapGrasyla grasyla) throws BadPreCondition
void notifyChildChanged (Engine child, ChildComponent comp)
void disposeConnection ()
void disposeInternal ()
void building_hook (boolean go)

Package Attributes

AnchorKey keyRange

Private Member Functions

void setAnchorKey (AnchorKey key, RoleSide side)
Component<?extends
ConnectionWidget > 
updateAnchors ()

Private Attributes

ConnectionWidget widget
boolean childrenBuilt
AnchorKey keyDomain
String name
Subscriber< AnchorKeyanchorSubscriber

Static Private Attributes

static final PointShape DEFAULT_POINT_SHAPE = PointShapeFactory.createPointShape(2, true)

Detailed Description

Builds a ConnectionWidget.

Attributes

Contents

The contents are evaluated as AnchorDecorator and added as the children of the edge.

Result
A sub-type of ConnectionWidget or an empty component if the required anchors are not present in the scene.
Author:
kma
Vincent
See also:
AnchorDefinition
GrasylaScene.getEventAnchors()

Constructor & Destructor Documentation

metadone.client.grasyla2.visuallibrary.VLEdgeEngine.VLEdgeEngine ( 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.GrasylaScene.validate, and metadone.client.grasyla2.visuallibrary.VLEdgeEngine.widget.


Member Function Documentation

void metadone.client.grasyla2.visuallibrary.VLEdgeEngine.building_hook ( boolean  go) [protected]
void metadone.client.grasyla2.visuallibrary.VLEdgeEngine.disposeConnection ( ) [protected]

Disposes the connection.

Removes the anchors and the children.

void metadone.client.grasyla2.visuallibrary.VLEdgeEngine.disposeInternal ( ) [protected]
Component<? extends ConnectionWidget> metadone.client.grasyla2.visuallibrary.VLEdgeEngine.updateAnchors ( ) [private]

Member Data Documentation

Initial value:
 new Subscriber<AnchorKey>() {
        @Override
        public void trigger(AnchorKey event) {
            building(true);
            try {
                final Component<? extends ConnectionWidget> comp = updateAnchors();
                updateComponent(comp);
            } finally {
                building(false);
            }
        }
    }
final PointShape metadone.client.grasyla2.visuallibrary.VLEdgeEngine.DEFAULT_POINT_SHAPE = PointShapeFactory.createPointShape(2, true) [static, private]

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