PageState

org.appliedtopology.tda4j.plot.PageState
final case class PageState(values: Map[String, Double] = ..., selected: Map[String, Set[Int]] = ..., windows: Map[Int, Window] = ..., brushes: Map[Int, Window] = ...)

Where the controls, selections and views of an Interactive page are, for a still picture of it (at): the value of each slider, and the keys chosen in each selection. What a viewer has done on the page, written down.

page.at(PageState().value("t", 0.6).select("class", 3))

Value parameters

brushes

the rectangle dragged out in each brushable panel, by the panel's number (none by default)

selected

the keys chosen in each selection (none by default)

values

the sliders that are not at their starting values

windows

the range of each zoomed panel, by the panel's number (none by default: every panel shows all of its picture)

Attributes

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

Members list

Value members

Concrete methods

def brush(panel: Int, window: Window): PageState

This state with the rectangle window (in the data's units) dragged out in the panel number panel, which has to be brushable. It draws the rectangle only: what it touches is chosen with select, as the page chooses it.

This state with the rectangle window (in the data's units) dragged out in the panel number panel, which has to be brushable. It draws the rectangle only: what it touches is chosen with select, as the page chooses it.

Attributes

Source
Selection.scala
def chosen(name: String): Set[Int]

The keys chosen in the selection name.

The keys chosen in the selection name.

Attributes

Source
Selection.scala
def select(name: String, keys: Int*): PageState

This state with exactly keys chosen in the selection name.

This state with exactly keys chosen in the selection name.

Attributes

Source
Selection.scala
def select(name: String, keys: Set[Int]): PageState

This state with exactly keys chosen in the selection name.

This state with exactly keys chosen in the selection name.

Attributes

Source
Selection.scala
def value(name: String, v: Double): PageState

This state with the slider name at v.

This state with the slider name at v.

Attributes

Source
Selection.scala
def zoom(panel: Int, window: Window): PageState

This state with the zoomable panel number panel (counting every panel of the page from 0) showing window.

This state with the zoomable panel number panel (counting every panel of the page from 0) showing window.

Attributes

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