Layout

com.alecdorrington.annotatedtextformat.dom.Layout
object Layout

How an annotated text is laid out to be drawn.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Layout.type

Members list

Value members

Concrete methods

def lanes(annotations: List[Annotation[_]]): Vector[Int]

The lane of each annotation of annotations, by its index: 0 at the bottom edge of the text, deeper lanes stacked above it, as Style draws them. An annotation keeps its lane for all its spans, so that its underline runs unbroken, and sorting on where it ends, the furthest first, gives one enclosing another the lower lane.

The lane of each annotation of annotations, by its index: 0 at the bottom edge of the text, deeper lanes stacked above it, as Style draws them. An annotation keeps its lane for all its spans, so that its underline runs unbroken, and sorting on where it ends, the furthest first, gives one enclosing another the lower lane.

Attributes

def of[A](annotated: AnnotatedText[A]): List[Segment[A]]

The segments of annotated, in order, which together make up its whole text: cut at either end of every span, with each point a segment of its own, before the stretch that begins there.

The segments of annotated, in order, which together make up its whole text: cut at either end of every span, with each point a segment of its own, before the stretch that begins there.

Attributes