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

List of all members.

Public Member Functions

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

Static Public Member Functions

static Set< String > getAttributeTypes ()

Protected Member Functions

AttributeBuilder< AnchorShape > getBuilder (String type)
AttributeBuilder< AnchorShape > getDefaultBuilder (String type)

Static Package Functions

 [static initializer]

Static Private Attributes

static final AttributeBuilder
< AnchorShape > 
DEFAULT_BUILDER
static final Map< String,
AttributeBuilder< AnchorShape > > 
BUILDERS = new HashMap<String, AttributeBuilder<AnchorShape>>()
static final int DEFAULT_SIZE = 12

Detailed Description

An engine that creates AnchorShape.

Attributes

Depends on the `type`.

Contents

Depends on the `type`.

Result
An AnchorShape.

Types

triangle
Draws a triangle of the given `size`, it can be `filled` or `output`.
arrow
Creates an arrow of the given `size` with a specified angle using the attribute `degrees`.
image
Draws the given `image` which can be `lineOriented`.
bar
Attributes are: `filled`, `fillColor`, `size`, `stroke` and `width.
circle
Attributes are: `filled`, `fillColor`, `radius` and `stroke`.
segment
Attributes are: `filled`, `fillColor`, `dx`, `dy`, `inside` and `stroke`. See SegmentArrowAnchorShape.
quad
Attributes are: `filled`, `fillColor`, `centerSize`, `endSize`, `height` and `stroke`. See QuadAnchorShape.
square
Attributes are: `filled`, `fillColor`, `size` and `stroke`.
void
Attributes are: `draw` (whether to draw a line, false by default), `radius` and `stroke`.
x
Attributes are: `size` and `stroke`.
sequence
Puts the contained shaped in a sequence. There is an attribute `initialGap` for the size of the initial gap.
overlay
Stacks the contained shapes one on top of another.
Author:
kma

Constructor & Destructor Documentation

metadone.client.grasyla2.visuallibrary.AnchorShapeEngine.AnchorShapeEngine ( 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.AnchorShapeEngine.[static initializer] ( ) [static, package]
static Set<String> metadone.client.grasyla2.visuallibrary.AnchorShapeEngine.getAttributeTypes ( ) [static]

Returns the set of supported attribute types.

Returns:
The unmodifiable set of types

References metadone.client.grasyla2.visuallibrary.AnchorShapeEngine.BUILDERS.

AttributeBuilder<AnchorShape> metadone.client.grasyla2.visuallibrary.AnchorShapeEngine.getBuilder ( String  type) [protected]
AttributeBuilder<AnchorShape> metadone.client.grasyla2.visuallibrary.AnchorShapeEngine.getDefaultBuilder ( String  type) [protected]

Member Data Documentation

final Map<String, AttributeBuilder<AnchorShape> > metadone.client.grasyla2.visuallibrary.AnchorShapeEngine.BUILDERS = new HashMap<String, AttributeBuilder<AnchorShape>>() [static, private]

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