📄 chunk.html
字号:
<DD>Sets an anchor for this <CODE>Chunk</CODE>.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>url</CODE> - the <CODE>URL</CODE> to link to<DT><B>Returns:</B><DD>this <CODE>Chunk</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="setAnchor(java.lang.String)"><!-- --></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/lang/String.html">String</A> url)</PRE>
<DL>
<DD>Sets an anchor for this <CODE>Chunk</CODE>.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>url</CODE> - the url to link to<DT><B>Returns:</B><DD>this <CODE>Chunk</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="setLocalGoto(java.lang.String)"><!-- --></A><H3>
setLocalGoto</H3>
<PRE>
public <A HREF="../../../com/lowagie/text/Chunk.html">Chunk</A> <B>setLocalGoto</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> name)</PRE>
<DL>
<DD>Sets a local goto for this <CODE>Chunk</CODE>. <P> There must be a local destination matching the name.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the destination to go to<DT><B>Returns:</B><DD>this <CODE>Chunk</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="setBackground(java.awt.Color)"><!-- --></A><H3>
setBackground</H3>
<PRE>
public <A HREF="../../../com/lowagie/text/Chunk.html">Chunk</A> <B>setBackground</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/awt/Color.html">Color</A> color)</PRE>
<DL>
<DD>Sets the color of the background <CODE>Chunk</CODE>.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>color</CODE> - the color of the background<DT><B>Returns:</B><DD>this <CODE>Chunk</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="setAnnotation(com.lowagie.text.pdf.PdfAnnotation)"><!-- --></A><H3>
setAnnotation</H3>
<PRE>
public <A HREF="../../../com/lowagie/text/Chunk.html">Chunk</A> <B>setAnnotation</B>(<A HREF="../../../com/lowagie/text/pdf/PdfAnnotation.html">PdfAnnotation</A> annotation)</PRE>
<DL>
<DD>Sets a generic annotation to this <CODE>Chunk</CODE>.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>annotation</CODE> - the annotation<DT><B>Returns:</B><DD>this <CODE>Chunk</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="setHyphenation(com.lowagie.text.pdf.HyphenationEvent)"><!-- --></A><H3>
setHyphenation</H3>
<PRE>
public <A HREF="../../../com/lowagie/text/Chunk.html">Chunk</A> <B>setHyphenation</B>(<A HREF="../../../com/lowagie/text/pdf/HyphenationEvent.html">HyphenationEvent</A> hyphenation)</PRE>
<DL>
<DD>sets the hyphenation engine to this <CODE>Chunk</CODE>.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>hyphenation</CODE> - the hyphenation engine<DT><B>Returns:</B><DD>this <CODE>Chunk</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="setRemoteGoto(java.lang.String, java.lang.String)"><!-- --></A><H3>
setRemoteGoto</H3>
<PRE>
public <A HREF="../../../com/lowagie/text/Chunk.html">Chunk</A> <B>setRemoteGoto</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> filename, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> name)</PRE>
<DL>
<DD>Sets a goto for a remote destination for this <CODE>Chunk</CODE>.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>filename</CODE> - the file name of the destination document<DD><CODE>name</CODE> - the name of the destination to go to<DT><B>Returns:</B><DD>this <CODE>Chunk</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="setRemoteGoto(java.lang.String, int)"><!-- --></A><H3>
setRemoteGoto</H3>
<PRE>
public <A HREF="../../../com/lowagie/text/Chunk.html">Chunk</A> <B>setRemoteGoto</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> filename, int page)</PRE>
<DL>
<DD>Sets a goto for a remote destination for this <CODE>Chunk</CODE>.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>filename</CODE> - the file name of the destination document<DD><CODE>page</CODE> - the page of the destination to go to. First page is 1<DT><B>Returns:</B><DD>this <CODE>Chunk</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="setLocalDestination(java.lang.String)"><!-- --></A><H3>
setLocalDestination</H3>
<PRE>
public <A HREF="../../../com/lowagie/text/Chunk.html">Chunk</A> <B>setLocalDestination</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> name)</PRE>
<DL>
<DD>Sets a local destination for this <CODE>Chunk</CODE>.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - the name for this destination<DT><B>Returns:</B><DD>this <CODE>Chunk</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="setGenericTag(java.lang.String)"><!-- --></A><H3>
setGenericTag</H3>
<PRE>
public <A HREF="../../../com/lowagie/text/Chunk.html">Chunk</A> <B>setGenericTag</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> text)</PRE>
<DL>
<DD>Sets the generic tag <CODE>Chunk</CODE>. <P> The text for this tag can be retrieved with <CODE>PdfPageEvent</CODE>.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>text</CODE> - the text for the tag<DT><B>Returns:</B><DD>this <CODE>Chunk</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="setSplitCharacter(com.lowagie.text.SplitCharacter)"><!-- --></A><H3>
setSplitCharacter</H3>
<PRE>
public <A HREF="../../../com/lowagie/text/Chunk.html">Chunk</A> <B>setSplitCharacter</B>(<A HREF="../../../com/lowagie/text/SplitCharacter.html">SplitCharacter</A> splitCharacter)</PRE>
<DL>
<DD>Sets the split characters.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>splitCharacter</CODE> - the <CODE>SplitCharacter</CODE> interface<DT><B>Returns:</B><DD>this <CODE>Chunk</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="setNewPage()"><!-- --></A><H3>
setNewPage</H3>
<PRE>
public <A HREF="../../../com/lowagie/text/Chunk.html">Chunk</A> <B>setNewPage</B>()</PRE>
<DL>
<DD>Sets a new page tag..
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>this <CODE>Chunk</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="setAttribute(java.lang.String, java.lang.Object)"><!-- --></A><H3>
setAttribute</H3>
<PRE>
private <A HREF="../../../com/lowagie/text/Chunk.html">Chunk</A> <B>setAttribute</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> name, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html">Object</A> obj)</PRE>
<DL>
<DD>Sets an arbitrary attribute.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - the key for the attribute<DD><CODE>obj</CODE> - the value of the attribute<DT><B>Returns:</B><DD>this <CODE>Chunk</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="getAttributes()"><!-- --></A><H3>
getAttributes</H3>
<PRE>
public <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/HashMap.html">HashMap</A> <B>getAttributes</B>()</PRE>
<DL>
<DD>Gets the attributes for this <CODE>Chunk</CODE>. <P> It may be null.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the attributes for this <CODE>Chunk</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="hasAttributes()"><!-- --></A><H3>
hasAttributes</H3>
<PRE>
public boolean <B>hasAttributes</B>()</PRE>
<DL>
<DD>Checks the attributes of this <CODE>Chunk</CODE>.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>false if there aren't any.</DL>
</DD>
</DL>
<HR>
<A NAME="getImage()"><!-- --></A><H3>
getImage</H3>
<PRE>
public <A HREF="../../../com/lowagie/text/Image.html">Image</A> <B>getImage</B>()</PRE>
<DL>
<DD>Returns the image.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="isTag(java.lang.String)"><!-- --></A><H3>
isTag</H3>
<PRE>
public static boolean <B>isTag</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> tag)</PRE>
<DL>
<DD>Checks if a given tag corresponds with this object.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>tag</CODE> - the given tag<DT><B>Returns:</B><DD>true if the tag corresponds</DL>
</DD>
</DL>
<HR>
<A NAME="setMarkupAttribute(java.lang.String, java.lang.String)"><!-- --></A><H3>
setMarkupAttribute</H3>
<PRE>
public void <B>setMarkupAttribute</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> name, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> value)</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><A HREF="../../../com/lowagie/text/MarkupAttributes.html">MarkupAttributes</A></CODE></B></DD>
<DD>Sets the specified attribute.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -