TextStyle

org.appliedtopology.tda4j.plot.TextStyle
final case class TextStyle(size: Option[Double] = ..., weight: Option[Weight] = ..., italic: Option[Boolean] = ..., align: Option[Anchor] = ..., angle: Option[Double] = ..., font: Option[String] = ..., paint: Option[Paint] = ..., limit: Option[Double] = ...)

What to change about the look of one TextRole. Whatever is None stays as the plot has it.

Value parameters

align

where along the plot area the text is: Start (its left edge), Middle or End; for a title, subtitle, axis label and note

angle

degrees counterclockwise: the x axis's tick labels, slanted to fit long labels

font

a CSS font-family list for this text alone

limit

the longest the text may be, in pixels: a longer one is cut and ends in …, with the whole text as its tooltip. The width is estimated letter by letter (TextWidth), as the font the reader sees is not known

paint

a palette role (Paint.Muted) or a color of your own (Paint.Fixed("#333333"))

size

in pixels, before the style's textScale

Attributes

Experimental
true
Source
Elements.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def merge(later: TextStyle): TextStyle

later over this one: what later sets wins, the rest stays.

later over this one: what later sets wins, the rest stays.

Attributes

Source
Elements.scala

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
Source
Product.scala
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
Source
Product.scala