Flat

org.appliedtopology.tda4j.plot.Panel.Flat
final case class Flat(figure: Figure, reactions: Map[Int, IndexedSeq[Reaction]] = ..., brush: Option[String] = ..., zoom: Option[ZoomAxes] = ...) extends Panel

A 2-D panel. Marks are added with their reactions, in drawing order: Panel(fig).react(mark, behavior).

Attributes

Source
Interactive.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Panel
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def brushable(selection: String): Flat

This panel with dragging a rectangle over it choosing, in the selection selection, the keys of every item of this panel that the rectangle touches (a shift-drag adds to what is chosen): a region of a diagram, a stretch of a barcode. Some item of the panel has to choose in that selection (selecting). The rectangle stays on the page until the next click. A mouse or a pen drags the rectangle; a finger scrolls the page until the touch button beside the picture is pressed, and then draws it.

This panel with dragging a rectangle over it choosing, in the selection selection, the keys of every item of this panel that the rectangle touches (a shift-drag adds to what is chosen): a region of a diagram, a stretch of a barcode. Some item of the panel has to choose in that selection (selecting). The rectangle stays on the page until the next click. A mouse or a pen drags the rectangle; a finger scrolls the page until the touch button beside the picture is pressed, and then draws it.

Attributes

Source
Interactive.scala
def mapFigure(change: Figure => Figure): Flat

The same with change applied to the figure.

The same with change applied to the figure.

Attributes

Source
Interactive.scala
def react(mark: Mark, behavior: Behavior): Flat

mark added to the figure, its items all reacting as behavior says.

mark added to the figure, its items all reacting as behavior says.

Attributes

Source
Interactive.scala
def react(mark: Mark, reaction: Reaction): Flat

mark added to the figure, its items all reacting as reaction says.

mark added to the figure, its items all reacting as reaction says.

Attributes

Source
Interactive.scala
def reactEach(mark: Mark, reactions: IndexedSeq[Reaction]): Flat

mark added to the figure, item i reacting as reactions(i) says.

mark added to the figure, item i reacting as reactions(i) says.

Attributes

Source
Interactive.scala
def selecting(index: Int, selection: String, keys: IndexedSeq[Int], halo: Boolean = ...): Flat

The mark at index of the figure, linked to the selection selection: pointing at its item i chooses the key keys(i) there. With halo, a translucent shape over each item is added to the figure and appears while the item's key is chosen, whoever chose it (this panel's item, or an item of another panel with the same key): the halo of a point, the thick outline of a bar, a triangle drawn darker. The halo moves and comes and goes with the item it surrounds, so it can be added to a mark that is already reacting to a slider.

The mark at index of the figure, linked to the selection selection: pointing at its item i chooses the key keys(i) there. With halo, a translucent shape over each item is added to the figure and appears while the item's key is chosen, whoever chose it (this panel's item, or an item of another panel with the same key): the halo of a point, the thick outline of a bar, a triangle drawn darker. The halo moves and comes and goes with the item it surrounds, so it can be added to a mark that is already reacting to a slider.

Panel(diagram).selecting(1, "class", keys)

Attributes

Source
Interactive.scala
def zoomable(axes: ZoomAxes = ...): Flat

This panel zoomable: the viewer zooms in on a region and pans over the picture, and the axes follow (new ticks and numbers for the range shown); the buttons beside the panel, or Ctrl and the mouse wheel, zoom, and dragging pans (in a panel that brushes too, a button chooses what dragging does). Points and text keep their size and lines their width; everything else moves with the data. axes says which axes the zoom changes.

This panel zoomable: the viewer zooms in on a region and pans over the picture, and the axes follow (new ticks and numbers for the range shown); the buttons beside the panel, or Ctrl and the mouse wheel, zoom, and dragging pans (in a panel that brushes too, a button chooses what dragging does). Points and text keep their size and lines their width; everything else moves with the data. axes says which axes the zoom changes.

Linear, logarithmic, square-root, symmetric-log and reversed axes zoom, with their number formats, number style, slanted labels and minor ticks; the page draws them as the plot does. What it cannot compute is refused, and the message says what: a transform of your own, a log axis with a -∞ line for what is at 0, a number format other than %f and %e (with the flags -, +, 0 and ,, a width and a precision). PageState.zoom gives the still picture of a window.

Attributes

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