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

List of all members.

Classes

class  AnchorBuilder

Public Member Functions

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

Static Public Member Functions

static Set< String > getAttributeTypes ()

Protected Member Functions

AnchorBuilder getBuilder (String type)
AnchorBuilder getDefaultBuilder (String type)

Static Package Functions

static void registerAttributeHandlers (GrasylaEngine engine)
 [static initializer]

Static Private Attributes

static final String ANCHOR_ATTR = "bitt"
static final AnchorBuilder DEFAULT_BUILDER
static final HashMap< String,
AnchorBuilder
BUILDERS = new HashMap<String, AnchorBuilder>()

Detailed Description

An engine that produces AnchorDefinition.

Attributes
  • for: SidedMetaObject the metaobject and side of the key (required)
  • name: String name of the key
  • object: ConcreteObject for the key, otherwise the object from the context will be used
  • both_sides: Boolean if set to true, keys for both sides are created.
  • Other depending on the `type`.

Multiple SidedMetaObject and ConcreteObject can be defined at one for a single anchor.

Contents

Depends on the `type`.

Result
An AnchorDefinition for each side an concrete object.

Types

rectangular
On the bounding rectangle of the widget.
center
At the center of the widget.
circular
Located circularly from the center, accepts a `radius` parameter.
directional
On a side of the widget with parameters `kind` of type DirectionalAnchorKind and a `gap` from the widget.
vmd
A VMD anchor from VL with a `kind` parameter. Similar to the directional anchor, but computes a different place for each edge.
shape
Attached to the shape. See ShapeAwareAnchor.
rotated
Rotated anchor (RotateWidget.RotateAnchor#RotateAnchor(boolean, RotateAnchorType). Accepts as parameters `update` (true by default) and `direction`.
Author:
kma

Constructor & Destructor Documentation

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

Initializes this engine.

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

Member Function Documentation

metadone.client.grasyla2.visuallibrary.AnchorEngine.[static initializer] ( ) [static, package]
static Set<String> metadone.client.grasyla2.visuallibrary.AnchorEngine.getAttributeTypes ( ) [static]

Returns the set of supported attribute types.

Returns:
The unmodifiable set of types

References metadone.client.grasyla2.visuallibrary.AnchorEngine.BUILDERS.

AnchorBuilder metadone.client.grasyla2.visuallibrary.AnchorEngine.getBuilder ( String  type) [protected]
AnchorBuilder metadone.client.grasyla2.visuallibrary.AnchorEngine.getDefaultBuilder ( String  type) [protected]

Member Data Documentation


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