/[classpath]/classpath/java/awt/Container.java
ViewVC logotype

Diff of /classpath/java/awt/Container.java

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

revision 1.37.2.9 by gnu_andrew, Sat Feb 19 10:50:30 2005 UTC revision 1.37.2.10 by gnu_andrew, Sun Mar 13 14:38:38 2005 UTC
# Line 1690  public class Container extends Component Line 1690  public class Container extends Component
1690    
1691    static class GfxPaintVisitor extends GfxVisitor    static class GfxPaintVisitor extends GfxVisitor
1692    {    {
     public void visit(Component c, Graphics gfx) { c.paint(gfx); }  
1693      public static final GfxVisitor INSTANCE = new GfxPaintVisitor();      public static final GfxVisitor INSTANCE = new GfxPaintVisitor();
1694        
1695        public void visit(Component c, Graphics gfx)
1696        {
1697          c.paint(gfx);
1698        }
1699    }    }
1700    
1701    static class GfxPrintVisitor extends GfxVisitor    static class GfxPrintVisitor extends GfxVisitor
1702    {    {
     public void visit(Component c, Graphics gfx) { c.print(gfx); }  
1703      public static final GfxVisitor INSTANCE = new GfxPrintVisitor();      public static final GfxVisitor INSTANCE = new GfxPrintVisitor();
1704        
1705        public void visit(Component c, Graphics gfx)
1706        {
1707          c.print(gfx);
1708        }
1709    }    }
1710    
1711    static class GfxPaintAllVisitor extends GfxVisitor    static class GfxPaintAllVisitor extends GfxVisitor
1712    {    {
     public void visit(Component c, Graphics gfx) { c.paintAll(gfx); }  
1713      public static final GfxVisitor INSTANCE = new GfxPaintAllVisitor();      public static final GfxVisitor INSTANCE = new GfxPaintAllVisitor();
1714    
1715        public void visit(Component c, Graphics gfx)
1716        {
1717          c.paintAll(gfx);
1718        }
1719    }    }
1720    
1721    static class GfxPrintAllVisitor extends GfxVisitor    static class GfxPrintAllVisitor extends GfxVisitor
1722    {    {
     public void visit(Component c, Graphics gfx) { c.printAll(gfx); }  
1723      public static final GfxVisitor INSTANCE = new GfxPrintAllVisitor();      public static final GfxVisitor INSTANCE = new GfxPrintAllVisitor();
1724    
1725        public void visit(Component c, Graphics gfx)
1726        {
1727          c.printAll(gfx);
1728        }
1729    }    }
1730    
1731    /**    /**

Legend:
Removed from v.1.37.2.9  
changed lines
  Added in v.1.37.2.10

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