TextFace

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

A text as it is drawn: every setting has a value (weight and font are None where the plot sets none).

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 fit(text: String, px: Double, font: String = ...): (String, Boolean)

text as far as it fits within limit at the pixel size px, and whether it was cut. The width of a text is estimated letter by letter (TextWidth) for this face's font, or font (the style's font list) when the face names none; a cut text ends in an ellipsis, which counts toward the limit.

text as far as it fits within limit at the pixel size px, and whether it was cut. The width of a text is estimated letter by letter (TextWidth) for this face's font, or font (the style's font list) when the face names none; a cut text ends in an ellipsis, which counts toward the limit.

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