?? barcodeean.html
字號:
<PRE>
static byte[][] <B>PARITY13</B></PRE>
<DL>
<DD>Sequence of parities to be used with EAN13.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="PARITY2"><!-- --></A><H3>
PARITY2</H3>
<PRE>
static 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>
static 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>
static 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" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TD>
</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" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</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.3/docs/api/java/lang/String.html">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.3/docs/api/java/lang/String.html">String</A> <B>convertUPCAtoUPCE</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">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.3/docs/api/java/lang/String.html">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.3/docs/api/java/lang/String.html">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.3/docs/api/java/lang/String.html">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.3/docs/api/java/lang/String.html">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.3/docs/api/java/lang/String.html">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">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">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">Rectangle</A> <B>placeBarcode</B>(<A HREF="../../../../com/lowagie/text/pdf/PdfContentByte.html">PdfContentByte</A> cb, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/awt/Color.html">Color</A> barColor, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/awt/Color.html">Color</A> textColor)</PRE>
<DL>
<DD>Places the barcode in a <CODE>PdfContentByte</CODE>. The barcode is always placed at coodinates (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">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>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
<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>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../com/lowagie/text/pdf/BarcodeCodabar.html"><B>PREV CLASS</B></A>
<A HREF="../../../../com/lowagie/text/pdf/BarcodeEANSUPP.html"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A>
<A HREF="BarcodeEAN.html" TARGET="_top"><B>NO FRAMES</B></A>
<SCRIPT> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT><A HREF="../../../../allclasses-noframe.html" TARGET=""><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>
<!-- =========== END OF NAVBAR =========== -->
<HR>
</BODY>
</HTML>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -