/[fenfire]/fenfire/org/fenfire/demo/detail/pagespanbgfilter.py
ViewVC logotype

Diff of /fenfire/org/fenfire/demo/detail/pagespanbgfilter.py

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

revision 1.3 by jvk, Wed Apr 30 12:13:43 2003 UTC revision 1.4 by tjl, Wed Jun 25 10:35:36 2003 UTC
# Line 32  from org.nongnu import storm Line 32  from org.nongnu import storm
32    
33  from vob.putil.demokeys import *  from vob.putil.demokeys import *
34    
35    from org.fenfire.spanimages.gl import papermakers
36    
37  pool = org.nongnu.storm.impl.TransientPool(java.util.HashSet())  pool = org.nongnu.storm.impl.TransientPool(java.util.HashSet())
38  myalph = alph.impl.StormAlph(pool)  myalph = alph.impl.StormAlph(pool)
39  sc = myalph.addFile(java.io.File('../alph/testdata/test1.pdf'), 'application/pdf')  sc = myalph.addFile(java.io.File('../alph/testdata/test1.pdf'), 'application/pdf')
# Line 39  enfMaker = alph.impl.Enfilade1DImpl.Enfi Line 41  enfMaker = alph.impl.Enfilade1DImpl.Enfi
41    
42  class Scene:  class Scene:
43      def __init__(self):      def __init__(self):
44            w = vob.putil.demowindow.w
45            self.types = [
46                papermakers.white(w),
47                papermakers.fancyBlend(w),
48                papermakers.fancyHalo(w),
49                papermakers.fancyBlur(w),
50            ]
51          self.key = KeyPresses(          self.key = KeyPresses(
52              self,              self,
53              Toggle("blur", 0, "Blur bg", "b"),              ListIndex("type", "types", 0, "Papermaker", "P", "p"),
54              SlideLin("x", 0, 50, "x coord", "Right", "Left"),              SlideLin("x", 0, 50, "x coord", "Right", "Left"),
55              SlideLin("y", 0, 50, "y coord", "Down", "Up"),              SlideLin("y", 0, 50, "y coord", "Down", "Up"),
56              SlideLog("scale", 1, "scale", "-", "+"),              SlideLog("scale", 1, "scale", "-", "+"),
# Line 51  class Scene: Line 60  class Scene:
60    
61          scaled = vs.orthoCS(0, "X", 0, self.x, self.y, self.scale, self.scale)          scaled = vs.orthoCS(0, "X", 0, self.x, self.y, self.scale, self.scale)
62    
63          layout = ff.view.PageSpanLayout(enfMaker.makeEnfilade(sc.getCurrent()))          layout = ff.view.PageSpanLayout(
64          ff.util.PageSpanPaper.paperMill = vob.gl.PaperMill.getInstance()                  sc.getCurrent(),
65          ff.util.PageSpanPaper.paperMillWindow = vob.putil.demowindow.w                  self.types[self.type]
66                    )
67          #layout.useBg = 0          #layout.useBg = 0
68    
69          ff.util.PageSpanPaper.withBlur = self.blur          ff.util.PageSpanPaper.withBlur = self.blur

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

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