Macaw.Frame.Layers.Lane (macaw_frame v0.1.0)

Copy Markdown View Source

The lane kind (spec/04 §5.2): a band a diagram's layout assigned, with its header and label, new in the second cut: a swimlane, a Gantt chart's section, a sequence diagram's participant and its lifeline.

ChannelRole, familyTypes
y0, y1position: the band's top and bottom, the layout's pixelsnumberreq
x0, x1position: a vertical lane's left and rightnumber
labeltexttext, category, numberreq
seriesseriescategory, text, number

Options: header (120), the header's thickness in pixels. Parts: stroke, font. Paint: stroke. One lane per row. Horizontal (no x0 and x1): a band across the plot from y0 to y1 outlined in the paint, and a header header wide at its left filled with the theme's surface, the label centered in it. Vertical (x0 and x1 given, a sequence's participant): a header box from x0 to x1 and y0 down min(header, y1 − y0), the label centered in it, and the lifeline from the header's middle down to y1, dashed. Every label is inked in the theme's text. Not bent. Anchor: the header's center. Budget: w. Auxiliary: it frames the diagram's rows.