TitleBuilder

papyrus.DSL.builders.TitleBuilder
See theTitleBuilder companion class
object TitleBuilder

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def apply(title: String, level: Level, font: FontFamily, fontSize: FontSize, textColor: ColorString, textAlign: Alignment): TitleBuilder

Creates a TitleBuilder (default: Helvetica 32pt black centered)

Creates a TitleBuilder (default: Helvetica 32pt black centered)

Attributes

Extensions

Extensions

extension (tb: TitleBuilder)

Sets the font family (e.g. "Arial", "Helvetica", "Times New Roman", ...)

Sets the font family (e.g. "Arial", "Helvetica", "Times New Roman", ...)

Attributes

Sets the font size (Int: 8 to 72)

Sets the font size (Int: 8 to 72)

Attributes

Sets the heading level (Int: 1 to 3)

Sets the heading level (Int: 1 to 3)

Attributes

Sets the text alignment (String: "left", "right", "center", "justify", "start", "end")

Sets the text alignment (String: "left", "right", "center", "justify", "start", "end")

Attributes

Sets the text color (ColorString: "#fff", "rgb(...)", or named colors)

Sets the text color (ColorString: "#fff", "rgb(...)", or named colors)

Attributes

def title(t: String): TitleBuilder

Sets the title text

Sets the title text

Attributes