|
|
|
@ -147,10 +147,10 @@ public class ChartTextAttrPane extends BasicPane {
|
|
|
|
|
public FRFont updateFRFont() { |
|
|
|
|
String name = GeneralUtils.objectToString(fontNameComboBox.getSelectedItem()); |
|
|
|
|
|
|
|
|
|
return FRFont.getInstance(name, getFontStyle(), getFontSize(), fontColor.getColor()); |
|
|
|
|
return FRFont.getInstance(name, updateFontStyle(), updateFontSize(), fontColor.getColor()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected int getFontStyle() { |
|
|
|
|
protected int updateFontStyle() { |
|
|
|
|
int style = Font.PLAIN; |
|
|
|
|
if (bold.isSelected() && !italic.isSelected()) { |
|
|
|
|
style = Font.BOLD; |
|
|
|
@ -163,7 +163,7 @@ public class ChartTextAttrPane extends BasicPane {
|
|
|
|
|
return style; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected float getFontSize() { |
|
|
|
|
protected float updateFontSize() { |
|
|
|
|
return Float.parseFloat(GeneralUtils.objectToString(fontSizeComboBox.getSelectedItem())); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|