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 |
|
|