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/Graph.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/Graph.hxx')
-rw-r--r-- | grapher/Graph.hxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/grapher/Graph.hxx b/grapher/Graph.hxx index b9efb2a2..044a66d3 100644 --- a/grapher/Graph.hxx +++ b/grapher/Graph.hxx @@ -41,6 +41,7 @@ namespace systemtap std::tr1::shared_ptr<CairoPlayButton> _playButton; DatasetList& getDatasets() { return _datasets; } int64_t getTimeAtPoint(double x); + void window2GraphCoords(double x, double y, double& xgraph, double& ygraph); protected: DatasetList _datasets; int64_t _left; |