/[fenfire]/fenfire/org/fenfire/demo/mm.py
ViewVC logotype

Diff of /fenfire/org/fenfire/demo/mm.py

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

revision 1.19 by mudyc, Sun Aug 17 11:24:30 2003 UTC revision 1.20 by humppake, Sun Aug 17 12:05:55 2003 UTC
# Line 67  fen.txtfunc = fen.txt.getNodeFunction() Line 67  fen.txtfunc = fen.txt.getNodeFunction()
67  fen.enfiladeOverlap = fen.txt.getTransclusionIndex()  fen.enfiladeOverlap = fen.txt.getTransclusionIndex()
68  alphContent = ff.util.AlphContent(fen)  alphContent = ff.util.AlphContent(fen)
69    
 <<<<<<< mm.py  
 paperA = "urn:urn-5:P7OMBN+yp3-m-AkulZN-NeaJV9Sl:_1"  
 paperHome = "urn:urn-5:COz-fSvNBZRieCdefRTKO2Mgcjmz:_1"  
 paperB = "urn:urn-5:P7OMBN+yp3-m-AkulZN-NeaJV9Sl:_2"  
 paperC = "urn:urn-5:P7OMBN+yp3-m-AkulZN-NeaJV9Sl:_5"  
 fen.graph.add(Nodes.get(paperHome), RDF.type, CANVAS2D.Canvas);  
 fen.graph.add(Nodes.get(paperA), RDF.type, CANVAS2D.Canvas);  
 fen.graph.add(Nodes.get(paperB), RDF.type, CANVAS2D.Canvas);  
 fen.graph.add(Nodes.get(paperC), RDF.type, CANVAS2D.Canvas);  
   
 noteA1 = Nodes.get(ppAct.newNote(paperA, -30,-30, 'This is a test!'))  
 noteA2 = Nodes.get(ppAct.newNote(paperA, -60,-70, 'This is a test2!'))  
 noteA4 = Nodes.get(ppAct.newNote(paperA, -60,70, 'This is a very long test which is used to see if '))  
 noteA8 = Nodes.get(ppAct.newNote(paperA, -100,70, 'This is a very long test which is used to see if adsfadsfasdfasfasfsad'))  
 noteA9 = Nodes.get(ppAct.newNote(paperA, 100,70, 'This is a very long test which is used to see if asdfasdfsa'))  
   
   
 fen.graph.add(noteA2, RDF.type, MINDSTRUCT.Data)  
 fen.graph.add(noteA8, RDF.type, MINDSTRUCT.Data)  
 fen.graph.add(noteA9, RDF.type, MINDSTRUCT.Data)  
   
 ppAct.assocNotes(noteA1, 1, noteA2);  
   
 noteB1 = Nodes.get(ppAct.newNote(paperB, 1000,500, 'This is an another test!'))  
 ppAct.assocNotes(noteA1, 1, noteB1)  
 noteHome = Nodes.get(ppAct.newNote(paperHome, 0, 0, 'HOME'))  
 ppAct.assocNotes(noteHome, 1, noteA1)  
   
   
70  textstyle = vob.GraphicsAPI.getInstance().getTextStyle("sans", 0, 24)  textstyle = vob.GraphicsAPI.getInstance().getTextStyle("sans", 0, 24)
71  nodeview = ff.view.TextNodeView(fen.txtfunc, textstyle, 1)  nodeview = ff.view.TextNodeView(fen.txtfunc, textstyle, 1)
72  mindView = ff.view.lava.mindMapView2D.MindMapView2D(fen, nodeview)  mindView = ff.view.lava.mindMapView2D.MindMapView2D(fen, nodeview)

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20

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