📄 chunk.html
字号:
</DL>
</DL>
<HR>
<A NAME="font"><!-- --></A><H3>
font</H3>
<PRE>
protected <A HREF="../../../com/lowagie/text/Font.html">Font</A> <B>font</B></PRE>
<DL>
<DD>This is the <CODE>Font</CODE> of this chunk of text.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="attributes"><!-- --></A><H3>
attributes</H3>
<PRE>
protected <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/HashMap.html">HashMap</A> <B>attributes</B></PRE>
<DL>
<DD>Contains some of the attributes for this Chunk.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="markupAttributes"><!-- --></A><H3>
markupAttributes</H3>
<PRE>
protected <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/Properties.html">Properties</A> <B>markupAttributes</B></PRE>
<DL>
<DD>Contains extra markupAttributes
<P>
<DL>
</DL>
</DL>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="Chunk()"><!-- --></A><H3>
Chunk</H3>
<PRE>
protected <B>Chunk</B>()</PRE>
<DL>
<DD>Empty constructor.
<P>
</DL>
<HR>
<A NAME="Chunk(java.lang.String, com.lowagie.text.Font)"><!-- --></A><H3>
Chunk</H3>
<PRE>
public <B>Chunk</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> content, <A HREF="../../../com/lowagie/text/Font.html">Font</A> font)</PRE>
<DL>
<DD>Constructs a chunk of text with a certain content and a certain <CODE>Font</CODE>.
<P>
<DT><B>Parameters:</B><DD><CODE>content</CODE> - the content<DD><CODE>font</CODE> - the font</DL>
<HR>
<A NAME="Chunk(java.lang.String)"><!-- --></A><H3>
Chunk</H3>
<PRE>
public <B>Chunk</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> content)</PRE>
<DL>
<DD>Constructs a chunk of text with a certain content, without specifying a <CODE>Font</CODE>.
<P>
<DT><B>Parameters:</B><DD><CODE>content</CODE> - the content</DL>
<HR>
<A NAME="Chunk(com.lowagie.text.Image, float, float)"><!-- --></A><H3>
Chunk</H3>
<PRE>
public <B>Chunk</B>(<A HREF="../../../com/lowagie/text/Image.html">Image</A> image, float offsetX, float offsetY)</PRE>
<DL>
<DD>Constructs a chunk containing an <CODE>Image</CODE>.
<P>
<DT><B>Parameters:</B><DD><CODE>image</CODE> - the image<DD><CODE>offsetX</CODE> - the image offset in the x direction<DD><CODE>offsetY</CODE> - the image offset in the y direction</DL>
<HR>
<A NAME="Chunk(com.lowagie.text.Image, float, float, boolean)"><!-- --></A><H3>
Chunk</H3>
<PRE>
public <B>Chunk</B>(<A HREF="../../../com/lowagie/text/Image.html">Image</A> image, float offsetX, float offsetY, boolean changeLeading)</PRE>
<DL>
<DD>Constructs a chunk containing an <CODE>Image</CODE>.
<P>
<DT><B>Parameters:</B><DD><CODE>image</CODE> - the image<DD><CODE>offsetX</CODE> - the image offset in the x direction<DD><CODE>offsetY</CODE> - the image offset in the y direction<DD><CODE>changeLeading</CODE> - true if the leading has to be adapted to the image</DL>
<HR>
<A NAME="Chunk(java.util.Properties)"><!-- --></A><H3>
Chunk</H3>
<PRE>
public <B>Chunk</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/Properties.html">Properties</A> attributes)</PRE>
<DL>
<DD>Returns a <CODE>Chunk</CODE> that has been constructed taking in account the value of some <VAR>attributes</VAR>.
<P>
<DT><B>Parameters:</B><DD><CODE>attributes</CODE> - Some attributes</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="process(com.lowagie.text.ElementListener)"><!-- --></A><H3>
process</H3>
<PRE>
public boolean <B>process</B>(<A HREF="../../../com/lowagie/text/ElementListener.html">ElementListener</A> listener)</PRE>
<DL>
<DD>Processes the element by adding it (or the different parts) to an <CODE>ElementListener</CODE>.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../com/lowagie/text/Element.html#process(com.lowagie.text.ElementListener)">process</A></CODE> in interface <CODE><A HREF="../../../com/lowagie/text/Element.html">Element</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>listener</CODE> - an <CODE>ElementListener</CODE><DT><B>Returns:</B><DD><CODE>true</CODE> if the element was processed successfully</DL>
</DD>
</DL>
<HR>
<A NAME="type()"><!-- --></A><H3>
type</H3>
<PRE>
public int <B>type</B>()</PRE>
<DL>
<DD>Gets the type of the text element.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../com/lowagie/text/Element.html#type()">type</A></CODE> in interface <CODE><A HREF="../../../com/lowagie/text/Element.html">Element</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>a type</DL>
</DD>
</DL>
<HR>
<A NAME="getChunks()"><!-- --></A><H3>
getChunks</H3>
<PRE>
public <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/ArrayList.html">ArrayList</A> <B>getChunks</B>()</PRE>
<DL>
<DD>Gets all the chunks in this element.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../com/lowagie/text/Element.html#getChunks()">getChunks</A></CODE> in interface <CODE><A HREF="../../../com/lowagie/text/Element.html">Element</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>an <CODE>ArrayList</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="append(java.lang.String)"><!-- --></A><H3>
append</H3>
<PRE>
public <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/StringBuffer.html">StringBuffer</A> <B>append</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> string)</PRE>
<DL>
<DD>appends some text to this <CODE>Chunk</CODE>.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>string</CODE> - <CODE>String</CODE><DT><B>Returns:</B><DD>a <CODE>StringBuffer</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="font()"><!-- --></A><H3>
font</H3>
<PRE>
public <A HREF="../../../com/lowagie/text/Font.html">Font</A> <B>font</B>()</PRE>
<DL>
<DD>Gets the font of this <CODE>Chunk</CODE>.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>a <CODE>Font</CODE></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">Font</A> font)</PRE>
<DL>
<DD>Sets the font of this <CODE>Chunk</CODE>.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>font</CODE> - a <CODE>Font</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="content()"><!-- --></A><H3>
content</H3>
<PRE>
public <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> <B>content</B>()</PRE>
<DL>
<DD>Returns the content of this <CODE>Chunk</CODE>.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>a <CODE>String</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="isEmpty()"><!-- --></A><H3>
isEmpty</H3>
<PRE>
public boolean <B>isEmpty</B>()</PRE>
<DL>
<DD>Checks is this <CODE>Chunk</CODE> is empty.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD><CODE>false</CODE> if the Chunk contains other characters than space.</DL>
</DD>
</DL>
<HR>
<A NAME="setTextRise(float)"><!-- --></A><H3>
setTextRise</H3>
<PRE>
public <A HREF="../../../com/lowagie/text/Chunk.html">Chunk</A> <B>setTextRise</B>(float rise)</PRE>
<DL>
<DD>Sets the text displacement relative to the baseline. Positive values rise the text, negative values lower the text. <P> It can be used to implement sub/superscript.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>rise</CODE> - the displacement in points<DT><B>Returns:</B><DD>this <CODE>Chunk</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="setAction(com.lowagie.text.pdf.PdfAction)"><!-- --></A><H3>
setAction</H3>
<PRE>
public <A HREF="../../../com/lowagie/text/Chunk.html">Chunk</A> <B>setAction</B>(<A HREF="../../../com/lowagie/text/pdf/PdfAction.html">PdfAction</A> action)</PRE>
<DL>
<DD>Sets an action for this <CODE>Chunk</CODE>.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>action</CODE> - the action<DT><B>Returns:</B><DD>this <CODE>Chunk</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="setAnchor(java.net.URL)"><!-- --></A><H3>
setAnchor</H3>
<PRE>
public <A HREF="../../../com/lowagie/text/Chunk.html">Chunk</A> <B>setAnchor</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/net/URL.html">URL</A> url)</PRE>
<DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -