📄 barcodeean.html
字号:
<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>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BarcodeEAN.html#calculateEANParity(java.lang.String)">calculateEANParity</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> code)</CODE><BR> Calculates the EAN parity character.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <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/pdf/BarcodeEAN.html#convertUPCAtoUPCE(java.lang.String)">convertUPCAtoUPCE</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> text)</CODE><BR> Converts an UPCA code into an UPCE 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/awt/Image.html?is-external=true" title="class or interface in java.awt">Image</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BarcodeEAN.html#createAwtImage(java.awt.Color, java.awt.Color)">createAwtImage</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> foreground, <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> background)</CODE><BR> Creates a <CODE>java.awt.Image</CODE>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../com/lowagie/text/Rectangle.html" title="class in com.lowagie.text">Rectangle</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BarcodeEAN.html#getBarcodeSize()">getBarcodeSize</A></B>()</CODE><BR> Gets the maximum area that the barcode and the text, if any, will occupy.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static byte[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BarcodeEAN.html#getBarsEAN13(java.lang.String)">getBarsEAN13</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> _code)</CODE><BR> Creates the bars for the barcode EAN13 and UPCA.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static byte[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BarcodeEAN.html#getBarsEAN8(java.lang.String)">getBarsEAN8</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> _code)</CODE><BR> Creates the bars for the barcode EAN8.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static byte[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BarcodeEAN.html#getBarsSupplemental2(java.lang.String)">getBarsSupplemental2</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> _code)</CODE><BR> Creates the bars for the barcode supplemental 2.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static byte[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BarcodeEAN.html#getBarsSupplemental5(java.lang.String)">getBarsSupplemental5</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> _code)</CODE><BR> Creates the bars for the barcode supplemental 5.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static byte[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BarcodeEAN.html#getBarsUPCE(java.lang.String)">getBarsUPCE</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> _code)</CODE><BR> Creates the bars for the barcode UPCE.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../com/lowagie/text/Rectangle.html" title="class in com.lowagie.text">Rectangle</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BarcodeEAN.html#placeBarcode(com.lowagie.text.pdf.PdfContentByte, java.awt.Color, java.awt.Color)">placeBarcode</A></B>(<A HREF="../../../../com/lowagie/text/pdf/PdfContentByte.html" title="class in com.lowagie.text.pdf">PdfContentByte</A> cb, <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> barColor, <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> textColor)</CODE><BR> Places the barcode in a <CODE>PdfContentByte</CODE>.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_com.lowagie.text.pdf.Barcode"><!-- --></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.<A HREF="../../../../com/lowagie/text/pdf/Barcode.html" title="class in com.lowagie.text.pdf">Barcode</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../com/lowagie/text/pdf/Barcode.html#createImageWithBarcode(com.lowagie.text.pdf.PdfContentByte, java.awt.Color, java.awt.Color)">createImageWithBarcode</A>, <A HREF="../../../../com/lowagie/text/pdf/Barcode.html#createTemplateWithBarcode(com.lowagie.text.pdf.PdfContentByte, java.awt.Color, java.awt.Color)">createTemplateWithBarcode</A>, <A HREF="../../../../com/lowagie/text/pdf/Barcode.html#getAltText()">getAltText</A>, <A HREF="../../../../com/lowagie/text/pdf/Barcode.html#getBarHeight()">getBarHeight</A>, <A HREF="../../../../com/lowagie/text/pdf/Barcode.html#getBaseline()">getBaseline</A>, <A HREF="../../../../com/lowagie/text/pdf/Barcode.html#getCode()">getCode</A>, <A HREF="../../../../com/lowagie/text/pdf/Barcode.html#getCodeType()">getCodeType</A>, <A HREF="../../../../com/lowagie/text/pdf/Barcode.html#getFont()">getFont</A>, <A HREF="../../../../com/lowagie/text/pdf/Barcode.html#getInkSpreading()">getInkSpreading</A>, <A HREF="../../../../com/lowagie/text/pdf/Barcode.html#getN()">getN</A>, <A HREF="../../../../com/lowagie/text/pdf/Barcode.html#getSize()">getSize</A>, <A HREF="../../../../com/lowagie/text/pdf/Barcode.html#getTextAlignment()">getTextAlignment</A>, <A HREF="../../../../com/lowagie/text/pdf/Barcode.html#getX()">getX</A>, <A HREF="../../../../com/lowagie/text/pdf/Barcode.html#isChecksumText()">isChecksumText</A>, <A HREF="../../../../com/lowagie/text/pdf/Barcode.html#isExtended()">isExtended</A>, <A HREF="../../../../com/lowagie/text/pdf/Barcode.html#isGenerateChecksum()">isGenerateChecksum</A>, <A HREF="../../../../com/lowagie/text/pdf/Barcode.html#isGuardBars()">isGuardBars</A>, <A HREF="../../../../com/lowagie/text/pdf/Barcode.html#isStartStopText()">isStartStopText</A>, <A HREF="../../../../com/lowagie/text/pdf/Barcode.html#setAltText(java.lang.String)">setAltText</A>, <A HREF="../../../../com/lowagie/text/pdf/Barcode.html#setBarHeight(float)">setBarHeight</A>, <A HREF="../../../../com/lowagie/text/pdf/Barcode.html#setBaseline(float)">setBaseline</A>, <A HREF="../../../../com/lowagie/text/pdf/Barcode.html#setChecksumText(boolean)">setChecksumText</A>, <A HREF="../../../../com/lowagie/text/pdf/Barcode.html#setCode(java.lang.String)">setCode</A>, <A HREF="../../../../com/lowagie/text/pdf/Barcode.html#setCodeType(int)">setCodeType</A>, <A HREF="../../../../com/lowagie/text/pdf/Barcode.html#setExtended(boolean)">setExtended</A>, <A HREF="../../../../com/lowagie/text/pdf/Barcode.html#setFont(com.lowagie.text.pdf.BaseFont)">setFont</A>, <A HREF="../../../../com/lowagie/text/pdf/Barcode.html#setGenerateChecksum(boolean)">setGenerateChecksum</A>, <A HREF="../../../../com/lowagie/text/pdf/Barcode.html#setGuardBars(boolean)">setGuardBars</A>, <A HREF="../../../../com/lowagie/text/pdf/Barcode.html#setInkSpreading(float)">setInkSpreading</A>, <A HREF="../../../../com/lowagie/text/pdf/Barcode.html#setN(float)">setN</A>, <A HREF="../../../../com/lowagie/text/pdf/Barcode.html#setSize(float)">setSize</A>, <A HREF="../../../../com/lowagie/text/pdf/Barcode.html#setStartStopText(boolean)">setStartStopText</A>, <A HREF="../../../../com/lowagie/text/pdf/Barcode.html#setTextAlignment(int)">setTextAlignment</A>, <A HREF="../../../../com/lowagie/text/pdf/Barcode.html#setX(float)">setX</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> <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="GUARD_EMPTY"><!-- --></A><H3>GUARD_EMPTY</H3><PRE>private static final int[] <B>GUARD_EMPTY</B></PRE><DL><DD>The bar positions that are guard bars.<P><DL></DL></DL><HR><A NAME="GUARD_UPCA"><!-- --></A><H3>GUARD_UPCA</H3><PRE>private static final int[] <B>GUARD_UPCA</B></PRE><DL><DD>The bar positions that are guard bars.<P><DL></DL></DL><HR><A NAME="GUARD_EAN13"><!-- --></A><H3>GUARD_EAN13</H3><PRE>private static final int[] <B>GUARD_EAN13</B></PRE><DL><DD>The bar positions that are guard bars.<P><DL></DL></DL><HR><A NAME="GUARD_EAN8"><!-- --></A><H3>GUARD_EAN8</H3><PRE>private static final int[] <B>GUARD_EAN8</B></PRE><DL><DD>The bar positions that are guard bars.<P><DL></DL></DL><HR><A NAME="GUARD_UPCE"><!-- --></A><H3>GUARD_UPCE</H3><PRE>private static final int[] <B>GUARD_UPCE</B></PRE><DL><DD>The bar positions that are guard bars.<P><DL></DL></DL><HR><A NAME="TEXTPOS_EAN13"><!-- --></A><H3>TEXTPOS_EAN13</H3><PRE>private static final float[] <B>TEXTPOS_EAN13</B></PRE><DL><DD>The x coordinates to place the text.<P><DL></DL></DL><HR><A NAME="TEXTPOS_EAN8"><!-- --></A><H3>TEXTPOS_EAN8</H3><PRE>private static final float[] <B>TEXTPOS_EAN8</B></PRE><DL><DD>The x coordinates to place the text.<P><DL></DL></DL><HR><A NAME="BARS"><!-- --></A><H3>BARS</H3><PRE>private static final byte[][] <B>BARS</B></PRE><DL><DD>The basic bar widths.<P><DL></DL></DL><HR><A NAME="TOTALBARS_EAN13"><!-- --></A><H3>TOTALBARS_EAN13</H3><PRE>private static final int <B>TOTALBARS_EAN13</B></PRE><DL><DD>The total number of bars for EAN13.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.lowagie.text.pdf.BarcodeEAN.TOTALBARS_EAN13">Constant Field Values</A></DL></DL><HR><A NAME="TOTALBARS_EAN8"><!-- --></A><H3>TOTALBARS_EAN8</H3><PRE>private static final int <B>TOTALBARS_EAN8</B></PRE><DL><DD>The total number of bars for EAN8.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.lowagie.text.pdf.BarcodeEAN.TOTALBARS_EAN8">Constant Field Values</A></DL></DL><HR><A NAME="TOTALBARS_UPCE"><!-- --></A><H3>TOTALBARS_UPCE</H3><PRE>private static final int <B>TOTALBARS_UPCE</B></PRE><DL><DD>The total number of bars for UPCE.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.lowagie.text.pdf.BarcodeEAN.TOTALBARS_UPCE">Constant Field Values</A></DL></DL><HR><A NAME="TOTALBARS_SUPP2"><!-- --></A><H3>TOTALBARS_SUPP2</H3><PRE>private static final int <B>TOTALBARS_SUPP2</B></PRE><DL><DD>The total number of bars for supplemental 2.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.lowagie.text.pdf.BarcodeEAN.TOTALBARS_SUPP2">Constant Field Values</A></DL></DL><HR><A NAME="TOTALBARS_SUPP5"><!-- --></A><H3>TOTALBARS_SUPP5</H3><PRE>private static final int <B>TOTALBARS_SUPP5</B></PRE><DL><DD>The total number of bars for supplemental 5.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.lowagie.text.pdf.BarcodeEAN.TOTALBARS_SUPP5">Constant Field Values</A></DL></DL><HR><A NAME="ODD"><!-- --></A><H3>ODD</H3><PRE>private static final int <B>ODD</B></PRE><DL><DD>Marker for odd parity.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.lowagie.text.pdf.BarcodeEAN.ODD">Constant Field Values</A></DL></DL><HR><A NAME="EVEN"><!-- --></A><H3>EVEN</H3><PRE>private static final int <B>EVEN</B></PRE><DL><DD>Marker for even parity.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.lowagie.text.pdf.BarcodeEAN.EVEN">Constant Field Values</A></DL></DL><HR><A NAME="PARITY13"><!-- --></A><H3>PARITY13</H3><PRE>private static final byte[][] <B>PARITY13</B></PRE><DL><DD>Sequence of parities to be used with EAN13.<P><DL></DL></DL><HR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -