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

List of all members.

Classes

class  VLBorderBuilder

Public Member Functions

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

Static Public Member Functions

static Set< String > getAttributeTypes ()

Protected Member Functions

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

Static Package Functions

 [static initializer]

Private Attributes

final GrasylaScene scene

Static Private Attributes

static final VLBorderBuilder DEFAULT_BUILDER
static final Map< String,
VLBorderBuilder
BUILDERS

Detailed Description

An engine that produces borders.

Attributes
  • background: color for the background
  • color: color of the border (black by default)
  • margin: margin between the border and the contents
  • outsideMargin: margin between the border and the bounds of the widget
  • stroke: the used Stroke
  • Other depending on the `type`.

Contents

Depends on the `type`.

Result
A Border. Also a Swing border can be adapted if no matching VL border was found.

Types

line/rectangle (default)
Draws a simple line.
brace
Draws a brace on the given `direction` of type Direction.
cube
Draws a 3D-like cube with given offsets `dx` and `dy`.
cylinder
Draws a 3D-like cylinder with a given `direction` of type Direction and a `topsize` which is the offset for the top side of the cylinder.
note
Draws a note of a given `notesize` with an optional `oppositeMargin` which the the margin on the opposite side of the drawing of the note fold.
parallelogram
A parallelogram with an `orientation` (Orientation) and a `diffsize` which controls the step.
pointing
A border with pointing edges. The distance is specified using `apexTop`, `apexRight`, `apexBottom` and `apexLeft`.
rounded
A border with rounded edges. The distance is specified using `apexTop`, `apexRight`, `apexBottom` and `apexLeft`.
roundedrectangle
A rectangle with rounded borders. The size of the rounded borders is controlled by `varc` and `harc`.
sequence
A sequence of borders to apply. The contained borders are composed from the most outer to the most inner border.
overlay
Composes multiple borders placing them one on another. There are three parameters: `constrain` whether the size is computed for all the borders or just the first one; `dx` and `dy` indicating the offset for the next border. See BorderComposition.
Author:
kma
See also:
BorderSwingEngine

Constructor & Destructor Documentation

metadone.client.grasyla2.visuallibrary.BorderVLEngine.BorderVLEngine ( 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.GraphEngine.getScene(), and metadone.client.grasyla2.visuallibrary.BorderVLEngine.scene.


Member Function Documentation

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

Returns the set of supported attribute types.

Returns:
The unmodifiable set of types

References metadone.client.grasyla2.visuallibrary.BorderVLEngine.BUILDERS, and metadone.client.grasyla2.swing.BorderSwingEngine.getAttributeTypes().

AttributeBuilder<Border> metadone.client.grasyla2.visuallibrary.BorderVLEngine.getBuilder ( String  type) [protected]
AttributeBuilder<Border> metadone.client.grasyla2.visuallibrary.BorderVLEngine.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