/[classpath]/classpath/javax/swing/text/WrappedPlainView.java
ViewVC logotype

Diff of /classpath/javax/swing/text/WrappedPlainView.java

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

revision 1.2 by abalkiss, Mon Oct 31 20:42:04 2005 UTC revision 1.3 by abalkiss, Mon Oct 31 21:29:52 2005 UTC
# Line 46  import java.awt.Rectangle; Line 46  import java.awt.Rectangle;
46  import java.awt.Shape;  import java.awt.Shape;
47    
48  import javax.swing.event.DocumentEvent;  import javax.swing.event.DocumentEvent;
 import javax.swing.event.DocumentEvent.ElementChange;  
49  import javax.swing.text.Position.Bias;  import javax.swing.text.Position.Bias;
50    
51  /**  /**
# Line 273  public class WrappedPlainView extends Bo Line 272  public class WrappedPlainView extends Bo
272    public void insertUpdate (DocumentEvent e, Shape a, ViewFactory f)    public void insertUpdate (DocumentEvent e, Shape a, ViewFactory f)
273    {    {
274      super.insertUpdate(e, a, viewFactory);      super.insertUpdate(e, a, viewFactory);
275        // FIXME: could improve performance by repainting only the necessary area
276        getContainer().repaint();
277    }    }
278        
279    /**    /**
# Line 282  public class WrappedPlainView extends Bo Line 283  public class WrappedPlainView extends Bo
283    public void removeUpdate (DocumentEvent e, Shape a, ViewFactory f)    public void removeUpdate (DocumentEvent e, Shape a, ViewFactory f)
284    {    {
285      super.removeUpdate(e, a, viewFactory);      super.removeUpdate(e, a, viewFactory);
286        // FIXME: could improve performance by repainting only the necessary area
287        getContainer().repaint();
288    }    }
289        
290    /**    /**
# Line 292  public class WrappedPlainView extends Bo Line 295  public class WrappedPlainView extends Bo
295    public void changedUpdate (DocumentEvent e, Shape a, ViewFactory f)    public void changedUpdate (DocumentEvent e, Shape a, ViewFactory f)
296    {    {
297      super.changedUpdate(e, a, viewFactory);      super.changedUpdate(e, a, viewFactory);
298        // FIXME: could improve performance by repainting only the necessary area
299        getContainer().repaint();
300    }    }
301            
302    class WrappedLineCreator implements ViewFactory    class WrappedLineCreator implements ViewFactory

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

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