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