model

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 9, 2020 License: MIT Imports: 4 Imported by: 0

README

GUI Model

The gui model package is responsible for transforming the algebraic model to the ui model.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collection

type Collection interface {
	Bounds() *f32.Rectangle
	Next() (point *LabeledPoint, ok, next bool)
	Size() int
	Reset()
	Labels() []string
	Style() style.Properties
}

TODO : embed the data model collection into the interface

func NewSeries

func NewSeries(collection model.Collection, style style.Properties) Collection

type LabeledPoint

type LabeledPoint struct {
	f32.Point
	Label []string
}

type Series

type Series struct {
	model.Collection
	// contains filtered or unexported fields
}

func (Series) Bounds

func (s Series) Bounds() *f32.Rectangle

func (Series) Next

func (s Series) Next() (point *LabeledPoint, ok, next bool)

func (Series) Reset

func (s Series) Reset()

func (Series) Style

func (s Series) Style() style.Properties

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL