MetaDone
metadone.client.grasyla2.base.StrokeEngine Class Reference
Inheritance diagram for metadone.client.grasyla2.base.StrokeEngine:
Collaboration diagram for metadone.client.grasyla2.base.StrokeEngine:

List of all members.

Classes

class  StrokeBuilder

Public Types

enum  StrokeType {
  DASHED, DOTTED, DASHDOT, SOLID,
  NONE
}

Public Member Functions

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

Static Public Member Functions

static Set< String > getAttributeTypes ()
static Stroke buildStroke (float width, StrokeType type)

Protected Member Functions

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

Detailed Description

An engine that produces strokes.

Attributes
  • width: Number the width of the stroke

Contents

none

Result
A Stroke.
Author:
kma
See also:
buildStroke(float, StrokeType)

Member Enumeration Documentation

The type of the stroke.

Enumerator:
DASHED 
DOTTED 
DASHDOT 
SOLID 
NONE 

Constructor & Destructor Documentation

metadone.client.grasyla2.base.StrokeEngine.StrokeEngine ( 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

static Stroke metadone.client.grasyla2.base.StrokeEngine.buildStroke ( float  width,
StrokeType  type 
) [static]

Builds a stroke.

Parameters:
widthThe width of the stroke
typeThe stroke type
Returns:
A stroke

Referenced by metadone.client.grasyla2.base.StrokeEngine.StrokeBuilder.build().

static Set<String> metadone.client.grasyla2.base.StrokeEngine.getAttributeTypes ( ) [static]

Returns the set of supported attribute types.

Returns:
The unmodifiable set of types
AttributeBuilder<Stroke> metadone.client.grasyla2.base.StrokeEngine.getBuilder ( String  type) [protected]
AttributeBuilder<Stroke> metadone.client.grasyla2.base.StrokeEngine.getDefaultBuilder ( String  type) [protected]

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