Font.java [...]: New versions from classpath.
2003-06-19 Michael Koch <konqueror@gmx.de> * java/awt/Font.java javax/swing/UIManager.java javax/swing/border/AbstractBorder.java javax/swing/border/BevelBorder.java javax/swing/border/Border.java javax/swing/border/CompoundBorder.java javax/swing/border/EmptyBorder.java javax/swing/border/EtchedBorder.java javax/swing/border/LineBorder.java javax/swing/border/MatteBorder.java javax/swing/border/TitledBorder.java javax/swing/plaf/BorderUIResource.java javax/swing/plaf/basic/BasicBorders.java javax/swing/plaf/basic/BasicButtonUI.java javax/swing/plaf/basic/BasicCheckBoxUI.java javax/swing/plaf/basic/BasicGraphicsUtils.java javax/swing/plaf/basic/BasicLabelUI.java javax/swing/plaf/basic/BasicRadioButtonUI.java javax/swing/plaf/basic/BasicToggleButtonUI.java: New versions from classpath. * javax/swing/border/SoftBevelBorder.java: New file from classpath. * javax/swing/border/doc-files/LineBorder-1.png, javax/swing/border/doc-files/BevelBorder-1.png, javax/swing/border/doc-files/BevelBorder-2.png, javax/swing/border/doc-files/BevelBorder-3.png, javax/swing/border/doc-files/EmptyBorder-1.png, javax/swing/border/doc-files/EtchedBorder-1.png, javax/swing/border/doc-files/EtchedBorder-2.png, javax/swing/border/doc-files/MatteBorder-1.png, javax/swing/border/doc-files/MatteBorder-2.png, javax/swing/border/doc-files/MatteBorder-3.png, javax/swing/border/doc-files/MatteBorder-4.png, javax/swing/border/doc-files/MatteBorder-5.png, javax/swing/border/doc-files/MatteBorder-6.png, javax/swing/border/doc-files/SoftBevelBorder-1.png, javax/swing/border/doc-files/SoftBevelBorder-2.png, javax/swing/border/doc-files/SoftBevelBorder-3.png, javax/swing/plaf/basic/doc-files/BasicBorders.MarginBorder-1.png, javax/swing/plaf/basic/doc-files/BasicBorders.ButtonBorder-1.png, javax/swing/plaf/basic/doc-files/BasicGraphicsUtils-1.png, javax/swing/plaf/basic/doc-files/BasicGraphicsUtils-2.png, javax/swing/plaf/basic/doc-files/BasicGraphicsUtils-3.png, javax/swing/plaf/basic/doc-files/BasicGraphicsUtils-4.png, javax/swing/plaf/basic/doc-files/BasicGraphicsUtils-5.png, javax/swing/plaf/basic/doc-files/BasicGraphicsUtils-6.png, javax/swing/plaf/basic/doc-files/BasicGraphicsUtils-7.png: New binary files from classpath. * Makefile.am (awt_java_source_files): Added javax/swing/border/SoftBevelBorder.java. * Makefile.in: Regenerated. From-SVN: r68190
This commit is contained in:
committed by
Michael Koch
parent
1681bed6c8
commit
8993c12bee
@@ -39,6 +39,8 @@ exception statement from your version. */
|
||||
package java.awt;
|
||||
|
||||
import java.awt.peer.FontPeer;
|
||||
import java.awt.font.FontRenderContext;
|
||||
import java.awt.font.LineMetrics;
|
||||
import java.io.Serializable;
|
||||
import java.util.StringTokenizer;
|
||||
|
||||
@@ -484,5 +486,28 @@ toString()
|
||||
",size=" + size + ")");
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Determines the line metrics for a run of text.
|
||||
*
|
||||
* @param str the text run to be measured.
|
||||
*
|
||||
* @param frc the font rendering parameters that are used for the
|
||||
* measurement. The exact placement and size of text slightly
|
||||
* depends on device-specific characteristics, for instance
|
||||
* the device resolution or anti-aliasing. For this reason,
|
||||
* the returned measurement will only be accurate if the
|
||||
* passed <code>FontRenderContext</code> correctly reflects
|
||||
* the relevant parameters. Hence, <code>frc</code> should be
|
||||
* obtained from the same <code>Graphics2D</code> that will
|
||||
* be used for drawing, and any rendering hints should be set
|
||||
* to the desired values before obtaining <code>frc</code>.
|
||||
*
|
||||
* @see java.awt.Graphics2D#getFontRenderContext()
|
||||
*/
|
||||
public LineMetrics getLineMetrics(String str, FontRenderContext frc)
|
||||
{
|
||||
throw new UnsupportedOperationException(); // FIXME
|
||||
}
|
||||
} // class Font
|
||||
|
||||
|
||||
Reference in New Issue
Block a user