📄 barcode.html
字号:
<PRE>protected int <B>codeType</B></PRE><DL><DD>The code type.<P><DL></DL></DL><HR><A NAME="inkSpreading"><!-- --></A><H3>inkSpreading</H3><PRE>protected float <B>inkSpreading</B></PRE><DL><DD>The ink spreading.<P><DL></DL></DL><HR><A NAME="altText"><!-- --></A><H3>altText</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>altText</B></PRE><DL><DD>The alternate text to be used, if present.<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="Barcode()"><!-- --></A><H3>Barcode</H3><PRE>public <B>Barcode</B>()</PRE><DL></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="getX()"><!-- --></A><H3>getX</H3><PRE>public float <B>getX</B>()</PRE><DL><DD>Gets the minimum bar width.<P><DD><DL><DT><B>Returns:</B><DD>the minimum bar width</DL></DD></DL><HR><A NAME="setX(float)"><!-- --></A><H3>setX</H3><PRE>public void <B>setX</B>(float x)</PRE><DL><DD>Sets the minimum bar width.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - the minimum bar width</DL></DD></DL><HR><A NAME="getN()"><!-- --></A><H3>getN</H3><PRE>public float <B>getN</B>()</PRE><DL><DD>Gets the bar multiplier for wide bars.<P><DD><DL><DT><B>Returns:</B><DD>the bar multiplier for wide bars</DL></DD></DL><HR><A NAME="setN(float)"><!-- --></A><H3>setN</H3><PRE>public void <B>setN</B>(float n)</PRE><DL><DD>Sets the bar multiplier for wide bars.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>n</CODE> - the bar multiplier for wide bars</DL></DD></DL><HR><A NAME="getFont()"><!-- --></A><H3>getFont</H3><PRE>public <A HREF="../../../../com/lowagie/text/pdf/BaseFont.html" title="class in com.lowagie.text.pdf">BaseFont</A> <B>getFont</B>()</PRE><DL><DD>Gets the text font. <CODE>null</CODE> if no text.<P><DD><DL><DT><B>Returns:</B><DD>the text font. <CODE>null</CODE> if no text</DL></DD></DL><HR><A NAME="setFont(com.lowagie.text.pdf.BaseFont)"><!-- --></A><H3>setFont</H3><PRE>public void <B>setFont</B>(<A HREF="../../../../com/lowagie/text/pdf/BaseFont.html" title="class in com.lowagie.text.pdf">BaseFont</A> font)</PRE><DL><DD>Sets the text font.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>font</CODE> - the text font. Set to <CODE>null</CODE> to suppress any text</DL></DD></DL><HR><A NAME="getSize()"><!-- --></A><H3>getSize</H3><PRE>public float <B>getSize</B>()</PRE><DL><DD>Gets the size of the text.<P><DD><DL><DT><B>Returns:</B><DD>the size of the text</DL></DD></DL><HR><A NAME="setSize(float)"><!-- --></A><H3>setSize</H3><PRE>public void <B>setSize</B>(float size)</PRE><DL><DD>Sets the size of the text.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>size</CODE> - the size of the text</DL></DD></DL><HR><A NAME="getBaseline()"><!-- --></A><H3>getBaseline</H3><PRE>public float <B>getBaseline</B>()</PRE><DL><DD>Gets the text baseline. If positive, the text distance under the bars. If zero or negative, the text distance above the bars.<P><DD><DL><DT><B>Returns:</B><DD>the baseline.</DL></DD></DL><HR><A NAME="setBaseline(float)"><!-- --></A><H3>setBaseline</H3><PRE>public void <B>setBaseline</B>(float baseline)</PRE><DL><DD>Sets the text baseline. If positive, the text distance under the bars. If zero or negative, the text distance above the bars.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>baseline</CODE> - the baseline.</DL></DD></DL><HR><A NAME="getBarHeight()"><!-- --></A><H3>getBarHeight</H3><PRE>public float <B>getBarHeight</B>()</PRE><DL><DD>Gets the height of the bars.<P><DD><DL><DT><B>Returns:</B><DD>the height of the bars</DL></DD></DL><HR><A NAME="setBarHeight(float)"><!-- --></A><H3>setBarHeight</H3><PRE>public void <B>setBarHeight</B>(float barHeight)</PRE><DL><DD>Sets the height of the bars.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>barHeight</CODE> - the height of the bars</DL></DD></DL><HR><A NAME="getTextAlignment()"><!-- --></A><H3>getTextAlignment</H3><PRE>public int <B>getTextAlignment</B>()</PRE><DL><DD>Gets the text alignment. Can be <CODE>Element.ALIGN_LEFT</CODE>, <CODE>Element.ALIGN_CENTER</CODE> or <CODE>Element.ALIGN_RIGHT</CODE>.<P><DD><DL><DT><B>Returns:</B><DD>the text alignment</DL></DD></DL><HR><A NAME="setTextAlignment(int)"><!-- --></A><H3>setTextAlignment</H3><PRE>public void <B>setTextAlignment</B>(int textAlignment)</PRE><DL><DD>Sets the text alignment. Can be <CODE>Element.ALIGN_LEFT</CODE>, <CODE>Element.ALIGN_CENTER</CODE> or <CODE>Element.ALIGN_RIGHT</CODE>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>textAlignment</CODE> - the text alignment</DL></DD></DL><HR><A NAME="isGenerateChecksum()"><!-- --></A><H3>isGenerateChecksum</H3><PRE>public boolean <B>isGenerateChecksum</B>()</PRE><DL><DD>Gets the optional checksum generation.<P><DD><DL><DT><B>Returns:</B><DD>the optional checksum generation</DL></DD></DL><HR><A NAME="setGenerateChecksum(boolean)"><!-- --></A><H3>setGenerateChecksum</H3><PRE>public void <B>setGenerateChecksum</B>(boolean generateChecksum)</PRE><DL><DD>Setter for property generateChecksum.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>generateChecksum</CODE> - New value of property generateChecksum.</DL></DD></DL><HR><A NAME="isChecksumText()"><!-- --></A><H3>isChecksumText</H3><PRE>public boolean <B>isChecksumText</B>()</PRE><DL><DD>Gets the property to show the generated checksum in the the text.<P><DD><DL><DT><B>Returns:</B><DD>value of property checksumText</DL></DD></DL><HR><A NAME="setChecksumText(boolean)"><!-- --></A><H3>setChecksumText</H3><PRE>public void <B>setChecksumText</B>(boolean checksumText)</PRE><DL><DD>Sets the property to show the generated checksum in the the text.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>checksumText</CODE> - new value of property checksumText</DL></DD></DL><HR><A NAME="isStartStopText()"><!-- --></A><H3>isStartStopText</H3><PRE>public boolean <B>isStartStopText</B>()</PRE><DL><DD>Sets the property to show the start and stop character '*' in the text for the barcode 39.<P><DD><DL><DT><B>Returns:</B><DD>value of property startStopText</DL></DD></DL><HR><A NAME="setStartStopText(boolean)"><!-- --></A><H3>setStartStopText</H3><PRE>public void <B>setStartStopText</B>(boolean startStopText)</PRE><DL><DD>Gets the property to show the start and stop character '*' in the text for the barcode 39.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>startStopText</CODE> - new value of property startStopText</DL></DD></DL><HR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -