📄 barcode.html
字号:
<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/Barcode.html#setX(float)">setX</A></B>(float x)</CODE><BR> Sets the minimum bar width.</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> <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="EAN13"><!-- --></A><H3>EAN13</H3><PRE>public static final int <B>EAN13</B></PRE><DL><DD>A type of barcode<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.lowagie.text.pdf.Barcode.EAN13">Constant Field Values</A></DL></DL><HR><A NAME="EAN8"><!-- --></A><H3>EAN8</H3><PRE>public static final int <B>EAN8</B></PRE><DL><DD>A type of barcode<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.lowagie.text.pdf.Barcode.EAN8">Constant Field Values</A></DL></DL><HR><A NAME="UPCA"><!-- --></A><H3>UPCA</H3><PRE>public static final int <B>UPCA</B></PRE><DL><DD>A type of barcode<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.lowagie.text.pdf.Barcode.UPCA">Constant Field Values</A></DL></DL><HR><A NAME="UPCE"><!-- --></A><H3>UPCE</H3><PRE>public static final int <B>UPCE</B></PRE><DL><DD>A type of barcode<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.lowagie.text.pdf.Barcode.UPCE">Constant Field Values</A></DL></DL><HR><A NAME="SUPP2"><!-- --></A><H3>SUPP2</H3><PRE>public static final int <B>SUPP2</B></PRE><DL><DD>A type of barcode<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.lowagie.text.pdf.Barcode.SUPP2">Constant Field Values</A></DL></DL><HR><A NAME="SUPP5"><!-- --></A><H3>SUPP5</H3><PRE>public static final int <B>SUPP5</B></PRE><DL><DD>A type of barcode<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.lowagie.text.pdf.Barcode.SUPP5">Constant Field Values</A></DL></DL><HR><A NAME="POSTNET"><!-- --></A><H3>POSTNET</H3><PRE>public static final int <B>POSTNET</B></PRE><DL><DD>A type of barcode<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.lowagie.text.pdf.Barcode.POSTNET">Constant Field Values</A></DL></DL><HR><A NAME="PLANET"><!-- --></A><H3>PLANET</H3><PRE>public static final int <B>PLANET</B></PRE><DL><DD>A type of barcode<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.lowagie.text.pdf.Barcode.PLANET">Constant Field Values</A></DL></DL><HR><A NAME="CODE128"><!-- --></A><H3>CODE128</H3><PRE>public static final int <B>CODE128</B></PRE><DL><DD>A type of barcode<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.lowagie.text.pdf.Barcode.CODE128">Constant Field Values</A></DL></DL><HR><A NAME="CODE128_UCC"><!-- --></A><H3>CODE128_UCC</H3><PRE>public static final int <B>CODE128_UCC</B></PRE><DL><DD>A type of barcode<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.lowagie.text.pdf.Barcode.CODE128_UCC">Constant Field Values</A></DL></DL><HR><A NAME="CODE128_RAW"><!-- --></A><H3>CODE128_RAW</H3><PRE>public static final int <B>CODE128_RAW</B></PRE><DL><DD>A type of barcode<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.lowagie.text.pdf.Barcode.CODE128_RAW">Constant Field Values</A></DL></DL><HR><A NAME="CODABAR"><!-- --></A><H3>CODABAR</H3><PRE>public static final int <B>CODABAR</B></PRE><DL><DD>A type of barcode<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.lowagie.text.pdf.Barcode.CODABAR">Constant Field Values</A></DL></DL><HR><A NAME="x"><!-- --></A><H3>x</H3><PRE>protected float <B>x</B></PRE><DL><DD>The minimum bar width.<P><DL></DL></DL><HR><A NAME="n"><!-- --></A><H3>n</H3><PRE>protected float <B>n</B></PRE><DL><DD>The bar multiplier for wide bars or the distance between bars for Postnet and Planet.<P><DL></DL></DL><HR><A NAME="font"><!-- --></A><H3>font</H3><PRE>protected <A HREF="../../../../com/lowagie/text/pdf/BaseFont.html" title="class in com.lowagie.text.pdf">BaseFont</A> <B>font</B></PRE><DL><DD>The text font. <CODE>null</CODE> if no text.<P><DL></DL></DL><HR><A NAME="size"><!-- --></A><H3>size</H3><PRE>protected float <B>size</B></PRE><DL><DD>The size of the text or the height of the shorter bar in Postnet.<P><DL></DL></DL><HR><A NAME="baseline"><!-- --></A><H3>baseline</H3><PRE>protected float <B>baseline</B></PRE><DL><DD>If positive, the text distance under the bars. If zero or negative, the text distance above the bars.<P><DL></DL></DL><HR><A NAME="barHeight"><!-- --></A><H3>barHeight</H3><PRE>protected float <B>barHeight</B></PRE><DL><DD>The height of the bars.<P><DL></DL></DL><HR><A NAME="textAlignment"><!-- --></A><H3>textAlignment</H3><PRE>protected int <B>textAlignment</B></PRE><DL><DD>The text alignment. Can be <CODE>Element.ALIGN_LEFT</CODE>, <CODE>Element.ALIGN_CENTER</CODE> or <CODE>Element.ALIGN_RIGHT</CODE>.<P><DL></DL></DL><HR><A NAME="generateChecksum"><!-- --></A><H3>generateChecksum</H3><PRE>protected boolean <B>generateChecksum</B></PRE><DL><DD>The optional checksum generation.<P><DL></DL></DL><HR><A NAME="checksumText"><!-- --></A><H3>checksumText</H3><PRE>protected boolean <B>checksumText</B></PRE><DL><DD>Shows the generated checksum in the the text.<P><DL></DL></DL><HR><A NAME="startStopText"><!-- --></A><H3>startStopText</H3><PRE>protected boolean <B>startStopText</B></PRE><DL><DD>Show the start and stop character '*' in the text for the barcode 39 or 'ABCD' for codabar.<P><DL></DL></DL><HR><A NAME="extended"><!-- --></A><H3>extended</H3><PRE>protected boolean <B>extended</B></PRE><DL><DD>Generates extended barcode 39.<P><DL></DL></DL><HR><A NAME="code"><!-- --></A><H3>code</H3><PRE>protected <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>code</B></PRE><DL><DD>The code to generate.<P><DL></DL></DL><HR><A NAME="guardBars"><!-- --></A><H3>guardBars</H3><PRE>protected boolean <B>guardBars</B></PRE><DL><DD>Show the guard bars for barcode EAN.<P><DL></DL></DL><HR><A NAME="codeType"><!-- --></A><H3>codeType</H3>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -