Creates a graph with a single GraphLine. Creates a single SimView and DisplayGraph to show the GraphLine. Adds the SimView to graphCanvas. Creates an AutoScale that modifies the SimView to contain the GraphLine. Creates several controls to modify the graph.

Hierarchy (view full)

Implements

Constructors

  • Parameters

    • varsList: VarsList

      the VarsList to collect data from

    • graphCanvas: LabCanvas

      the LabCanvas where the graph should appear

    • div_controls: HTMLDivElement

      the HTML div where controls should be added

    • div_graph: HTMLDivElement

      the HTML div where the graphCanvas is located

    • simRun: SimRunner

      the SimRunner controlling the overall app

    • Optional displayStyle: string

      the CSS display style to use when adding controls

    Returns StandardGraph1

Properties

graphCtrl: SimController

SimController which pans the graph with no modifier keys pressed.

Methods

  • Sets whether this Subject will broadcast events, typically used to temporarily disable broadcasting. Intended to be used in situations where a subclass overrides a method that broadcasts an event. This allows the subclass to prevent the superclass broadcasting that event, so that the subclass can broadcast the event when the method is completed.

    Parameters

    • value: boolean

      whether this Subject should broadcast events

    Returns boolean

    the previous value

  • Returns a minimal string representation of this object, usually giving just identity information like the class name and name of the object.

    For an object whose main purpose is to represent another Printable object, it is recommended to include the result of calling toStringShort on that other object. For example, calling toStringShort() on a DisplayShape might return something like this:

    DisplayShape{polygon:Polygon{'chain3'}}
    

    Returns string

    a minimal string representation of this object.

Generated using TypeDoc