Decoration

com.alecdorrington.annotatedtextformat.dom.Decoration
final class Decoration[A]

The annotations of annotated, put in the page in a passage, which may be hidden and shown again, each read as the page's own text while hidden, and taken out of it. Each annotation is known by its index in annotated.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def at(node: Node): List[Int]

The annotations shown in the element of the page that node is within.

The annotations shown in the element of the page that node is within.

Attributes

def elementAt(node: Node): Option[Element]

The highlighted element of the page that node is within, if any annotation is shown there, as a tooltip is anchored to.

The highlighted element of the page that node is within, if any annotation is shown there, as a tooltip is anchored to.

Attributes

def elements(annotation: Int): List[Element]

The elements in the page of the annotation at annotation.

The elements in the page of the annotation at annotation.

Attributes

def hide(annotation: Int): Unit

Hides the annotation at annotation, so that it reads as the page's text.

Hides the annotation at annotation, so that it reads as the page's text.

Attributes

def isShown(annotation: Int): Boolean

Whether the annotation at annotation is shown.

Whether the annotation at annotation is shown.

Attributes

def redraw(): Unit

Draws every annotation again, as after what look gives for them has changed, as the layers drawn beneath them may follow an application's own state.

Draws every annotation again, as after what look gives for them has changed, as the layers drawn beneath them may follow an application's own state.

Attributes

def restore(): Unit

Takes every annotation out of the page, putting back the text that each took the place of, and joining each text node of the page back together.

Takes every annotation out of the page, putting back the text that each took the place of, and joining each text node of the page back together.

Attributes

def show(annotation: Int): Unit

Shows the annotation at annotation again.

Shows the annotation at annotation again.

Attributes

Concrete fields

val unplaced: Set[Int]