📄 barcodeean.html
字号:
<A NAME="PARITY2"><!-- --></A><H3>PARITY2</H3><PRE>private static final byte[][] <B>PARITY2</B></PRE><DL><DD>Sequence of parities to be used with supplemental 2.<P><DL></DL></DL><HR><A NAME="PARITY5"><!-- --></A><H3>PARITY5</H3><PRE>private static final byte[][] <B>PARITY5</B></PRE><DL><DD>Sequence of parities to be used with supplemental 2.<P><DL></DL></DL><HR><A NAME="PARITYE"><!-- --></A><H3>PARITYE</H3><PRE>private static final byte[][] <B>PARITYE</B></PRE><DL><DD>Sequence of parities to be used with UPCE.<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="BarcodeEAN()"><!-- --></A><H3>BarcodeEAN</H3><PRE>public <B>BarcodeEAN</B>()</PRE><DL><DD>Creates new BarcodeEAN<P></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_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>Method Detail</B></FONT></TH></TR></TABLE><A NAME="calculateEANParity(java.lang.String)"><!-- --></A><H3>calculateEANParity</H3><PRE>public static int <B>calculateEANParity</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)</PRE><DL><DD>Calculates the EAN parity character.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>code</CODE> - the code<DT><B>Returns:</B><DD>the parity character</DL></DD></DL><HR><A NAME="convertUPCAtoUPCE(java.lang.String)"><!-- --></A><H3>convertUPCAtoUPCE</H3><PRE>public 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> <B>convertUPCAtoUPCE</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)</PRE><DL><DD>Converts an UPCA code into an UPCE code. If the code can not be converted a <CODE>null</CODE> is returned.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>text</CODE> - the code to convert. It must have 12 numeric characters<DT><B>Returns:</B><DD>the 8 converted digits or <CODE>null</CODE> if the code could not be converted</DL></DD></DL><HR><A NAME="getBarsEAN13(java.lang.String)"><!-- --></A><H3>getBarsEAN13</H3><PRE>public static byte[] <B>getBarsEAN13</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)</PRE><DL><DD>Creates the bars for the barcode EAN13 and UPCA.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>_code</CODE> - the text with 13 digits<DT><B>Returns:</B><DD>the barcode</DL></DD></DL><HR><A NAME="getBarsEAN8(java.lang.String)"><!-- --></A><H3>getBarsEAN8</H3><PRE>public static byte[] <B>getBarsEAN8</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)</PRE><DL><DD>Creates the bars for the barcode EAN8.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>_code</CODE> - the text with 8 digits<DT><B>Returns:</B><DD>the barcode</DL></DD></DL><HR><A NAME="getBarsUPCE(java.lang.String)"><!-- --></A><H3>getBarsUPCE</H3><PRE>public static byte[] <B>getBarsUPCE</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)</PRE><DL><DD>Creates the bars for the barcode UPCE.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>_code</CODE> - the text with 8 digits<DT><B>Returns:</B><DD>the barcode</DL></DD></DL><HR><A NAME="getBarsSupplemental2(java.lang.String)"><!-- --></A><H3>getBarsSupplemental2</H3><PRE>public static byte[] <B>getBarsSupplemental2</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)</PRE><DL><DD>Creates the bars for the barcode supplemental 2.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>_code</CODE> - the text with 2 digits<DT><B>Returns:</B><DD>the barcode</DL></DD></DL><HR><A NAME="getBarsSupplemental5(java.lang.String)"><!-- --></A><H3>getBarsSupplemental5</H3><PRE>public static byte[] <B>getBarsSupplemental5</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)</PRE><DL><DD>Creates the bars for the barcode supplemental 5.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>_code</CODE> - the text with 5 digits<DT><B>Returns:</B><DD>the barcode</DL></DD></DL><HR><A NAME="getBarcodeSize()"><!-- --></A><H3>getBarcodeSize</H3><PRE>public <A HREF="../../../../com/lowagie/text/Rectangle.html" title="class in com.lowagie.text">Rectangle</A> <B>getBarcodeSize</B>()</PRE><DL><DD>Gets the maximum area that the barcode and the text, if any, will occupy. The lower left corner is always (0, 0).<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/lowagie/text/pdf/Barcode.html#getBarcodeSize()">getBarcodeSize</A></CODE> in class <CODE><A HREF="../../../../com/lowagie/text/pdf/Barcode.html" title="class in com.lowagie.text.pdf">Barcode</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the size the barcode occupies.</DL></DD></DL><HR><A NAME="placeBarcode(com.lowagie.text.pdf.PdfContentByte, java.awt.Color, java.awt.Color)"><!-- --></A><H3>placeBarcode</H3><PRE>public <A HREF="../../../../com/lowagie/text/Rectangle.html" title="class in com.lowagie.text">Rectangle</A> <B>placeBarcode</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)</PRE><DL><DD>Places the barcode in a <CODE>PdfContentByte</CODE>. The barcode is always placed at coordinates (0, 0). Use the translation matrix to move it elsewhere.<p> The bars and text are written in the following colors:<p> <P><TABLE BORDER=1> <TR> <TH><P><CODE>barColor</CODE></TH> <TH><P><CODE>textColor</CODE></TH> <TH><P>Result</TH> </TR> <TR> <TD><P><CODE>null</CODE></TD> <TD><P><CODE>null</CODE></TD> <TD><P>bars and text painted with current fill color</TD> </TR> <TR> <TD><P><CODE>barColor</CODE></TD> <TD><P><CODE>null</CODE></TD> <TD><P>bars and text painted with <CODE>barColor</CODE></TD> </TR> <TR> <TD><P><CODE>null</CODE></TD> <TD><P><CODE>textColor</CODE></TD> <TD><P>bars painted with current color<br>text painted with <CODE>textColor</CODE></TD> </TR> <TR> <TD><P><CODE>barColor</CODE></TD> <TD><P><CODE>textColor</CODE></TD> <TD><P>bars painted with <CODE>barColor</CODE><br>text painted with <CODE>textColor</CODE></TD> </TR> </TABLE><P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/lowagie/text/pdf/Barcode.html#placeBarcode(com.lowagie.text.pdf.PdfContentByte, java.awt.Color, java.awt.Color)">placeBarcode</A></CODE> in class <CODE><A HREF="../../../../com/lowagie/text/pdf/Barcode.html" title="class in com.lowagie.text.pdf">Barcode</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>cb</CODE> - the <CODE>PdfContentByte</CODE> where the barcode will be placed<DD><CODE>barColor</CODE> - the color of the bars. It can be <CODE>null</CODE><DD><CODE>textColor</CODE> - the color of the text. It can be <CODE>null</CODE><DT><B>Returns:</B><DD>the dimensions the barcode occupies</DL></DD></DL><HR><A NAME="createAwtImage(java.awt.Color, java.awt.Color)"><!-- --></A><H3>createAwtImage</H3><PRE>public <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> <B>createAwtImage</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)</PRE><DL><DD>Creates a <CODE>java.awt.Image</CODE>. This image only contains the bars without any text.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/lowagie/text/pdf/Barcode.html#createAwtImage(java.awt.Color, java.awt.Color)">createAwtImage</A></CODE> in class <CODE><A HREF="../../../../com/lowagie/text/pdf/Barcode.html" title="class in com.lowagie.text.pdf">Barcode</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>foreground</CODE> - the color of the bars<DD><CODE>background</CODE> - the color of the background<DT><B>Returns:</B><DD>the image</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>Hosted by <a href="http://www.hostbasket.com/">Hostbasket</a></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../com/lowagie/text/pdf/BarcodeDatamatrix.ReedSolomon.html" title="class in com.lowagie.text.pdf"><B>PREV CLASS</B></A> <A HREF="../../../../com/lowagie/text/pdf/BarcodeEANSUPP.html" title="class in com.lowagie.text.pdf"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?com/lowagie/text/pdf/BarcodeEAN.html" target="_top"><B>FRAMES</B></A> <A HREF="BarcodeEAN.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -