TextBuilder

papyrus.DSL.builders.TextBuilder
See theTextBuilder companion object
case class TextBuilder(value: String, color: ColorString, fontWeight: FontWeight, fontStyle: FontStyle, textDecoration: TextDecoration) extends Builder[Text]

Builds styled text elements for Papyrus document

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Builder[Text]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def build: Text

Builds a styled Text element

Builds a styled Text element

Attributes

Definition Classes
Extension method from TextBuilder

Sets the text color (e.g. "#fff", "rgb(...)", or "red", "blue", ...)

Sets the text color (e.g. "#fff", "rgb(...)", or "red", "blue", ...)

Attributes

Extension method from TextBuilder

Sets the font style ("normal" or "italic")

Sets the font style ("normal" or "italic")

Attributes

Extension method from TextBuilder

Sets the font weight ("normal" or "bold")

Sets the font weight ("normal" or "bold")

Attributes

def newLine(v: String): TextBuilder
Extension method from TextBuilder

Appends a newline to another text

Appends a newline to another text

Attributes

Extension method from TextBuilder

Sets the text decoration ("none", "underline" or "overline")

Sets the text decoration ("none", "underline" or "overline")

Attributes

def value(v: String): TextBuilder
Extension method from TextBuilder

Sets the text content

Sets the text content

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product