📄 phrase.html
字号:
<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>object</CODE> - the object to add.</DL></DD></DL><HR><A NAME="setLeading(float)"><!-- --></A><H3>setLeading</H3><PRE>public void <B>setLeading</B>(float leading)</PRE><DL><DD>Sets the leading of this phrase.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>leading</CODE> - the new leading</DL></DD></DL><HR><A NAME="setFont(com.lowagie.text.Font)"><!-- --></A><H3>setFont</H3><PRE>public void <B>setFont</B>(<A HREF="../../../com/lowagie/text/Font.html" title="class in com.lowagie.text">Font</A> font)</PRE><DL><DD>Sets the main font of this phrase.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>font</CODE> - the new font</DL></DD></DL><HR><A NAME="getLeading()"><!-- --></A><H3>getLeading</H3><PRE>public float <B>getLeading</B>()</PRE><DL><DD>Gets the leading of this phrase.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the linespacing</DL></DD></DL><HR><A NAME="hasLeading()"><!-- --></A><H3>hasLeading</H3><PRE>public boolean <B>hasLeading</B>()</PRE><DL><DD>Checks you if the leading of this phrase is defined.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if the leading is defined</DL></DD></DL><HR><A NAME="getFont()"><!-- --></A><H3>getFont</H3><PRE>public <A HREF="../../../com/lowagie/text/Font.html" title="class in com.lowagie.text">Font</A> <B>getFont</B>()</PRE><DL><DD>Gets the font of the first <CODE>Chunk</CODE> that appears in this <CODE>Phrase</CODE>.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a <CODE>Font</CODE></DL></DD></DL><HR><A NAME="getContent()"><!-- --></A><H3>getContent</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>getContent</B>()</PRE><DL><DD>Returns the content as a String object. This method differs from toString because toString will return an ArrayList with the toString value of the Chunks in this Phrase.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="isEmpty()"><!-- --></A><H3>isEmpty</H3><PRE>public boolean <B>isEmpty</B>()</PRE><DL><DD>Checks is this <CODE>Phrase</CODE> contains no or 1 empty <CODE>Chunk</CODE>.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Collection.html?is-external=true#isEmpty()" title="class or interface in java.util">isEmpty</A></CODE> in interface <CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</A></CODE><DT><B>Specified by:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html?is-external=true#isEmpty()" title="class or interface in java.util">isEmpty</A></CODE> in interface <CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/ArrayList.html?is-external=true#isEmpty()" title="class or interface in java.util">isEmpty</A></CODE> in class <CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/ArrayList.html?is-external=true" title="class or interface in java.util">ArrayList</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD><CODE>false</CODE> if the <CODE>Phrase</CODE> contains more than one or more non-empty<CODE>Chunk</CODE>s.</DL></DD></DL><HR><A NAME="getHyphenation()"><!-- --></A><H3>getHyphenation</H3><PRE>public <A HREF="../../../com/lowagie/text/pdf/HyphenationEvent.html" title="interface in com.lowagie.text.pdf">HyphenationEvent</A> <B>getHyphenation</B>()</PRE><DL><DD>Getter for the hyphenation settings.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a HyphenationEvent<DT><B>Since:</B></DT> <DD>2.1.2</DD></DL></DD></DL><HR><A NAME="setHyphenation(com.lowagie.text.pdf.HyphenationEvent)"><!-- --></A><H3>setHyphenation</H3><PRE>public void <B>setHyphenation</B>(<A HREF="../../../com/lowagie/text/pdf/HyphenationEvent.html" title="interface in com.lowagie.text.pdf">HyphenationEvent</A> hyphenation)</PRE><DL><DD>Setter for the hyphenation.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>hyphenation</CODE> - a HyphenationEvent instance<DT><B>Since:</B></DT> <DD>2.1.2</DD></DL></DD></DL><HR><A NAME="getInstance(java.lang.String)"><!-- --></A><H3>getInstance</H3><PRE>public static final <A HREF="../../../com/lowagie/text/Phrase.html" title="class in com.lowagie.text">Phrase</A> <B>getInstance</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> string)</PRE><DL><DD>Gets a special kind of Phrase that changes some characters into corresponding symbols.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>string</CODE> - <DT><B>Returns:</B><DD>a newly constructed Phrase</DL></DD></DL><HR><A NAME="getInstance(int, java.lang.String)"><!-- --></A><H3>getInstance</H3><PRE>public static final <A HREF="../../../com/lowagie/text/Phrase.html" title="class in com.lowagie.text">Phrase</A> <B>getInstance</B>(int leading, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> string)</PRE><DL><DD>Gets a special kind of Phrase that changes some characters into corresponding symbols.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>leading</CODE> - <DD><CODE>string</CODE> - <DT><B>Returns:</B><DD>a newly constructed Phrase</DL></DD></DL><HR><A NAME="getInstance(int, java.lang.String, com.lowagie.text.Font)"><!-- --></A><H3>getInstance</H3><PRE>public static final <A HREF="../../../com/lowagie/text/Phrase.html" title="class in com.lowagie.text">Phrase</A> <B>getInstance</B>(int leading, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> string, <A HREF="../../../com/lowagie/text/Font.html" title="class in com.lowagie.text">Font</A> font)</PRE><DL><DD>Gets a special kind of Phrase that changes some characters into corresponding symbols.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>leading</CODE> - <DD><CODE>string</CODE> - <DD><CODE>font</CODE> - <DT><B>Returns:</B><DD>a newly constructed Phrase</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FO
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -