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

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

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

revision 1.6 by mark, Sat Jul 31 23:18:08 2004 UTC revision 1.6.2.1 by gnu_andrew, Fri Jan 14 10:24:17 2005 UTC
# Line 174  public abstract class View implements Sw Line 174  public abstract class View implements Sw
174    {    {
175      return elt.getEndOffset();      return elt.getEndOffset();
176    }    }
177    
178      public Shape getChildAllocation(int index, Shape a)
179      {
180        return null;
181      }
182      
183      /**
184       * @since 1.4
185       */
186      public int getViewIndex(float x, float y, Shape allocation)
187      {
188        return -1;
189      }
190      
191      /**
192       * @since 1.4
193       */
194      public String getToolTipText(float x, float y, Shape allocation)
195      {
196        int index = getViewIndex(x, y, allocation);
197    
198        if (index < -1)
199          return null;
200    
201        Shape childAllocation = getChildAllocation(index, allocation);
202    
203        if (childAllocation.getBounds().contains(x, y))
204          return getView(index).getToolTipText(x, y, childAllocation);
205    
206        return null;
207      }
208  }  }
209    

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.6.2.1

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