134 |
* |
* |
135 |
* @param font the specified font |
* @param font the specified font |
136 |
* @return the metrics for the specified font, or null if not supported |
* @return the metrics for the specified font, or null if not supported |
137 |
|
* @throws NullPointerException if font is null |
138 |
* @see #getFont() |
* @see #getFont() |
139 |
*/ |
*/ |
|
// XXX What happens if font is null? |
|
140 |
FontMetrics getFontMetrics(Font font); |
FontMetrics getFontMetrics(Font font); |
141 |
|
|
142 |
/** |
/** |
201 |
* |
* |
202 |
* @param point the Point to locate |
* @param point the Point to locate |
203 |
* @return true if the point is within this component |
* @return true if the point is within this component |
204 |
|
* @throws NullPointerException if point is null |
205 |
* @see #getBounds() |
* @see #getBounds() |
206 |
*/ |
*/ |
|
// XXX What happens if point is null? |
|
207 |
boolean contains(Point point); |
boolean contains(Point point); |
208 |
|
|
209 |
/** |
/** |
232 |
* specified represents the top-left corner of this component. |
* specified represents the top-left corner of this component. |
233 |
* |
* |
234 |
* @param point the top-left corner of this component relative to the parent |
* @param point the top-left corner of this component relative to the parent |
235 |
|
* @throws NullPointerException if point is null |
236 |
* @see #getLocation() |
* @see #getLocation() |
237 |
*/ |
*/ |
|
// XXX What happens if point is null? |
|
238 |
void setLocation(Point point); |
void setLocation(Point point); |
239 |
|
|
240 |
/** |
/** |
251 |
* relative location to its parent. |
* relative location to its parent. |
252 |
* |
* |
253 |
* @param rectangle the new height, width, and relative location |
* @param rectangle the new height, width, and relative location |
254 |
|
* @throws NullPointerException if rectangle is null |
255 |
*/ |
*/ |
|
// XXX What happens if rectangle is null? |
|
256 |
void setBounds(Rectangle rectangle); |
void setBounds(Rectangle rectangle); |
257 |
|
|
258 |
/** |
/** |
267 |
* Set the size of this component to the given dimensions. |
* Set the size of this component to the given dimensions. |
268 |
* |
* |
269 |
* @param dimension the new size of the component |
* @param dimension the new size of the component |
270 |
|
* @throws NullPointerException if dimension is null |
271 |
* @see #getSize() |
* @see #getSize() |
272 |
*/ |
*/ |
|
// XXX What happens if dimension is null? |
|
273 |
void setSize(Dimension dimension); |
void setSize(Dimension dimension); |
274 |
|
|
275 |
/** |
/** |
276 |
* If a object exists at the specified point which is a child of this |
* If an object exists at the specified point which is a child of this |
277 |
* parent component, and it is accessible, then it is returned. |
* parent component, and it is accessible, then it is returned. |
278 |
* |
* |
279 |
* @param point the location within this component's coordinate system |
* @param point the location within this component's coordinate system |