|
|
@ -77,17 +77,17 @@ public class ChartTextAttrPane extends BasicPane { |
|
|
|
public void populate(FRFont frFont) { |
|
|
|
public void populate(FRFont frFont) { |
|
|
|
UIObserverListener listener = fontNameComboBox == null ? null : fontNameComboBox.getUiObserverListener(); |
|
|
|
UIObserverListener listener = fontNameComboBox == null ? null : fontNameComboBox.getUiObserverListener(); |
|
|
|
removeAllComboBoxListener(); |
|
|
|
removeAllComboBoxListener(); |
|
|
|
if (frFont == null) { |
|
|
|
|
|
|
|
return; |
|
|
|
if (frFont != null) { |
|
|
|
} |
|
|
|
fontNameComboBox.setSelectedItem(frFont.getFamily()); |
|
|
|
fontNameComboBox.setSelectedItem(frFont.getFamily()); |
|
|
|
bold.setSelected(frFont.isBold()); |
|
|
|
bold.setSelected(frFont.isBold()); |
|
|
|
italic.setSelected(frFont.isItalic()); |
|
|
|
italic.setSelected(frFont.isItalic()); |
|
|
|
if(fontSizeComboBox != null) { |
|
|
|
if(fontSizeComboBox != null) { |
|
|
|
fontSizeComboBox.setSelectedItem(frFont.getSize()); |
|
|
|
fontSizeComboBox.setSelectedItem(frFont.getSize()); |
|
|
|
} |
|
|
|
} |
|
|
|
if (fontColor != null) { |
|
|
|
if (fontColor != null) { |
|
|
|
fontColor.setColor(frFont.getForeground()); |
|
|
|
fontColor.setColor(frFont.getForeground()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//更新结束后,注册监听器
|
|
|
|
//更新结束后,注册监听器
|
|
|
|