Document Viewer

« Back

HandsOn: Modeltype GraphRep - Headline/Footline

The following model type GraphRep displays the value of the attribute "Description" as headline and a copyright remark as footline. Also a vertical arrow is painted from the top to the bottom of the drawing area.
GRAPHREP layer:-1
SHADOW off
# horizontal lane which is the description's background
PEN color:$c0dd80
FILL color:$e0ffa0
RECTANGLE w:(w) h:2.5cm
# description; width is drawing area width
ATTR "Description" w:(w) h:2.5cm
# vertical arrow
PEN w:0.3cm color:$c0dd80
LINE x1:(w - 2cm) y1:0.5cm x2:(w - 2cm) y2:(h - 0.5cm)
POLYLINE 3 x1:(w - 3cm) y1:(h - 2cm)
           x2:(w - 2cm) y2:(h - 0.5cm)
           x3:(w - 1cm) y3:(h - 2cm)
# copyright remark at the drawing area bottom
FONT "Verdana" h:9pt color:$6060a0 italic
TEXT "(c) www.adoxx.org" x:0.2cm y:(h) h:b