![]() |
Halyri - Häke
0.9
|
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... | |
Private Attributes | |
const double | ScaleRate = 1.1 |
Static Private Attributes | |
static Canvas | GraphCanvas |
static ScrollViewer | GraphContainer |
static ScaleTransform | GraphScaleTransform |
static Polyline | GraphLine |
static int | GraphLineX = 0 |
static Color | GraphColor = Color.FromArgb(200, 255, 187, 187) |
static Color | GraphSecondColor = Color.FromArgb(150, 255, 229, 229) |
static SolidColorBrush | color1 = new SolidColorBrush(GraphColor) |
static SolidColorBrush | color2 = new SolidColorBrush(GraphSecondColor) |
static int | scale = 1000 |
static int | BytesPerSecond = 50 |
Adds graph to given grid. user can add points, set bytespersecond and scroll to end.
<author>Niko Mononen</author>
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.
grid | Grid where you want this graph |
void GraphClass.Graph.AddPoint | ( | int | y | ) |
Adds point to graph.
y | y-point of the graph |
void GraphClass.Graph.ScrollToEnd | ( | ) |
Scrolls to end of the graph.
void GraphClass.Graph.setBytesPerSecond | ( | int | bps | ) |
Sets BytesPerSecond.
bps | Bytes per second |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
private |