📄 lineseparator.html
字号:
<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/pdf/draw/LineSeparator.html#draw(com.lowagie.text.pdf.PdfContentByte, float, float, float, float, float)">draw</A></B>(<A HREF="../../../../../com/lowagie/text/pdf/PdfContentByte.html" title="class in com.lowagie.text.pdf">PdfContentByte</A> canvas, float llx, float lly, float urx, float ury, float y)</CODE><BR> Implement this method if you want to draw something at the current Y position (for instance a line).</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/pdf/draw/LineSeparator.html#drawLine(com.lowagie.text.pdf.PdfContentByte, float, float, float)">drawLine</A></B>(<A HREF="../../../../../com/lowagie/text/pdf/PdfContentByte.html" title="class in com.lowagie.text.pdf">PdfContentByte</A> canvas, float leftX, float rightX, float y)</CODE><BR> Draws a horizontal line.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/lowagie/text/pdf/draw/LineSeparator.html#getAlignment()">getAlignment</A></B>()</CODE><BR> Getter for the alignment of the line.</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/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/lowagie/text/pdf/draw/LineSeparator.html#getLineColor()">getLineColor</A></B>()</CODE><BR> Getter for the color of the line that will be drawn.</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/pdf/draw/LineSeparator.html#getLineWidth()">getLineWidth</A></B>()</CODE><BR> Getter for the line width.</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/pdf/draw/LineSeparator.html#getPercentage()">getPercentage</A></B>()</CODE><BR> Setter for the width as a percentage of the available width.</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/pdf/draw/LineSeparator.html#setAlignment(int)">setAlignment</A></B>(int align)</CODE><BR> Setter for the alignment of the line.</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/pdf/draw/LineSeparator.html#setLineColor(java.awt.Color)">setLineColor</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</A> color)</CODE><BR> Setter for the color of the line that will be drawn.</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/pdf/draw/LineSeparator.html#setLineWidth(float)">setLineWidth</A></B>(float lineWidth)</CODE><BR> Setter for the line width.</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/pdf/draw/LineSeparator.html#setPercentage(float)">setPercentage</A></B>(float percentage)</CODE><BR> Setter for the width as a percentage of the available width.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_com.lowagie.text.pdf.draw.VerticalPositionMark"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class com.lowagie.text.pdf.draw.<A HREF="../../../../../com/lowagie/text/pdf/draw/VerticalPositionMark.html" title="class in com.lowagie.text.pdf.draw">VerticalPositionMark</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../../com/lowagie/text/pdf/draw/VerticalPositionMark.html#getChunks()">getChunks</A>, <A HREF="../../../../../com/lowagie/text/pdf/draw/VerticalPositionMark.html#getDrawInterface()">getDrawInterface</A>, <A HREF="../../../../../com/lowagie/text/pdf/draw/VerticalPositionMark.html#getOffset()">getOffset</A>, <A HREF="../../../../../com/lowagie/text/pdf/draw/VerticalPositionMark.html#isContent()">isContent</A>, <A HREF="../../../../../com/lowagie/text/pdf/draw/VerticalPositionMark.html#isNestable()">isNestable</A>, <A HREF="../../../../../com/lowagie/text/pdf/draw/VerticalPositionMark.html#process(com.lowagie.text.ElementListener)">process</A>, <A HREF="../../../../../com/lowagie/text/pdf/draw/VerticalPositionMark.html#setDrawInterface(com.lowagie.text.pdf.draw.DrawInterface)">setDrawInterface</A>, <A HREF="../../../../../com/lowagie/text/pdf/draw/VerticalPositionMark.html#setOffset(float)">setOffset</A>, <A HREF="../../../../../com/lowagie/text/pdf/draw/VerticalPositionMark.html#type()">type</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class java.lang.<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></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_com.lowagie.text.Element"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from interface com.lowagie.text.<A HREF="../../../../../com/lowagie/text/Element.html" title="interface in com.lowagie.text">Element</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../../com/lowagie/text/Element.html#toString()">toString</A></CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Field Detail</B></FONT></TH></TR></TABLE><A NAME="lineWidth"><!-- --></A><H3>lineWidth</H3><PRE>protected float <B>lineWidth</B></PRE><DL><DD>The thickness of the line.<P><DL></DL></DL><HR><A NAME="percentage"><!-- --></A><H3>percentage</H3><PRE>protected float <B>percentage</B></PRE><DL><DD>The width of the line as a percentage of the available page width.<P><DL></DL></DL><HR><A NAME="lineColor"><!-- --></A><H3>lineColor</H3><PRE>protected <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</A> <B>lineColor</B></PRE><DL><DD>The color of the line.<P><DL></DL></DL><HR><A NAME="alignment"><!-- --></A><H3>alignment</H3><PRE>protected int <B>alignment</B></PRE><DL><DD>The alignment of the line.<P><DL></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="LineSeparator(float, float, java.awt.Color, int, float)"><!-- --></A><H3>LineSeparator</H3><PRE>public <B>LineSeparator</B>(float lineWidth, float percentage, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</A> lineColor, int align, float offset)</PRE><DL><DD>Creates a new instance of the LineSeparator class.<P><DL><DT><B>Parameters:</B><DD><CODE>lineWidth</CODE> - the thickness of the line<DD><CODE>percentage</CODE> - the width of the line as a percentage of the available page width<DD><CODE>lineColor</CODE> - the color of the line<DD><CODE>align</CODE> - the alignment<DD><CODE>offset</CODE> - the offset of the line relative to the current baseline (negative = under the baseline)</DL></DL><HR><A NAME="LineSeparator()"><!-- --></A><H3>LineSeparator</H3><PRE>public <B>LineSeparator</B>()</PRE><DL><DD>Creates a new instance of the LineSeparator class with default values: lineWidth 1 user unit, width 100%, centered with offset 0.<P></DL><!-- ============ METHOD DETAIL ========== -->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -