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

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

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

revision 1.33 by tjl, Thu Feb 13 10:41:46 2003 UTC revision 1.34 by tjl, Thu Feb 13 14:39:30 2003 UTC
# Line 8  If this is from a xanadu link, we want t Line 8  If this is from a xanadu link, we want t
8  area.  area.
9  """  """
10    
11    # The coordinate systems used inside a single node/mainnode:
12    # all are matching-children of the "into" coordinate system.
13    #
14    # "LAYOUT" - the coordinate system in which the pagespan layout
15    #            is rendered into.
16    # "VIEWPORT" - the edges of the viewport
17    
18  import jarray  import jarray
19  import java  import java
20    
 # Page span scrollblock as a whole;  
 # in buoys, a part is shown.  
   
21  import gzz  import gzz
22  import gfx  import gfx
23  from gzz.view.buoy import BuoyViewNodeType, BuoyViewMainNode  from gzz.view.buoy import BuoyViewNodeType, BuoyViewMainNode
# Line 64  class WholePageSpanNodeType(AbstractPage Line 68  class WholePageSpanNodeType(AbstractPage
68          if data == None:          if data == None:
69              data = getScrollblockData(anchorSpan.getScrollBlock())              data = getScrollblockData(anchorSpan.getScrollBlock())
70          # For now, we'll just squish to fit          # For now, we'll just squish to fit
71          data.layout.placeBoxed(vs, into, .3, 100)          unit = vs.unitSqCS(into, "UNIT")
72            scaled = vs.coords.scale(unit,
73                        1.0 / data.layout.w, 1.0 / data.layout.h)
74            vs.matcher.add(into, scaled, "LAYOUT")
75            data.layout.place(vs, scaled, .3, 100)
76    
77          return into          return into
78    
# Line 161  class PageSpanMainNode(BuoyViewMainNode) Line 169  class PageSpanMainNode(BuoyViewMainNode)
169          self.scale = vs.scaleCS(self.ctr, "SCALE", self.scale, self.scale)          self.scale = vs.scaleCS(self.ctr, "SCALE", self.scale, self.scale)
170    
171          self.shift = self.fisheye.getCoordsys(vs, self.scale, "TR")          self.shift = self.fisheye.getCoordsys(vs, self.scale, "TR")
172            vs.matcher.add(into, self.shift, "LAYOUT")
173    
         # XXX This is not right: the distortion  
         # should be done here.  
174          self.data.layout.place(vs, self.shift, .7, 300)          self.data.layout.place(vs, self.shift, .7, 300)
175    
176          if self.nodetype.scrollBlockLinker.enfiladeOverlap != None:          if self.nodetype.scrollBlockLinker.enfiladeOverlap != None:

Legend:
Removed from v.1.33  
changed lines
  Added in v.1.34

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