📄 phrase.html
字号:
Constructs a <CODE>Phrase</CODE> with a certain <CODE>Chunk</CODE>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> </CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Phrase.html#Phrase(float)">Phrase</A></B>(float leading)</CODE><BR> Constructs a <CODE>Phrase</CODE> with a certain leading.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> </CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Phrase.html#Phrase(float, com.lowagie.text.Chunk)">Phrase</A></B>(float leading, <A HREF="../../../com/lowagie/text/Chunk.html" title="class in com.lowagie.text">Chunk</A> chunk)</CODE><BR> Constructs a <CODE>Phrase</CODE> with a certain <CODE>Chunk</CODE> and a certain leading.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> </CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Phrase.html#Phrase(float, java.lang.String)">Phrase</A></B>(float 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)</CODE><BR> Constructs a <CODE>Phrase</CODE> with a certain leading and a certain <CODE>String</CODE>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> </CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Phrase.html#Phrase(float, java.lang.String, com.lowagie.text.Font)">Phrase</A></B>(float 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)</CODE><BR> Constructs a <CODE>Phrase</CODE> with a certain leading, a certain <CODE>String</CODE> and a certain <CODE>Font</CODE>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> </CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Phrase.html#Phrase(com.lowagie.text.Phrase)">Phrase</A></B>(<A HREF="../../../com/lowagie/text/Phrase.html" title="class in com.lowagie.text">Phrase</A> phrase)</CODE><BR> Copy constructor for <CODE>Phrase</CODE>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> </CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Phrase.html#Phrase(java.lang.String)">Phrase</A></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)</CODE><BR> Constructs a <CODE>Phrase</CODE> with a certain <CODE>String</CODE>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> </CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Phrase.html#Phrase(java.lang.String, com.lowagie.text.Font)">Phrase</A></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, <A HREF="../../../com/lowagie/text/Font.html" title="class in com.lowagie.text">Font</A> font)</CODE><BR> Constructs a <CODE>Phrase</CODE> with a certain <CODE>String</CODE> and a certain <CODE>Font</CODE>.</TD></TR></TABLE> <!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><B>Method Summary</B></FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Phrase.html#add(int, java.lang.Object)">add</A></B>(int index, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> o)</CODE><BR> Adds a <CODE>Chunk</CODE>, an <CODE>Anchor</CODE> or another <CODE>Phrase</CODE> to this <CODE>Phrase</CODE>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Phrase.html#add(java.lang.Object)">add</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> o)</CODE><BR> Adds a <CODE>Chunk</CODE>, <CODE>Anchor</CODE> or another <CODE>Phrase</CODE> to this <CODE>Phrase</CODE>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Phrase.html#addAll(java.util.Collection)">addAll</A></B>(<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> collection)</CODE><BR> Adds a collection of <CODE>Chunk</CODE>s to this <CODE>Phrase</CODE>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Phrase.html#addChunk(com.lowagie.text.Chunk)">addChunk</A></B>(<A HREF="../../../com/lowagie/text/Chunk.html" title="class in com.lowagie.text">Chunk</A> chunk)</CODE><BR> Adds a Chunk.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Phrase.html#addSpecial(java.lang.Object)">addSpecial</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> object)</CODE><BR> Adds a <CODE>Object</CODE> to the <CODE>Paragraph</CODE>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><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></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Phrase.html#getChunks()">getChunks</A></B>()</CODE><BR> Gets all the chunks in this element.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <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></CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Phrase.html#getContent()">getContent</A></B>()</CODE><BR> Returns the content as a String object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../com/lowagie/text/Font.html" title="class in com.lowagie.text">Font</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Phrase.html#getFont()">getFont</A></B>()</CODE><BR> Gets the font of the first <CODE>Chunk</CODE> that appears in this <CODE>Phrase</CODE>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../com/lowagie/text/pdf/HyphenationEvent.html" title="interface in com.lowagie.text.pdf">HyphenationEvent</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Phrase.html#getHyphenation()">getHyphenation</A></B>()</CODE><BR> Getter for the hyphenation settings.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../com/lowagie/text/Phrase.html" title="class in com.lowagie.text">Phrase</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Phrase.html#getInstance(int, java.lang.String)">getInstance</A></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)</CODE><BR> Gets a special kind of Phrase that changes some characters into corresponding symbols.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../com/lowagie/text/Phrase.html" title="class in com.lowagie.text">Phrase</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Phrase.html#getInstance(int, java.lang.String, com.lowagie.text.Font)">getInstance</A></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)</CODE><BR> Gets a special kind of Phrase that changes some characters into corresponding symbols.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../com/lowagie/text/Phrase.html" title="class in com.lowagie.text">Phrase</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Phrase.html#getInstance(java.lang.String)">getInstance</A></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)</CODE><BR> Gets a special kind of Phrase that changes some characters into corresponding symbols.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> float</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Phrase.html#getLeading()">getLeading</A></B>()</CODE><BR> Gets the leading of this phrase.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Phrase.html#hasLeading()">hasLeading</A></B>()</CODE><BR> Checks you if the leading of this phrase is defined.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Phrase.html#isContent()">isContent</A></B>()</CODE><BR> Checks if this element is a content object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Phrase.html#isEmpty()">isEmpty</A></B>()</CODE><BR> Checks is this <CODE>Phrase</CODE> contains no or 1 empty <CODE>Chunk</CODE>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Phrase.html#isNestable()">isNestable</A></B>()</CODE><BR> Checks if this element is nestable.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Phrase.html#process(com.lowagie.text.ElementListener)">process</A></B>(<A HREF="../../../com/lowagie/text/ElementListener.html" title="interface in com.lowagie.text">ElementListener</A> listener)</CODE><BR> Processes the element by adding it (or the different parts) to an <CODE>ElementListener</CODE>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Phrase.html#setFont(com.lowagie.text.Font)">setFont</A></B>(<A HREF="../../../com/lowagie/text/Font.html" title="class in com.lowagie.text">Font</A> font)</CODE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -