271 |
|
|
272 |
/* These methods delegate to the toolkit. */ |
/* These methods delegate to the toolkit. */ |
273 |
|
|
274 |
protected static ClasspathToolkit tk() |
static ClasspathToolkit tk() |
275 |
{ |
{ |
276 |
return (ClasspathToolkit) Toolkit.getDefaultToolkit(); |
return (ClasspathToolkit) Toolkit.getDefaultToolkit(); |
277 |
} |
} |
278 |
|
|
279 |
/* Every factory method in Font should eventually call this. */ |
/* Every factory method in Font should eventually call this. */ |
280 |
protected static Font getFontFromToolkit(String name, Map attribs) |
static Font getFontFromToolkit(String name, Map attribs) |
281 |
{ |
{ |
282 |
return tk().getFont(name, attribs); |
return tk().getFont(name, attribs); |
283 |
} |
} |
284 |
|
|
285 |
/* Every Font constructor should eventually call this. */ |
/* Every Font constructor should eventually call this. */ |
286 |
protected static ClasspathFontPeer getPeerFromToolkit(String name, Map attrs) |
static ClasspathFontPeer getPeerFromToolkit(String name, Map attrs) |
287 |
{ |
{ |
288 |
return tk().getClasspathFontPeer(name, attrs); |
return tk().getClasspathFontPeer(name, attrs); |
289 |
} |
} |