|
|
@ -59,8 +59,10 @@ public class XTextArea extends XFieldEditor { |
|
|
|
TextArea area = (TextArea) data; |
|
|
|
TextArea area = (TextArea) data; |
|
|
|
if (area.getWidgetValue() != null) { |
|
|
|
if (area.getWidgetValue() != null) { |
|
|
|
Graphics2D g2d = (Graphics2D) g.create(); |
|
|
|
Graphics2D g2d = (Graphics2D) g.create(); |
|
|
|
|
|
|
|
FRFont font = FRFont.getInstance(); |
|
|
|
|
|
|
|
float fontsize = (float) (font.getSize() * this.getScale()); |
|
|
|
BaseUtils.drawStringStyleInRotation(g2d, this.getWidth(), this.getHeight(), area.getWidgetValue() |
|
|
|
BaseUtils.drawStringStyleInRotation(g2d, this.getWidth(), this.getHeight(), area.getWidgetValue() |
|
|
|
.toString(), Style.getInstance(FRFont.getInstance()).deriveHorizontalAlignment(Constants.LEFT) |
|
|
|
.toString(), Style.getInstance(font.applySize(fontsize)).deriveHorizontalAlignment(Constants.LEFT) |
|
|
|
.deriveVerticalAlignment(SwingConstants.TOP) |
|
|
|
.deriveVerticalAlignment(SwingConstants.TOP) |
|
|
|
.deriveTextStyle(Style.TEXTSTYLE_WRAPTEXT), ScreenResolution.getScreenResolution()); |
|
|
|
.deriveTextStyle(Style.TEXTSTYLE_WRAPTEXT), ScreenResolution.getScreenResolution()); |
|
|
|
} |
|
|
|
} |
|
|
|