Look

com.alecdorrington.annotatedtextformat.dom.Look
See theLook companion object
trait Look[-A]

How annotations whose values are of type A look in a page.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def colour(value: A): Colour

The colour in which an annotation whose value is value is highlighted.

The colour in which an annotation whose value is value is highlighted.

Attributes

Concrete methods

def beneath(values: List[A]): List[Layer]

The layers drawn beneath the highlight of an element under annotations whose values are values, as an application's own shading, asked only of elements under an annotation that is shown.

The layers drawn beneath the highlight of an element under annotations whose values are values, as an application's own shading, asked only of elements under an annotation that is shown.

Attributes

def classes(value: A): List[String]

The classes given to each element highlighted for an annotation whose value is value, while it is shown, as an application's own styles may match: of those that may begin a class's name unescaped, as known.

The classes given to each element highlighted for an annotation whose value is value, while it is shown, as an application's own styles may match: of those that may begin a class's name unescaped, as known.

Attributes

def shown(value: A, part: Int): Option[String]

What the span at part of an annotation whose value is value shows in place of its text, if anything else, as a translation: for a point, the text put in there. An empty text empties the span, and takes a space beside it away with it, so that no two are left together.

What the span at part of an annotation whose value is value shows in place of its text, if anything else, as a translation: for a point, the text put in there. An empty text empties the span, and takes a space beside it away with it, so that no two are left together.

Attributes