root/trunk/RBRapier/RBRapier/Formats/Attic/SVG.old/Renderers/Abstract.py

Revision 631, 2.5 kB (checked in by sholloway, 5 years ago)

*** empty log message ***

Line 
1 #!/usr/bin/env python
2 ##~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3 ##~ License
4 ##~
5 ##- The RuneBlade Foundation library is intended to ease some
6 ##- aspects of writing intricate Jabber, XML, and User Interface (wxPython, etc.)
7 ##- applications, while providing the flexibility to modularly change the
8 ##- architecture. Enjoy.
9 ##~
10 ##~ Copyright (C) 2002  TechGame Networks, LLC.
11 ##~
12 ##~ This library is free software; you can redistribute it and/or
13 ##~ modify it under the terms of the BSD style License as found in the
14 ##~ LICENSE file included with this distribution.
15 ##~
16 ##~ TechGame Networks, LLC can be reached at:
17 ##~ 3578 E. Hartsel Drive #211
18 ##~ Colorado Springs, Colorado, USA, 80920
19 ##~
20 ##~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
21
22 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
23 #~ Imports
24 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
25
26 from RBRapier.Formats.SVG.SVGSkin.RenderItems.PathBuilder import AbstractPathFactory
27 from RBRapier.Formats.SVG.SVGSkin.RenderItems.TransformBuilder import AbstractTransformFactory
28
29 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
30 #~ Definitions
31 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
32
33 class AbstractRenderer(object):
34     """Double dispatch based renderer"""
35
36     def Display(self, ri):
37         raise NotImplementedError
38
39     #~ Meta Information ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
40
41     def DisplayTitle(self, ri_title):
42         raise NotImplementedError
43
44     def DisplayDescription(self, ri_desc):
45         raise NotImplementedError
46
47     #~ Groups ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
48
49     def DisplaySVG(self, ri_svg):
50         raise NotImplementedError
51
52     def DisplayGroup(self, ri_group):
53         raise NotImplementedError
54
55     def DisplaySymbol(self, ri_symbol):
56         raise NotImplementedError
57
58     def DisplayPattern(self, ri_pattern):
59         raise NotImplementedError
60
61     #~ Shapes ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
62
63     def DisplayLine(self, ri_line):
64         raise NotImplementedError
65
66     def DisplayRect(self, ri_rect):
67         raise NotImplementedError
68
69     def DisplayCircle(self, ri_circle):
70         raise NotImplementedError
71
72     def DisplayEllipse(self, ri_ellipse):
73         raise NotImplementedError
74
75     def DisplayPolygon(self, ri_polygon):
76         raise NotImplementedError
77
78     def DisplayPolyline(self, ri_polyline):
79         raise NotImplementedError
80
81     def DisplayPath(self, ri_path):
82         raise NotImplementedError
83
84     def DisplayText(self, ri_text):
85         raise NotImplementedError
86
Note: See TracBrowser for help on using the browser.