|
@@ -107,7 +107,7 @@ public class VmsFormObject implements Serializable {
|
|
|
/**
|
|
|
* 문자열 객체의 위치좌표 X 를 조정한다.
|
|
|
*/
|
|
|
- public void changeTextPosition() {
|
|
|
+ public void changeTextPosition(float fontSizeRatio) {
|
|
|
if ("".equals(this.textData)) {
|
|
|
// 표출데이터가 없는 경우
|
|
|
return;
|
|
@@ -122,7 +122,7 @@ public class VmsFormObject implements Serializable {
|
|
|
|
|
|
int style = this.fontBold == 0 ? Font.PLAIN : Font.BOLD;
|
|
|
Font font = new Font(this.fontName, style, this.fontSize);
|
|
|
- font = font.deriveFont(this.fontSize * 1.35f);
|
|
|
+ font = font.deriveFont(this.fontSize * fontSizeRatio);//1.35f);
|
|
|
|
|
|
// FontRenderContext frc = new FontRenderContext(null, true, true);
|
|
|
// Rectangle2D r2 = font.getStringBounds(this.textData, frc);
|
|
@@ -139,7 +139,7 @@ public class VmsFormObject implements Serializable {
|
|
|
}
|
|
|
else if (this.textAlign == eVmsTextAlign.TEXT_ALIGN_CENTER.getValue()) {
|
|
|
// 가운데정렬: 원래 글자의 중앙값을 얻은 다음에 조정된 글자의 1/2 크기를 뺀다음 음수이면 0으로 설정
|
|
|
- this.posX = (this.posX+(this.dsplWidth /2)) - (textWidth/2);
|
|
|
+ this.posX = (this.posX+(this.dsplWidth/2)) - (textWidth/2);
|
|
|
//this.posX += (correctWidth / 2);
|
|
|
}
|
|
|
|
|
@@ -181,6 +181,9 @@ public class VmsFormObject implements Serializable {
|
|
|
if (VmsFormService.isObjectBitmap(this.objectType)) {
|
|
|
Image imgBmp = getImage();
|
|
|
if (imgBmp != null) {
|
|
|
+// g2d.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR);
|
|
|
+// g2d.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);
|
|
|
+// g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_DEFAULT);
|
|
|
g2d.drawImage(imgBmp, this.posX, this.posY, this.dsplWidth, this.dsplHeight, null);
|
|
|
}
|
|
|
}
|