LegendConstraints

io.worxbend.tui.widgets.LegendConstraints
See theLegendConstraints companion object
final case class LegendConstraints(horizontal: Constraint, vertical: Constraint)

The two limits a Chart legend must satisfy before it is drawn: how much of the plot's width horizontal and height vertical it may claim. A named pair, because (Constraint, Constraint) says nothing about which limit is which — the same tuple shape serves this module for other paired values — and a function handed the wrong one compiles fine. Mirrors Bounds, the same idea over the chart's world range.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

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
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