Halyri - Häke  0.9.1
 All Classes Namespaces Functions Variables Enumerations Properties
Graph Class Reference

Adds graph to given grid. user can add points, set bytespersecond and scroll to end of graph. 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 Bytes per second for data. More...
 
void AddPoint (int y)
 Adds point to graph and scales points that srvollview width is 1 second of data. 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 of graph.

<author>Niko Mononen</author>

Constructor & Destructor Documentation

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 AddPoint ( int  y)

Adds point to graph and scales points that srvollview width is 1 second of data.

Parameters
yy-point of the graph
void ScrollToEnd ( )

Scrolls to end of the graph.

void setBytesPerSecond ( int  bps)

Sets Bytes per second for data.

Parameters
bpsBytes per second

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