/[thuban]/branches/WIP-pyshapelib-bramz/Thuban/UI/renderer.py
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/Thuban/UI/renderer.py

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

revision 1234 by jonathan, Wed Jun 18 14:47:38 2003 UTC revision 1324 by frank, Tue Jul 1 09:28:47 2003 UTC
# Line 515  class ExportRenderer(ScreenRenderer): Line 515  class ExportRenderer(ScreenRenderer):
515          # Render the legend          # Render the legend
516          dc.SetTextForeground(wxBLACK)          dc.SetTextForeground(wxBLACK)
517          if map.HasLayers():          if map.HasLayers():
518              for l in map.Layers():              layers = map.Layers()
519                layers.reverse()
520                for l in layers:
521                  if l.Visible():                  if l.Visible():
522                      # Render title                      # Render title
523                      dc.DrawText(l.Title(), posx, posy)                      dc.DrawText(l.Title(), posx, posy)
524                      posy+=stepy                      posy+=stepy
525                      # Render classification                      if l.HasClassification():
526                      clazz = l.GetClassification()                          # Render classification
527                      shapeType = l.ShapeType()                          clazz = l.GetClassification()
528                      for g in clazz:                          shapeType = l.ShapeType()
529                          if g.IsVisible():                          for g in clazz:
530                              previewer.Draw(dc,                              if g.IsVisible():
531                                  wxRect(posx+dx, posy, iconwidth, iconheight),                                  previewer.Draw(dc,
532                                  g.GetProperties(), shapeType)                                      wxRect(posx+dx, posy,
533                              dc.DrawText(g.GetDisplayText(),                                             iconwidth, iconheight),
534                                          posx+2*dx+iconwidth, posy)                                      g.GetProperties(), shapeType)
535                              posy+=stepy                                  dc.DrawText(g.GetDisplayText(),
536                                                posx+2*dx+iconwidth, posy)
537                                    posy+=stepy
538                    
539      def render_scalebar(self, map):      def render_scalebar(self, map):
540          """Render the scalebar."""          """Render the scalebar."""

Legend:
Removed from v.1234  
changed lines
  Added in v.1324

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26