[Rdkit-devel] [PATCH 01/17] Add new CanvasBase class with required interface
Open-Source Cheminformatics and Machine Learning
Brought to you by:
glandrum
|
From: Gianluca S. <gi...@gm...> - 2011-03-19 09:44:33
|
--- rdkit/Chem/Draw/canvasbase.py | 24 ++++++++++++++++++++++++ 1 files changed, 24 insertions(+), 0 deletions(-) create mode 100644 rdkit/Chem/Draw/canvasbase.py diff --git a/rdkit/Chem/Draw/canvasbase.py b/rdkit/Chem/Draw/canvasbase.py new file mode 100644 index 0000000..86c13c5 --- /dev/null +++ b/rdkit/Chem/Draw/canvasbase.py @@ -0,0 +1,24 @@ +# Copyright (C) 2010 Gianluca Sforna +# +# All Rights Reserved +# +# This file is part of the RDKit. +# The contents are covered by the terms of the BSD license +# which is included in the file license.txt, found at the root +# of the RDKit source tree. + +class CanvasBase: + """ Base class for specialized canvas backends """ + + def addCanvasLine(self): + assert False, 'This should be implemented' + + def addCanvasText(self): + assert False, 'This should be implemented' + + def addCanvasPolygon(self): + assert False, 'This should be implemented' + + def addCanvasDashedWedge(self): + assert False, 'This should be implemented' + -- 1.7.4 |