Halyri - Häke  0.9.1
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events
GraphClass.Graph Class Reference

Adds graph to given grid. user can add points, set bytespersecond and scroll to end. More...

Public Member Functions

 Graph (Grid grid)
 Makes graphcanvas to given grid with black background and initializes green line that connetcts points that are added by addpoint method. More...
 
void setBytesPerSecond (int bps)
 Sets BytesPerSecond. More...
 
void AddPoint (int y)
 Adds point to graph. More...
 
void ScrollToEnd ()
 Scrolls to end of the graph. More...
 

Detailed Description

Adds graph to given grid. user can add points, set bytespersecond and scroll to end.

Constructor & Destructor Documentation

GraphClass.Graph.Graph ( Grid  grid)

Makes graphcanvas to given grid with black background and initializes green line that connetcts points that are added by addpoint method.

Parameters
gridGrid where you want this graph

Member Function Documentation

void GraphClass.Graph.AddPoint ( int  y)

Adds point to graph.

Parameters
yy-point of the graph
void GraphClass.Graph.ScrollToEnd ( )

Scrolls to end of the graph.

void GraphClass.Graph.setBytesPerSecond ( int  bps)

Sets BytesPerSecond.

Parameters
bpsBytes per second

The documentation for this class was generated from the following file: