|
|
|
@ -1,5 +1,6 @@
|
|
|
|
|
package com.fr.design.present; |
|
|
|
|
|
|
|
|
|
import com.fr.barcode.core.Barcode; |
|
|
|
|
import com.fr.code.bar.core.BarcodeAttr; |
|
|
|
|
import com.fr.code.BarcodeImpl; |
|
|
|
|
import com.fr.code.bar.core.BarCodeUtils; |
|
|
|
@ -326,8 +327,8 @@ public class BarCodePane extends FurtherBasicBeanPane<BarcodePresent> {
|
|
|
|
|
if (obj == null) { |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
if (obj instanceof BarcodeImpl) { |
|
|
|
|
BarcodeImpl barcodeImpl = (BarcodeImpl) obj; |
|
|
|
|
if (obj instanceof Barcode) { |
|
|
|
|
Barcode barcodeImpl = (Barcode) obj; |
|
|
|
|
Dimension size = this.getSize(); |
|
|
|
|
barcodeImpl.draw((Graphics2D) g, (int) (size.getWidth() - barcodeImpl.getWidth()) / 2, (int) (size.getHeight() - barcodeImpl.getHeight()) / 2); |
|
|
|
|
} else { |
|
|
|
|