summaryrefslogtreecommitdiff
path: root/plugins/python/cglimpse/method.py
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/python/cglimpse/method.py')
-rw-r--r--plugins/python/cglimpse/method.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/plugins/python/cglimpse/method.py b/plugins/python/cglimpse/method.py
index f2e9fdb..731271e 100644
--- a/plugins/python/cglimpse/method.py
+++ b/plugins/python/cglimpse/method.py
@@ -3,10 +3,12 @@ class GlimpseMethod():
"""Abstract class for gimpses."""
- def __init__(self, builder):
+ def __init__(self, builder, config, update_cb):
"""Populate the class with its attributes."""
self._builder = builder
+ self._config = config
+ self._update_cb = update_cb
self._v_legend = None
self._h_legend = None
@@ -37,6 +39,12 @@ class GlimpseMethod():
return str(value)
+ def update(self, data, coverage):
+ """Compute internal values for the method."""
+
+ pass
+
+
def render(self, cr, area):
"""Draw the bytes distribution for the current binary, if any."""