diff options
author | Tim Moore <timoore@redhat.com> | 2009-12-03 19:31:08 +0100 |
---|---|---|
committer | Tim Moore <timoore@redhat.com> | 2009-12-03 19:31:08 +0100 |
commit | 03ebf81c360e429ef1e4f8bae48fe524f712589a (patch) | |
tree | f16a68b7f8cb14224d0e38181fea21617c93e9d8 /grapher/GraphStyle.hxx | |
parent | c10fce7d6aaa57a4f94f9d7aeea906597456f7ce (diff) | |
download | systemtap-steved-03ebf81c360e429ef1e4f8bae48fe524f712589a.tar.gz systemtap-steved-03ebf81c360e429ef1e4f8bae48fe524f712589a.tar.xz systemtap-steved-03ebf81c360e429ef1e4f8bae48fe524f712589a.zip |
Hover text for event-style graphs
Don't draw the data value for an event; only display it in hover text.
* grapher/Graph.hxx (window2GraphCoords): new function
* grapher/Graph.cxx (window2GraphCoords): ditto
* grapher/GraphStyle.cxx (GraphStyleEvent::dataIndexAtPoint): new
function implementation.
Diffstat (limited to 'grapher/GraphStyle.hxx')
-rw-r--r-- | grapher/GraphStyle.hxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/grapher/GraphStyle.hxx b/grapher/GraphStyle.hxx index 9625f451..ce75d698 100644 --- a/grapher/GraphStyle.hxx +++ b/grapher/GraphStyle.hxx @@ -48,6 +48,10 @@ namespace systemtap public: void draw(std::tr1::shared_ptr<GraphDataBase> graphData, Graph* graph, Cairo::RefPtr<Cairo::Context> cr); + virtual ssize_t dataIndexAtPoint(double x, double y, + std::tr1::shared_ptr<GraphDataBase> + graphData, + std::tr1::shared_ptr<Graph> graph); static GraphStyleEvent instance; }; } |