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

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

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

revision 1.18 by rabbit78, Thu Nov 3 14:09:22 2005 UTC revision 1.19 by rabbit78, Wed Nov 23 11:59:30 2005 UTC
# Line 45  import java.awt.Rectangle; Line 45  import java.awt.Rectangle;
45  import java.text.BreakIterator;  import java.text.BreakIterator;
46    
47  import javax.swing.SwingConstants;  import javax.swing.SwingConstants;
48    import javax.swing.SwingUtilities;
49    
50  /**  /**
51   * A set of utilities to deal with text. This is used by several other classes   * A set of utilities to deal with text. This is used by several other classes
# Line 573  public class Utilities Line 574  public class Utilities
574      View rootView = c.getUI().getRootView(c);      View rootView = c.getUI().getRootView(c);
575      Rectangle r = c.modelToView(offset);      Rectangle r = c.modelToView(offset);
576      int offs = c.viewToModel(new Point(x, r.y));      int offs = c.viewToModel(new Point(x, r.y));
577      int pos = rootView.getNextVisualPositionFrom(c, offs,      int pos = rootView.getNextVisualPositionFrom(offs,
578                                                   Position.Bias.Forward,                                      Position.Bias.Forward,
579                                                   SwingConstants.NORTH,                                      SwingUtilities.calculateInnerArea(c, null),
580                                                   new Position.Bias[1]);                                      SwingConstants.NORTH,
581                                        new Position.Bias[1]);
582      return pos;      return pos;
583    }    }
584    
# Line 599  public class Utilities Line 601  public class Utilities
601      View rootView = c.getUI().getRootView(c);      View rootView = c.getUI().getRootView(c);
602      Rectangle r = c.modelToView(offset);      Rectangle r = c.modelToView(offset);
603      int offs = c.viewToModel(new Point(x, r.y));      int offs = c.viewToModel(new Point(x, r.y));
604      int pos = rootView.getNextVisualPositionFrom(c, offs,      int pos = rootView.getNextVisualPositionFrom(offs,
605                                                   Position.Bias.Forward,                                      Position.Bias.Forward,
606                                                   SwingConstants.SOUTH,                                      SwingUtilities.calculateInnerArea(c, null),
607                                                   new Position.Bias[1]);                                      SwingConstants.SOUTH,
608                                        new Position.Bias[1]);
609      return pos;      return pos;
610    }    }
611  }  }

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19

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