/[gzz]/gzz/gzz/view/buoy/zzNodes.py
ViewVC logotype

Diff of /gzz/gzz/view/buoy/zzNodes.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by tjl, Tue Feb 4 13:47:54 2003 UTC revision 1.7 by tjl, Thu Feb 6 11:53:14 2003 UTC
# Line 6  from gzz.view.buoy import CellBuoyViewNo Line 6  from gzz.view.buoy import CellBuoyViewNo
6  from gzz.util import Jython  from gzz.util import Jython
7    
8  vanishing = gzz.view.VobVanishingClient()  vanishing = gzz.view.VobVanishingClient()
9    vanishing.vanishing.raster.depth = 2
10  viewcontext = gzz.view.AbstractViewContext()  viewcontext = gzz.view.AbstractViewContext()
11    
12    mainvanishing = gzz.view.VobVanishingClient()
13    
14    
15    
16  viewcontext.setCellView(  viewcontext.setCellView(
17      gzz.view.MultitypeCellContentView(      gzz.view.MultitypeCellContentView(
# Line 20  class VanishingNodeType(CellBuoyViewNode Line 24  class VanishingNodeType(CellBuoyViewNode
24          """This generic view owns all cells.          """This generic view owns all cells.
25          """          """
26          return 1          return 1
27      def renderBuoy(self, vs, into, cell, content):      def renderBuoy(self, vs, into, cell, content, foo):
28          pass          viewcontext.setAccursed(cell)
29            vanishing.render(vs, into, viewcontext)
30      def createMainNode(self, cell, content, hook):      def createMainNode(self, cell, content, hook):
31          return VanishingMainNode(cell, hook)          return VanishingMainNode(cell, hook)
32    
# Line 31  class VanishingMainNode(BuoyViewMainNode Line 36  class VanishingMainNode(BuoyViewMainNode
36    
37          self.viewcontext = viewcontext.clone()          self.viewcontext = viewcontext.clone()
38          self.viewcontext.setAccursed(cell)          self.viewcontext.setAccursed(cell)
39          self.vanishing = vanishing.clone()          self.vanishing = mainvanishing.clone()
40          self.viewcontext.setCellView(          self.viewcontext.setCellView(
41              gzz.view.CellViewPlugin(              gzz.view.CellViewPlugin(
42                  self.viewcontext.getCellView(), hook))                  self.viewcontext.getCellView(), hook))
43      def renderMain(self, vs, into):      def renderMain(self, vs, into):
44          self.vanishing.render(vs, into, self.viewcontext)          self.vanishing.render(vs, into, self.viewcontext)
45        def mouse(self, ev, vs):
46            return 0

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26