Skip to content

EDGE ​

Causes a relation's edge to be drawn. Only used for relations.

Syntax ​

leo-grammar
EDGE .

Parameters ​

none

Details ​

The style of this command is defined by the PEN command.

The EDGE command is only used for relations and causes a relation's edge to be drawn. This is a polyline reaching from the starting point via possible bend-points up to the end point of a relation. The polyline is drawn according to the current PEN. The EDGE command can be used multiple times in the same GraphRep to draw multiple lines. The start and the end point are defined separately (START or END).

If the EDGE command is not specified, then it will be automatically inserted after the obligatory GRAPHREP if the value no-edge has not been set. In the case of an automatic insertion, the edge is drawn with the default PEN.

See Also ​

Examples ​

Draw a connector with a blue edge.
A blue edge

leo
GRAPHREP
# Note: SHADOW is on by default.

PEN color:"blue"
EDGE

Draw a connector with a blue double-lined line and an arrow at its end.
A blue double-line edge with an arrow at its end

leo
GRAPHREP rounded:0.1cm
SHADOW off

PEN w:0.2cm color:"blue"
EDGE
PEN w:0.1cm color:"white"
EDGE

END
PEN w:0.2cm color:"blue" miterlimit:0.02cm join:round endcap:square
POLYLINE 3 x1:-0.5cm y1:0.1cm x2:0cm y2:0cm x3:-0.5cm y3:-0.1cm
PEN w:0.1cm color:"white" miterlimit:0.02cm join:round endcap:flat
POLYLINE 3 x1:-0.5cm y1:0.1cm x2:0cm y2:0cm x3:-0.5cm y3:-0.1cm

Draw a connector with a thicker lightblue line and which starts with a wavy line and ends with an arrow-head after a short gap. Draw a movable rectangle at the middle point.
Lightblue edge with arrow-head

leo
GRAPHREP start-trans:-0.3cm end-trans:-0.5cm
# Note: SHADOW is on by default.

# Draw the basic edge line.
PEN color:"lightblue" w:0.08cm
EDGE

# Draw the wavy line at the start.
START
POLYLINE 4
    x1:0cm y1:0cm
    x2:-0.1cm y2:0.18cm
    x3:-0.2cm y3:-0.18cm
    x4:-0.3cm y4:0cm

# Draw the arrow-head at the end.
END
POLYLINE 3
    x1:-0.4cm y1:0.15cm
    x2:0cm y2:0cm
    x3:-0.4cm y3:-0.15cm

# Draw the rectangle at the middle.
MIDDLE
FILL color:"lightblue"
RECTANGLE y:-0.3cm w:0.3cm h:0.6cm

Versions and Changes ​

Available since ADOxx 1.3