View

o1.gui.View$
object View

This object holds miscellaneous utilities (traits, constants, etc.) that can be used in combinations with Views. These utilities are generic to the o1.gui.mutable and o1.gui.immutable View variants.

Note to students: You’re unlikely to need this for anything in O1.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
View.type

Members list

Type members

Classlikes

Add this trait on a View to give it a pause toggle. You’ll still need to call togglePause on whichever event you want to pause the view (e.g., user hitting space bar).

Add this trait on a View to give it a pause toggle. You’ll still need to call togglePause on whichever event you want to pause the view (e.g., user hitting space bar).

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
Controls[_]
object RefreshPolicy

This companion object provides predefines instances of class RefreshPolicy.

This companion object provides predefines instances of class RefreshPolicy.

Note to students: You’re unlikely to need this for anything in O1.

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type

A supertype for the different policies for updating the image visible in a View in response to a change in the model.

A supertype for the different policies for updating the image visible in a View in response to a change in the model.

Note to students: You’re unlikely to need this for anything in O1.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Always.type
object UnlessIdentical.type
object UnlessSameReference.type

Value members

Concrete fields

The number of clock ticks (24) that a View aims to generate per clock tick, unless otherwise specified.

The number of clock ticks (24) that a View aims to generate per clock tick, unless otherwise specified.

Attributes

Exports

Defined exports

final val Always: Always.type
Exported from RefreshPolicy
Exported from RefreshPolicy
Exported from RefreshPolicy