FR [ 1803359 ] Migrate to barbecue 1.1
This commit is contained in:
parent
423f259502
commit
631739feac
|
@ -42,7 +42,7 @@
|
||||||
<classpathentry exported="true" kind="lib" path="tools/lib/commons-logging.jar"/>
|
<classpathentry exported="true" kind="lib" path="tools/lib/commons-logging.jar"/>
|
||||||
<classpathentry exported="true" kind="lib" path="tools/lib/commons-net-1.4.0.jar"/>
|
<classpathentry exported="true" kind="lib" path="tools/lib/commons-net-1.4.0.jar"/>
|
||||||
<classpathentry exported="true" kind="lib" path="tools/lib/jgraph.jar"/>
|
<classpathentry exported="true" kind="lib" path="tools/lib/jgraph.jar"/>
|
||||||
<classpathentry kind="lib" path="tools/lib/barbecue-1.0.6d.jar"/>
|
<classpathentry kind="lib" path="tools/lib/barbecue-1.1.jar"/>
|
||||||
<classpathentry kind="lib" path="tools/lib/jcommon-1.0.5.jar"/>
|
<classpathentry kind="lib" path="tools/lib/jcommon-1.0.5.jar"/>
|
||||||
<classpathentry kind="lib" path="tools/lib/jfreechart-1.0.2.jar"/>
|
<classpathentry kind="lib" path="tools/lib/jfreechart-1.0.2.jar"/>
|
||||||
<classpathentry kind="lib" path="tools/lib/postgresql.jar"/>
|
<classpathentry kind="lib" path="tools/lib/postgresql.jar"/>
|
||||||
|
@ -73,7 +73,6 @@
|
||||||
<classpathentry kind="src" path="migration/src"/>
|
<classpathentry kind="src" path="migration/src"/>
|
||||||
<classpathentry excluding="org/compiere/interfaces/" kind="src" path="JasperReports/src"/>
|
<classpathentry excluding="org/compiere/interfaces/" kind="src" path="JasperReports/src"/>
|
||||||
<classpathentry excluding="org/compiere/utils/DigestOfFile.java" kind="src" path="JasperReportsWebApp/src"/>
|
<classpathentry excluding="org/compiere/utils/DigestOfFile.java" kind="src" path="JasperReportsWebApp/src"/>
|
||||||
<classpathentry kind="lib" path="JasperReportsTools/lib/barbecue-1.1.jar"/>
|
|
||||||
<classpathentry kind="lib" path="JasperReportsTools/lib/jasperreports-1.3.0.jar"/>
|
<classpathentry kind="lib" path="JasperReportsTools/lib/jasperreports-1.3.0.jar"/>
|
||||||
<classpathentry kind="src" path="webCM/src/main/servlet"/>
|
<classpathentry kind="src" path="webCM/src/main/servlet"/>
|
||||||
<classpathentry kind="lib" path="tools/lib/swinglabs-0.8.0.jar"/>
|
<classpathentry kind="lib" path="tools/lib/swinglabs-0.8.0.jar"/>
|
||||||
|
|
|
@ -69,7 +69,6 @@
|
||||||
<pathelement path="../JasperReportsTools/lib/commons-collections-3.1.jar"/>
|
<pathelement path="../JasperReportsTools/lib/commons-collections-3.1.jar"/>
|
||||||
<pathelement path="../JasperReportsTools/lib/commons-logging-1.4.jar"/>
|
<pathelement path="../JasperReportsTools/lib/commons-logging-1.4.jar"/>
|
||||||
<pathelement path="../JasperReportsTools/lib/commons-beanutils-1.7.jar"/>
|
<pathelement path="../JasperReportsTools/lib/commons-beanutils-1.7.jar"/>
|
||||||
<pathelement path="../JasperReportsTools/lib/barbecue-1.1.jar"/>
|
|
||||||
<pathelement path="../JasperReportsTools/lib/xercesImpl.jar"/>
|
<pathelement path="../JasperReportsTools/lib/xercesImpl.jar"/>
|
||||||
<pathelement path="../JasperReportsTools/lib/xml-apis.jar"/>
|
<pathelement path="../JasperReportsTools/lib/xml-apis.jar"/>
|
||||||
<pathelement path="../tools/lib/postgresql.jar"/>
|
<pathelement path="../tools/lib/postgresql.jar"/>
|
||||||
|
@ -147,9 +146,6 @@
|
||||||
<zipfileset src="../JasperReportsTools/lib/commons-beanutils-1.7.jar" >
|
<zipfileset src="../JasperReportsTools/lib/commons-beanutils-1.7.jar" >
|
||||||
<patternset refid="manifest.exclude"/>
|
<patternset refid="manifest.exclude"/>
|
||||||
</zipfileset>
|
</zipfileset>
|
||||||
<zipfileset src="../JasperReportsTools/lib/barbecue-1.1.jar" >
|
|
||||||
<patternset refid="manifest.exclude"/>
|
|
||||||
</zipfileset>
|
|
||||||
<zipfileset src="../JasperReportsTools/lib/xercesImpl.jar" >
|
<zipfileset src="../JasperReportsTools/lib/xercesImpl.jar" >
|
||||||
<patternset refid="manifest.exclude"/>
|
<patternset refid="manifest.exclude"/>
|
||||||
</zipfileset>
|
</zipfileset>
|
||||||
|
|
|
@ -16,19 +16,26 @@
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
package org.compiere.print.layout;
|
package org.compiere.print.layout;
|
||||||
|
|
||||||
import java.awt.*;
|
import java.awt.Graphics2D;
|
||||||
import java.awt.geom.*;
|
import java.awt.geom.Point2D;
|
||||||
import java.util.*;
|
import java.util.Properties;
|
||||||
import org.compiere.print.*;
|
|
||||||
|
|
||||||
import net.sourceforge.barbecue.*;
|
import net.sourceforge.barbecue.Barcode;
|
||||||
import net.sourceforge.barbecue.linear.code128.*;
|
import net.sourceforge.barbecue.BarcodeFactory;
|
||||||
|
import net.sourceforge.barbecue.linear.ean.UCCEAN128Barcode;
|
||||||
|
import net.sourceforge.barbecue.output.OutputException;
|
||||||
|
|
||||||
|
import org.compiere.print.MPrintFont;
|
||||||
|
import org.compiere.print.MPrintFormatItem;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Barcode Print Element
|
* Barcode Print Element
|
||||||
*
|
*
|
||||||
* @author Jorg Janke
|
* @author Jorg Janke
|
||||||
* @version $Id: BarcodeElement.java,v 1.2 2006/07/30 00:53:02 jjanke Exp $
|
* @version $Id: BarcodeElement.java,v 1.2 2006/07/30 00:53:02 jjanke Exp $
|
||||||
|
*
|
||||||
|
* @author Teo Sarca, SC ARHIPAC SERVICE SRL
|
||||||
|
* <li>FR [ 1803359 ] Migrate to barbecue 1.1
|
||||||
*/
|
*/
|
||||||
public class BarcodeElement extends PrintElement
|
public class BarcodeElement extends PrintElement
|
||||||
{
|
{
|
||||||
|
@ -209,7 +216,10 @@ public class BarcodeElement extends PrintElement
|
||||||
x += (p_maxWidth - p_width) / 2;
|
x += (p_maxWidth - p_width) / 2;
|
||||||
int y = (int)location.y;
|
int y = (int)location.y;
|
||||||
|
|
||||||
m_barcode.draw(g2D, x, y);
|
try {
|
||||||
|
m_barcode.draw(g2D, x, y);
|
||||||
|
} catch (OutputException e) {
|
||||||
|
}
|
||||||
} // paint
|
} // paint
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -16,17 +16,36 @@
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
package org.compiere.print.layout;
|
package org.compiere.print.layout;
|
||||||
|
|
||||||
import java.awt.*;
|
import java.awt.Color;
|
||||||
import java.awt.font.*;
|
import java.awt.Dimension;
|
||||||
import java.awt.geom.*;
|
import java.awt.Font;
|
||||||
import java.text.*;
|
import java.awt.Graphics2D;
|
||||||
import java.util.*;
|
import java.awt.Image;
|
||||||
import java.util.logging.*;
|
import java.awt.Point;
|
||||||
import java.util.regex.*;
|
import java.awt.Rectangle;
|
||||||
|
import java.awt.font.FontRenderContext;
|
||||||
|
import java.awt.font.LineBreakMeasurer;
|
||||||
|
import java.awt.font.TextAttribute;
|
||||||
|
import java.awt.font.TextLayout;
|
||||||
|
import java.awt.geom.AffineTransform;
|
||||||
|
import java.awt.geom.Point2D;
|
||||||
|
import java.text.AttributedCharacterIterator;
|
||||||
|
import java.text.AttributedString;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Properties;
|
||||||
|
import java.util.logging.Level;
|
||||||
|
import java.util.regex.Pattern;
|
||||||
|
|
||||||
import org.compiere.model.*;
|
import net.sourceforge.barbecue.output.OutputException;
|
||||||
import org.compiere.print.*;
|
|
||||||
import org.compiere.util.*;
|
import org.compiere.model.MQuery;
|
||||||
|
import org.compiere.print.MPrintFormatItem;
|
||||||
|
import org.compiere.print.MPrintTableFormat;
|
||||||
|
import org.compiere.util.KeyNamePair;
|
||||||
|
import org.compiere.util.NamePair;
|
||||||
|
import org.compiere.util.Util;
|
||||||
|
import org.compiere.util.ValueNamePair;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Table Print Element.
|
* Table Print Element.
|
||||||
|
@ -47,6 +66,9 @@ import org.compiere.util.*;
|
||||||
* </pre>
|
* </pre>
|
||||||
* @author Jorg Janke
|
* @author Jorg Janke
|
||||||
* @version $Id: TableElement.java,v 1.2 2006/07/30 00:53:02 jjanke Exp $
|
* @version $Id: TableElement.java,v 1.2 2006/07/30 00:53:02 jjanke Exp $
|
||||||
|
*
|
||||||
|
* @author Teo Sarca, SC ARHIPAC SERVICE SRL
|
||||||
|
* <li>FR [ 1803359 ] Migrate to barbecue 1.1
|
||||||
*/
|
*/
|
||||||
public class TableElement extends PrintElement
|
public class TableElement extends PrintElement
|
||||||
{
|
{
|
||||||
|
@ -1371,7 +1393,10 @@ public class TableElement extends PrintElement
|
||||||
}
|
}
|
||||||
else if (printItems[index] instanceof BarcodeElement)
|
else if (printItems[index] instanceof BarcodeElement)
|
||||||
{
|
{
|
||||||
((BarcodeElement)printItems[index]).getBarcode().draw(g2D, curX, (int)penY);
|
try {
|
||||||
|
((BarcodeElement)printItems[index]).getBarcode().draw(g2D, curX, (int)penY);
|
||||||
|
} catch (OutputException e) {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (printItems[index] instanceof Boolean)
|
else if (printItems[index] instanceof Boolean)
|
||||||
{
|
{
|
||||||
|
|
|
@ -207,7 +207,7 @@
|
||||||
<patternset refid="manifest.exclude"/>
|
<patternset refid="manifest.exclude"/>
|
||||||
</zipfileset>
|
</zipfileset>
|
||||||
<!-- Barcode, ftp -->
|
<!-- Barcode, ftp -->
|
||||||
<zipfileset src="lib/barbecue-1.0.6d.jar" >
|
<zipfileset src="lib/barbecue-1.1.jar" >
|
||||||
<patternset refid="manifest.exclude"/>
|
<patternset refid="manifest.exclude"/>
|
||||||
</zipfileset>
|
</zipfileset>
|
||||||
<zipfileset src="lib/commons-net-1.4.0.jar" >
|
<zipfileset src="lib/commons-net-1.4.0.jar" >
|
||||||
|
@ -283,7 +283,7 @@
|
||||||
<patternset refid="manifest.exclude"/>
|
<patternset refid="manifest.exclude"/>
|
||||||
</zipfileset>
|
</zipfileset>
|
||||||
<!-- Barcode, ftp -->
|
<!-- Barcode, ftp -->
|
||||||
<zipfileset src="lib/barbecue-1.0.6d.jar" >
|
<zipfileset src="lib/barbecue-1.1.jar" >
|
||||||
<patternset refid="manifest.exclude"/>
|
<patternset refid="manifest.exclude"/>
|
||||||
</zipfileset>
|
</zipfileset>
|
||||||
<zipfileset src="lib/commons-net-1.4.0.jar" >
|
<zipfileset src="lib/commons-net-1.4.0.jar" >
|
||||||
|
|
Loading…
Reference in New Issue