/[schmitzm]/trunk/src/skrueger/geotools/MapPaneToolBar.java
ViewVC logotype

Diff of /trunk/src/skrueger/geotools/MapPaneToolBar.java

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

revision 160 by alfonx, Mon Jun 22 17:15:45 2009 UTC revision 180 by alfonx, Thu Jul 2 14:44:57 2009 UTC
# Line 1  Line 1 
1  package skrueger.geotools;  package skrueger.geotools;
2    
3    import java.awt.Color;
4  import java.awt.Dimension;  import java.awt.Dimension;
5    import java.awt.Graphics;
6  import java.awt.event.ActionEvent;  import java.awt.event.ActionEvent;
7  import java.util.ArrayList;  import java.util.ArrayList;
8  import java.util.Locale;  import java.util.Locale;
# Line 294  public class MapPaneToolBar extends JToo Line 296  public class MapPaneToolBar extends JToo
296                  }                  }
297                                    
298                  revalidate();                  revalidate();
299                    repaint();
300          }          }
301    
302          // Space between tool buttons and action buttons          // Space between tool buttons and action buttons
# Line 794  public class MapPaneToolBar extends JToo Line 797  public class MapPaneToolBar extends JToo
797                          return id;                          return id;
798                  }                  }
799          }          }
800            
801              /**
802               * Nuetzlich wenn die Componente gedruckt (z.B. wenn ein Screenshot gemacht wird) wird. Dann werden wird der
803               * Hintergrund auf WEISS gesetzt.
804               *
805               * @author <a href="mailto:[email protected]">Stefan Alfons
806               *         Kr&uuml;ger</a>
807               */
808              @Override
809              public void print(Graphics g) {
810                  Color orig = getBackground();
811                  setBackground(Color.WHITE);
812                  // wrap in try/finally so that we always restore the state
813                  try {
814                      super.print(g);
815                  } finally {
816                      setBackground(orig);
817                  }
818              }
819  }  }

Legend:
Removed from v.160  
changed lines
  Added in v.180

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26