new parms to GVDoc::add_link() and add_node()

svn: r9653
This commit is contained in:
Stéphane Charette 2007-12-31 07:33:19 +00:00
parent f002f65c41
commit 55b9732662
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,6 @@
2007-12-30 Stéphane Charette <stephanecharette@gmail.com>
* src/BaseDoc.py: new parms in GVDoc::add_node() and GVDoc::add_link()
2007-12-30 Brian Matherly <brian@gramps-project.org>
* src/PluginUtils/__init__.py:
* src/PluginUtils/MenuOptions.py:

View File

@ -1563,7 +1563,7 @@ class GVDoc:
for Graphviz reports must implment this interface to be used by the
report system.
"""
def add_node(self, id, label, shape="box", fillcolor="white", url=""):
def add_node(self, id, label, shape="box", fillcolor="white", url="", htmloutput=False):
"""
Add a node to this graph. Nodes can be different shapes like boxes and
circles.
@ -1582,11 +1582,13 @@ class GVDoc:
@type fillcolor: string
@param url: A URL for the node.
@type url: string
@param htmloutput: Whether the label contains HTML.
@type htmloutput: boolean
@return: nothing
"""
raise NotImplementedError
def add_link(self, id1, id2, style="", head="", tail=""):
def add_link(self, id1, id2, style="", head="", tail="", comment=""):
"""
Add a link between two nodes.
@ -1596,6 +1598,9 @@ class GVDoc:
@param id2: The unique identifier of the ending node.
Example: "p55"
@type id2: string
@param comment: A text string displayed at the end of the link line.
Example: "person C is the son of person A and person B"
@type comment: string
@return: nothing
"""
raise NotImplementedError