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

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

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

revision 1.26 by abalkiss, Fri Oct 14 19:54:13 2005 UTC revision 1.27 by rabbit78, Wed Oct 19 14:57:32 2005 UTC
# Line 49  import java.awt.Shape; Line 49  import java.awt.Shape;
49  import javax.swing.event.DocumentEvent;  import javax.swing.event.DocumentEvent;
50  import javax.swing.event.DocumentEvent.ElementChange;  import javax.swing.event.DocumentEvent.ElementChange;
51    
52  public class PlainView extends View  public class PlainView extends View implements TabExpander
   implements TabExpander  
53  {  {
54    Color selectedColor;    Color selectedColor;
55    Color unselectedColor;    Color unselectedColor;
# Line 256  public class PlainView extends View Line 255  public class PlainView extends View
255            }            }
256          catch (BadLocationException ex)          catch (BadLocationException ex)
257            {            {
258                assert false : "BadLocationException should not be thrown here.";
259            }            }
260                    
261          if (seg == null || seg.array == null || seg.count == 0)          if (seg == null || seg.array == null || seg.count == 0)
# Line 416  public class PlainView extends View Line 416  public class PlainView extends View
416            }            }
417          catch (BadLocationException ex)          catch (BadLocationException ex)
418            {            {
419                assert false : "BadLocationException should not be thrown here.";
420            }            }
421                                    
422          if (seg == null || seg.array == null || seg.count == 0)          if (seg == null || seg.array == null || seg.count == 0)
# Line 503  public class PlainView extends View Line 504  public class PlainView extends View
504      else      else
505        {        {
506          Rectangle repaintRec = rec0.union(rec1);          Rectangle repaintRec = rec0.union(rec1);
507          host.repaint(0, repaintRec.y, host.getWidth(),          host.repaint();
                      repaintRec.height);  
508        }            }    
509    }    }
510    

Legend:
Removed from v.1.26  
changed lines
  Added in v.1.27

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