summaryrefslogtreecommitdiffstats
path: root/grapher/GraphStyle.hxx
diff options
context:
space:
mode:
authorDave Brolley <brolley@redhat.com>2009-12-21 12:42:11 -0500
committerDave Brolley <brolley@redhat.com>2009-12-21 12:42:11 -0500
commit25a0404570724499bcdf1ebfd9f03084c2e00137 (patch)
treef9824f847b407790ab10116c2ebcc7e664d53253 /grapher/GraphStyle.hxx
parent08098abb6b206dc3aea984f18b5054d34e015185 (diff)
parentc6fcc4c1ca5f222cf90bf3968e34a10f09b30be4 (diff)
downloadsystemtap-steved-25a0404570724499bcdf1ebfd9f03084c2e00137.tar.gz
systemtap-steved-25a0404570724499bcdf1ebfd9f03084c2e00137.tar.xz
systemtap-steved-25a0404570724499bcdf1ebfd9f03084c2e00137.zip
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap
Diffstat (limited to 'grapher/GraphStyle.hxx')
-rw-r--r--grapher/GraphStyle.hxx84
1 files changed, 42 insertions, 42 deletions
diff --git a/grapher/GraphStyle.hxx b/grapher/GraphStyle.hxx
index bea4922a..4924ed2e 100644
--- a/grapher/GraphStyle.hxx
+++ b/grapher/GraphStyle.hxx
@@ -14,53 +14,53 @@
namespace systemtap
{
- class GraphDataBase;
- class Graph;
+class GraphDataBase;
+class Graph;
- class GraphStyle
+class GraphStyle
+{
+public:
+ virtual void draw(std::tr1::shared_ptr<GraphDataBase> graphData,
+ Graph* graph, Cairo::RefPtr<Cairo::Context> cr) = 0;
+ virtual ssize_t dataIndexAtPoint(double x, double y,
+ std::tr1::shared_ptr<GraphDataBase>
+ graphData,
+ std::tr1::shared_ptr<Graph> graph)
{
- public:
- virtual void draw(std::tr1::shared_ptr<GraphDataBase> graphData,
- Graph* graph, Cairo::RefPtr<Cairo::Context> cr) = 0;
- virtual ssize_t dataIndexAtPoint(double x, double y,
- std::tr1::shared_ptr<GraphDataBase>
- graphData,
- std::tr1::shared_ptr<Graph> graph)
- {
- return -1;
- }
- };
+ return -1;
+ }
+};
- class GraphStyleBar : public GraphStyle
- {
- public:
- void draw(std::tr1::shared_ptr<GraphDataBase> graphData,
- Graph* graph, Cairo::RefPtr<Cairo::Context> cr);
+class GraphStyleBar : public GraphStyle
+{
+public:
+ void draw(std::tr1::shared_ptr<GraphDataBase> graphData,
+ Graph* graph, Cairo::RefPtr<Cairo::Context> cr);
- static GraphStyleBar instance;
- ssize_t dataIndexAtPoint(double x, double y,
- std::tr1::shared_ptr<GraphDataBase> graphData,
- std::tr1::shared_ptr<Graph> graph);
- };
+ static GraphStyleBar instance;
+ ssize_t dataIndexAtPoint(double x, double y,
+ std::tr1::shared_ptr<GraphDataBase> graphData,
+ std::tr1::shared_ptr<Graph> graph);
+};
- class GraphStyleDot : public GraphStyle
- {
- public:
- void draw(std::tr1::shared_ptr<GraphDataBase> graphData,
- Graph* graph, Cairo::RefPtr<Cairo::Context> cr);
- static GraphStyleDot instance;
- };
+class GraphStyleDot : public GraphStyle
+{
+public:
+ void draw(std::tr1::shared_ptr<GraphDataBase> graphData,
+ Graph* graph, Cairo::RefPtr<Cairo::Context> cr);
+ static GraphStyleDot instance;
+};
- class GraphStyleEvent : public GraphStyle
- {
- 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;
- };
+class GraphStyleEvent : public GraphStyle
+{
+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;
+};
}
#endif