END ​
Specifies to draw all further commands at the end of a relation. Only used for relations.
Syntax ​
leo-grammar
END .
Parameters ​
none
Details ​
The END
command specifies to draw all following commands for the graphical representation at the end point of a relation. In this case the (0cm
, 0cm
) coordinate takes the place of the end of the relation, close to the object the relation is targeting.
See Also ​
Examples ​
Draw a connector with an arrow at the end.
leo
GRAPHREP
SHADOW off
PEN color:"black"
EDGE
END
POLYLINE 3 x1:-0.5cm y1:0.2cm x2:0cm y2:0cm x3:-0.5cm y3:-0.2cm
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.
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