📄 pdfgraphics2d.pdffontmetrics.html
字号:
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getLeading()"><!-- --></A><H3>
getLeading</H3>
<PRE>
public int <B>getLeading</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/awt/FontMetrics.html#getLeading()">getLeading</A></CODE> in class <CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/awt/FontMetrics.html">FontMetrics</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getMaxAdvance()"><!-- --></A><H3>
getMaxAdvance</H3>
<PRE>
public int <B>getMaxAdvance</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/awt/FontMetrics.html#getMaxAdvance()">getMaxAdvance</A></CODE> in class <CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/awt/FontMetrics.html">FontMetrics</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getWidths()"><!-- --></A><H3>
getWidths</H3>
<PRE>
public int[] <B>getWidths</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/awt/FontMetrics.html#getWidths()">getWidths</A></CODE> in class <CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/awt/FontMetrics.html">FontMetrics</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="charWidth(char)"><!-- --></A><H3>
charWidth</H3>
<PRE>
public int <B>charWidth</B>(char c)</PRE>
<DL>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/awt/FontMetrics.html#charWidth(char)">charWidth</A></CODE> in class <CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/awt/FontMetrics.html">FontMetrics</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="stringWidth(java.lang.String)"><!-- --></A><H3>
stringWidth</H3>
<PRE>
public int <B>stringWidth</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> s)</PRE>
<DL>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/awt/FontMetrics.html#stringWidth(java.lang.String)">stringWidth</A></CODE> in class <CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/awt/FontMetrics.html">FontMetrics</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getStringBounds(java.lang.String, java.awt.Graphics)"><!-- --></A><H3>
getStringBounds</H3>
<PRE>
public <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/awt/geom/Rectangle2D.html">Rectangle2D</A> <B>getStringBounds</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> str, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/awt/Graphics.html">Graphics</A> context)</PRE>
<DL>
<DD>Returns the bounds of the specified <code>String</code> in the specified <code>Graphics</code> context. The bounds is used to layout the <code>String</code>.
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/awt/FontMetrics.html#getStringBounds(java.lang.String, java.awt.Graphics)">getStringBounds</A></CODE> in class <CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/awt/FontMetrics.html">FontMetrics</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>str</CODE> - the specified <code>String</code><DD><CODE>context</CODE> - the specified <code>Graphics</code> context<DT><B>Returns:</B><DD>a <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/awt/geom/Rectangle2D.html"><CODE>Rectangle2D</CODE></A> that is the bounding box of the specified <code>String</code> in the specified <code>Graphics</code> context.<DT><B>See Also:</B><DD><CODE>Font.getStringBounds(String, FontRenderContext)</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="getStringBounds(java.lang.String, int, int, java.awt.Graphics)"><!-- --></A><H3>
getStringBounds</H3>
<PRE>
public <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/awt/geom/Rectangle2D.html">Rectangle2D</A> <B>getStringBounds</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> str, int beginIndex, int limit, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/awt/Graphics.html">Graphics</A> context)</PRE>
<DL>
<DD>Returns the bounds of the specified <code>String</code> in the specified <code>Graphics</code> context. The bounds is used to layout the <code>String</code>.
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/awt/FontMetrics.html#getStringBounds(java.lang.String, int, int, java.awt.Graphics)">getStringBounds</A></CODE> in class <CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/awt/FontMetrics.html">FontMetrics</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>str</CODE> - the specified <code>String</code><DD><CODE>beginIndex</CODE> - the offset of the beginning of <code>str</code><DD><CODE>limit</CODE> - the length of <code>str</code><DD><CODE>context</CODE> - the specified <code>Graphics</code> context<DT><B>Returns:</B><DD>a <code>Rectangle2D</code> that is the bounding box of the specified <code>String</code> in the specified <code>Graphics</code> context.<DT><B>See Also:</B><DD><CODE>Font.getStringBounds(String, int, int, FontRenderContext)</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="getStringBounds(char[], int, int, java.awt.Graphics)"><!-- --></A><H3>
getStringBounds</H3>
<PRE>
public <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/awt/geom/Rectangle2D.html">Rectangle2D</A> <B>getStringBounds</B>(char[] chars, int beginIndex, int limit, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/awt/Graphics.html">Graphics</A> context)</PRE>
<DL>
<DD>Returns the bounds of the specified array of characters in the specified <code>Graphics</code> context. The bounds is used to layout the <code>String</code> created with the specified array of characters, <code>beginIndex</code> and <code>limit</code>.
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/awt/FontMetrics.html#getStringBounds(char[], int, int, java.awt.Graphics)">getStringBounds</A></CODE> in class <CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/awt/FontMetrics.html">FontMetrics</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>chars</CODE> - an array of characters<DD><CODE>beginIndex</CODE> - the initial offset of the array of characters<DD><CODE>limit</CODE> - the length of the array of characters<DD><CODE>context</CODE> - the specified <code>Graphics</code> context<DT><B>Returns:</B><DD>a <code>Rectangle2D</code> that is the bounding box of the specified character array in the specified <code>Graphics</code> context.<DT><B>See Also:</B><DD><CODE>Font.getStringBounds(char[], int, int, FontRenderContext)</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="getStringBounds(java.text.CharacterIterator, int, int, java.awt.Graphics)"><!-- --></A><H3>
getStringBounds</H3>
<PRE>
public <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/awt/geom/Rectangle2D.html">Rectangle2D</A> <B>getStringBounds</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/text/CharacterIterator.html">CharacterIterator</A> ci, int beginIndex, int limit, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/awt/Graphics.html">Graphics</A> context)</PRE>
<DL>
<DD>Returns the bounds of the characters indexed in the specified <code>CharacterIterator</code> in the specified <code>Graphics</code> context.
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/awt/FontMetrics.html#getStringBounds(java.text.CharacterIterator, int, int, java.awt.Graphics)">getStringBounds</A></CODE> in class <CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/awt/FontMetrics.html">FontMetrics</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>ci</CODE> - the specified <code>CharacterIterator</code><DD><CODE>beginIndex</CODE> - the initial offset in <code>ci</code><DD><CODE>limit</CODE> - the end index of <code>ci</code><DD><CODE>context</CODE> - the specified <code>Graphics</code> context<DT><B>Returns:</B><DD>a <code>Rectangle2D</code> that is the bounding box of the characters indexed in the specified <code>CharacterIterator</code> in the specified <code>Graphics</code> context.<DT><B>See Also:</B><DD><CODE>Font.getStringBounds(CharacterIterator, int, int, FontRenderContext)</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="getMaxCharBounds(java.awt.Graphics)"><!-- --></A><H3>
getMaxCharBounds</H3>
<PRE>
public <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/awt/geom/Rectangle2D.html">Rectangle2D</A> <B>getMaxCharBounds</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/awt/Graphics.html">Graphics</A> context)</PRE>
<DL>
<DD>Returns the bounds for the character with the maximum bounds in the specified <code>Graphics</code> context.
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/awt/FontMetrics.html#getMaxCharBounds(java.awt.Graphics)">getMaxCharBounds</A></CODE> in class <CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/awt/FontMetrics.html">FontMetrics</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>context</CODE> - the specified <code>Graphics</code> context<DT><B>Returns:</B><DD>a <code>Rectangle2D</code> that is the bounding box for the character with the maximum bounds.<DT><B>See Also:</B><DD><CODE>Font.getMaxCharBounds(FontRenderContext)</CODE></DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../com/lowagie/text/pdf/PdfGraphics2D.html"><B>PREV CLASS</B></A>
<A HREF="../../../../com/lowagie/text/pdf/PdfICCBased.html"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A>
<A HREF="PdfGraphics2D.PdfFontMetrics.html" TARGET="_top"><B>NO FRAMES</B></A>
<SCRIPT> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT><A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A></NOSCRIPT></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->
<HR>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -