public void setTextProperties(){
if(m_xPropsDialog != null){
XControlContainer xControlContainer = (XControlContainer) UnoRuntime.queryInterface(XControlContainer.class, m_xPropsDialog);
XRadioButton textFitRB = (XRadioButton) UnoRuntime.queryInterface(XRadioButton.class, xControlContainer.getControl("textFitOptionButton"));
XListBox fontSizeLB = (XListBox)UnoRuntime.queryInterface(XListBox.class, xControlContainer.getControl("fontSizeListBox"));
boolean isFitText = textFitRB.getState();
getController().getDiagram().setTextFitProp(isFitText);
float newFontSize = 0;
if(!isFitText)
newFontSize = FontSize._getFontSize(fontSizeLB.getSelectedItemPos());
//set no mark in FontSize ListBox
short index = FontSize._getIndexOfFontSize(getController().getDiagram().getFontSizeProp());
fontSizeLB.selectItemPos(index, true);
String label = fontSizeLB.getSelectedItem();
if(label.startsWith("*"))
label = " " + label.substring(1);
fontSizeLB.removeItems(index, (short)1);
fontSizeLB.addItem(label, index);
fontSizeLB.selectItemPos(index, true);
if(!isFitText)
getController().getDiagram().setFontSizeProp(newFontSize);
boolean isTextColorChange = isCheckedModifyTextColorCheckBox();
getController().getDiagram().setTextColorChange(isTextColorChange);