Package reportlab :: Package graphics :: Module shapes :: Class UserNode
[show private | hide private]
[frames | no frames]

Class UserNode

_DrawTimeResizeable --+
                      |
                     UserNode

Known Subclasses:
Widget

A simple template for creating a new node. The user (Python programmer) may subclasses this. provideNode() must be defined to provide a Shape primitive when called by a renderer. It does NOT inherit from Shape, as the renderer always replaces it, and your own classes can safely inherit from it without getting lots of unintended behaviour.
Method Summary
  provideNode(self)
Override this to create your own node.
    Inherited from _DrawTimeResizeable
  _drawTimeResize(self, w, h)

Method Details

provideNode(self)

Override this to create your own node. This lets widgets be added to drawings; they must create a shape (typically a group) so that the renderer can draw the custom node.

Generated by Epydoc 2.1 on Thu Jun 30 22:06:03 2005 http://epydoc.sf.net