search

Class myphysicslab.sims.layout.TimeGraph1

Provided By
Extends
All Implemented Interfaces

Creates a single graph showing several independent GraphLines, and with a horizontal time axis. Because there is a single SimView and DisplayGraph, all the GraphLines are plotted in the same graph coordinates. The horizontal variable can be changed to something other than time. Creates an AutoScale that ensures all of the GraphLines are visible. Creates several controls to modify the graph.

new TimeGraph1( varsList, graphCanvas, div_controls, div_graph, simRun )

Parameters
varsListmyphysicslab.lab.model.VarsList

the VarsList to collect data from

graphCanvasmyphysicslab.lab.view.LabCanvas

the LabCanvas where the graph should appear

div_controlsElement

the HTML div where controls should be added

div_graphElement

the HTML div where the graphCanvas is located

simRunmyphysicslab.lab.app.SimRunner

the SimRunner controlling the overall app

Instance Methods

Instance Properties

Static Properties

Type Definitions