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