Layout

org.appliedtopology.tda4j.plot.Layout
final case class Layout(rows: Int, cols: Int, width: Int = ..., height: Int = ..., gap: Int = ..., widths: Vector[Double] = ..., heights: Vector[Double] = ...)

A grid of rows by cols cells that a Board fills with panels, in a drawing width by height pixels with gap pixels between cells. The columns share the width in proportion to widths (equal when empty) and the rows the height in proportion to heights; a weight is a relative size, Vector(1, 3) makes the second column three times as wide as the first.

Attributes

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

Members list

Value members

Concrete methods

def box(slot: Slot): (Int, Int, Int, Int)

Where slot is drawn: its left, top, width and height in pixels.

Where slot is drawn: its left, top, width and height in pixels.

Attributes

Source
Layout.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

Concrete fields

val columnWidths: Vector[Int]

The width in pixels of each column.

The width in pixels of each column.

Attributes

Source
Layout.scala
val rowHeights: Vector[Int]

The height in pixels of each row.

The height in pixels of each row.

Attributes

Source
Layout.scala