/[fenfire]/fenfire/org/fenfire/view/lava/mindMapView2D.py
ViewVC logotype

Diff of /fenfire/org/fenfire/view/lava/mindMapView2D.py

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

revision 1.47 by humppake, Tue Aug 26 13:21:10 2003 UTC revision 1.48 by humppake, Tue Aug 26 14:26:34 2003 UTC
# Line 56  class MindMapMainNode2D(ff.view.buoy.Mai Line 56  class MindMapMainNode2D(ff.view.buoy.Mai
56          self.multiplexer = ff.swamp.MultiplexerNodeFunction(normal, accursed)          self.multiplexer = ff.swamp.MultiplexerNodeFunction(normal, accursed)
57    
58          self.floatingView = MindMapView2D(fen, context)          self.floatingView = MindMapView2D(fen, context)
59          self.floatingView.filletLength = 50          self.floatingView.multiplexer = self.multiplexer
60          self.floatingView.filletWidth = 20          self.floatingView.filletLength = 40
61            self.floatingView.filletWidth = 25
62          self.floatingView.initRotation = 0          self.floatingView.initRotation = 0
63          self.floatingView.depth = 1          self.floatingView.depth = 1
64          self.floatingView.geometry.init(50, 20, 0, 1)          self.floatingView.geometry.init(40, 25, 0, 1)
65                    
66      def renderMain(self, vs, into):      def renderMain(self, vs, into):
67          ff.view.buoy.MainNode2D.renderMain(self, vs, into)          ff.view.buoy.MainNode2D.renderMain(self, vs, into)
# Line 73  class MindMapMainNode2D(ff.view.buoy.Mai Line 74  class MindMapMainNode2D(ff.view.buoy.Mai
74              set.add(accursed)              set.add(accursed)
75              self.multiplexer.setMultiplexerNodes(set);              self.multiplexer.setMultiplexerNodes(set);
76    
77          # then draw unused mind data into floating buffer.          floating = self.floatingBuffer(vs, into, self.context.components)
         buffer = []  
         iter = self.fen.graph.findN_X11_Iter(RDF.type, MINDSTRUCT.Data)  
         while (iter.hasNext()):  
             obj = iter.next()  
             if self.structLink.isLinked(obj): continue  
             if obj == self.getPlane(): continue  
             buffer.append(obj)  
   
         buffer.extend(self.context.components)  
         floating = self.floatingBuffer(vs, into, buffer)  
78          i = floating.keySet().iterator()          i = floating.keySet().iterator()
79    
80          while i.hasNext():          while i.hasNext():
# Line 156  class MindMapView2D(ff.view.View2D): Line 147  class MindMapView2D(ff.view.View2D):
147          self.thick = 1          self.thick = 1
148          self.drawEdge = 0          self.drawEdge = 0
149          self.drawInside = 1          self.drawInside = 1
150            self.drawInsideColor = java.awt.Color.blue
151          self.depthColor = 1          self.depthColor = 1
152          self.lines = 0          self.lines = 0
153          self.ellipses = 1          self.ellipses = 1
# Line 217  class MindMapView2D(ff.view.View2D): Line 209  class MindMapView2D(ff.view.View2D):
209              if dbg: p('Fillet coordinates:', c)              if dbg: p('Fillet coordinates:', c)
210              def pc(conns, cs):              def pc(conns, cs):
211                  if self.context.main.getPlane() == node:                  if self.context.main.getPlane() == node:
212                      vs.put(vob.putil.misc.getDListNocoords("""Color 1. 0. 0."""))                      vs.put(vob.putil.misc.getDListNocoords("Color 1 0 0"))
213                  vs.put(conns, cs+c)                  vs.put(conns, cs+c)
214    
215              # draw fillets              # draw fillets
# Line 234  class MindMapView2D(ff.view.View2D): Line 226  class MindMapView2D(ff.view.View2D):
226                  p = self.multiplexer.f(self.fen.graph, node)                  p = self.multiplexer.f(self.fen.graph, node)
227                  cs = vs.orthoBoxCS(cs, node, 0, 0, 0, 0, 0, 0, 0)                  cs = vs.orthoBoxCS(cs, node, 0, 0, 0, 0, 0, 0, 0)
228                  p.place(vs, cs)                  p.place(vs, cs)
                   
229    
230      def putNodeContent(self, vs, node, into):      def putNodeContent(self, vs, node, into):
231          # scaling after depth          # scaling after depth

Legend:
Removed from v.1.47  
changed lines
  Added in v.1.48

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