39 |
package java.awt; |
package java.awt; |
40 |
|
|
41 |
import java.awt.peer.FontPeer; |
import java.awt.peer.FontPeer; |
42 |
|
import java.awt.font.FontRenderContext; |
43 |
|
import java.awt.font.LineMetrics; |
44 |
import java.io.Serializable; |
import java.io.Serializable; |
45 |
import java.util.StringTokenizer; |
import java.util.StringTokenizer; |
46 |
|
|
486 |
",size=" + size + ")"); |
",size=" + size + ")"); |
487 |
} |
} |
488 |
|
|
489 |
|
|
490 |
|
/** |
491 |
|
* Determines the line metrics for a run of text. |
492 |
|
* |
493 |
|
* @param str the text run to be measured. |
494 |
|
* |
495 |
|
* @param frc the font rendering parameters that are used for the |
496 |
|
* measurement. The exact placement and size of text slightly |
497 |
|
* depends on device-specific characteristics, for instance |
498 |
|
* the device resolution or anti-aliasing. For this reason, |
499 |
|
* the returned measurement will only be accurate if the |
500 |
|
* passed <code>FontRenderContext</code> correctly reflects |
501 |
|
* the relevant parameters. Hence, <code>frc</code> should be |
502 |
|
* obtained from the same <code>Graphics2D</code> that will |
503 |
|
* be used for drawing, and any rendering hints should be set |
504 |
|
* to the desired values before obtaining <code>frc</code>. |
505 |
|
* |
506 |
|
* @see java.awt.Graphics2D#getFontRenderContext() |
507 |
|
*/ |
508 |
|
public LineMetrics getLineMetrics(String str, FontRenderContext frc) |
509 |
|
{ |
510 |
|
throw new UnsupportedOperationException(); // FIXME |
511 |
|
} |
512 |
} // class Font |
} // class Font |
513 |
|
|