|
|
|
A window that draws a strip chart, given a view.
More...
#include "gtkStatsStripChart.h"
List of all members.
Public Member Functions |
|
| GtkStatsStripChart (GtkStatsMonitor *monitor, int thread_index, int collector_index, bool show_level) |
| virtual void | changed_graph_size (int graph_xsize, int graph_ysize) |
| | Called when the user has resized the window, forcing a resize of the graph.
|
| virtual void | clicked_label (int collector_index) |
| | Called when the user single-clicks on a label.
|
| virtual void | force_redraw () |
| | Called when it is necessary to redraw the entire graph.
|
| virtual void | new_collector (int collector_index) |
| | Called whenever a new Collector definition is received from the client.
|
| virtual void | new_data (int thread_index, int frame_number) |
| | Called as each frame's data is made available.
|
| virtual void | set_scroll_speed (double scroll_speed) |
| | Called when the user selects a new scroll speed from the monitor pulldown menu, this should adjust the speed for the graph to the indicated value.
|
| virtual void | set_time_units (int unit_mask) |
| | Called when the user selects a new time units from the monitor pulldown menu, this should adjust the units for the graph to the indicated mask if it is a time-based graph.
|
| void | set_vertical_scale (double value_height) |
| | Changes the value the height of the vertical axis represents.
|
Protected Member Functions |
| virtual void | additional_graph_window_paint () |
| | This is called during the servicing of expose_event; it gives a derived class opportunity to do some further painting into the graph window.
|
| virtual void | clear_region () |
| | Erases the chart area.
|
| virtual DragMode | consider_drag_start (int graph_x, int graph_y) |
| | Based on the mouse position within the graph window, look for draggable things the mouse might be hovering over and return the appropriate DragMode enum or DM_none if nothing is indicated.
|
| virtual void | copy_region (int start_x, int end_x, int dest_x) |
| | Should be overridden by the user class to copy a region of the chart from one part of the chart to another.
|
| virtual void | draw_cursor (int x) |
| | Draws a single vertical slice of foreground color.
|
| virtual void | draw_empty (int x, int w) |
| | Draws a single vertical slice of background color.
|
| virtual void | draw_slice (int x, int w, const PStatStripChart::FrameData &fdata) |
| | Draws a single vertical slice of the strip chart, at the given pixel position, and corresponding to the indicated level data.
|
| virtual void | end_draw (int from_x, int to_x) |
| | Should be overridden by the user class.
|
| virtual gboolean | handle_button_press (GtkWidget *widget, int graph_x, int graph_y, bool double_click) |
| | Called when the mouse button is depressed within the graph window.
|
| virtual gboolean | handle_button_release (GtkWidget *widget, int graph_x, int graph_y) |
| | Called when the mouse button is released within the graph window.
|
| virtual gboolean | handle_motion (GtkWidget *widget, int graph_x, int graph_y) |
| | Called when the mouse is moved within the graph window.
|
| virtual void | set_drag_mode (DragMode drag_mode) |
| | This should be called whenever the drag mode needs to change state.
|
| virtual void | update_labels () |
| | Resets the list of labels.
|
Detailed Description
A window that draws a strip chart, given a view.
Definition at line 32 of file gtkStatsStripChart.h.
Member Function Documentation
| void GtkStatsStripChart::additional_graph_window_paint |
( |
| ) |
[protected, virtual] |
| void GtkStatsStripChart::changed_graph_size |
( |
int |
graph_xsize, |
|
|
int |
graph_ysize |
|
) |
| [virtual] |
| void GtkStatsStripChart::clear_region |
( |
| ) |
[protected, virtual] |
| void GtkStatsStripChart::clicked_label |
( |
int |
collector_index | ) |
[virtual] |
| GtkStatsGraph::DragMode GtkStatsStripChart::consider_drag_start |
( |
int |
graph_x, |
|
|
int |
graph_y |
|
) |
| [protected, virtual] |
| void GtkStatsStripChart::copy_region |
( |
int |
start_x, |
|
|
int |
end_x, |
|
|
int |
dest_x |
|
) |
| [protected, virtual] |
| void GtkStatsStripChart::draw_cursor |
( |
int |
x | ) |
[protected, virtual] |
| void GtkStatsStripChart::draw_empty |
( |
int |
x, |
|
|
int |
w |
|
) |
| [protected, virtual] |
| void GtkStatsStripChart::draw_slice |
( |
int |
x, |
|
|
int |
w, |
|
|
const PStatStripChart::FrameData & |
fdata |
|
) |
| [protected, virtual] |
| void GtkStatsStripChart::end_draw |
( |
int |
from_x, |
|
|
int |
to_x |
|
) |
| [protected, virtual] |
| void GtkStatsStripChart::force_redraw |
( |
| ) |
[virtual] |
| gboolean GtkStatsStripChart::handle_button_press |
( |
GtkWidget * |
widget, |
|
|
int |
graph_x, |
|
|
int |
graph_y, |
|
|
bool |
double_click |
|
) |
| [protected, virtual] |
| gboolean GtkStatsStripChart::handle_button_release |
( |
GtkWidget * |
widget, |
|
|
int |
graph_x, |
|
|
int |
graph_y |
|
) |
| [protected, virtual] |
| gboolean GtkStatsStripChart::handle_motion |
( |
GtkWidget * |
widget, |
|
|
int |
graph_x, |
|
|
int |
graph_y |
|
) |
| [protected, virtual] |
| void GtkStatsStripChart::new_collector |
( |
int |
collector_index | ) |
[virtual] |
| void GtkStatsStripChart::new_data |
( |
int |
thread_index, |
|
|
int |
frame_number |
|
) |
| [virtual] |
| void GtkStatsStripChart::set_drag_mode |
( |
GtkStatsGraph::DragMode |
drag_mode | ) |
[protected, virtual] |
| void GtkStatsStripChart::set_scroll_speed |
( |
double |
scroll_speed | ) |
[virtual] |
| void GtkStatsStripChart::set_time_units |
( |
int |
unit_mask | ) |
[virtual] |
| void GtkStatsStripChart::set_vertical_scale |
( |
double |
value_height | ) |
|
| void GtkStatsStripChart::update_labels |
( |
| ) |
[protected, virtual] |
The documentation for this class was generated from the following files:
| | |