|
|
|
@ -13,6 +13,7 @@ import com.fr.design.gui.icombobox.UIComboBox;
|
|
|
|
|
import com.fr.design.gui.ilable.UILabel; |
|
|
|
|
import com.fr.design.i18n.Toolkit; |
|
|
|
|
import com.fr.design.layout.TableLayout; |
|
|
|
|
import com.fr.design.mainframe.chart.mode.ChartEditContext; |
|
|
|
|
import com.fr.design.utils.gui.GUICoreUtils; |
|
|
|
|
import com.fr.general.FRFont; |
|
|
|
|
import com.fr.general.GeneralUtils; |
|
|
|
@ -29,16 +30,21 @@ public class ChartTextAttrPane extends BasicPane {
|
|
|
|
|
private static final long serialVersionUID = 6731679928019436869L; |
|
|
|
|
public static final int FONT_START = 6; |
|
|
|
|
public static final int FONT_END = 72; |
|
|
|
|
public static final int FONT_END_4_DUCHAMP = 200; |
|
|
|
|
private UIComboBox fontNameComboBox; |
|
|
|
|
private UIComboBox fontSizeComboBox; |
|
|
|
|
private UIToggleButton bold; |
|
|
|
|
private UIToggleButton italic; |
|
|
|
|
private UIColorButton fontColor; |
|
|
|
|
public static Integer[] FONT_SIZES = new Integer[FONT_END - FONT_START + 1]; |
|
|
|
|
private static Integer[] FONT_SIZES = new Integer[FONT_END - FONT_START + 1]; |
|
|
|
|
private static Integer[] FONT_SIZES_4_DUCHAMP = new Integer[FONT_END_4_DUCHAMP - FONT_START + 1]; |
|
|
|
|
static { |
|
|
|
|
for (int i = FONT_START; i <= FONT_END; i++) { |
|
|
|
|
FONT_SIZES[i - FONT_START] = i; |
|
|
|
|
} |
|
|
|
|
for (int i = FONT_START; i <= FONT_END_4_DUCHAMP; i++) { |
|
|
|
|
FONT_SIZES_4_DUCHAMP[i - FONT_START] = i; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public ChartTextAttrPane() { |
|
|
|
@ -176,7 +182,7 @@ public class ChartTextAttrPane extends BasicPane {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected Object[] getFontSizeComboBoxModel() { |
|
|
|
|
return FONT_SIZES; |
|
|
|
|
return ChartEditContext.duchampMode() ? FONT_SIZES_4_DUCHAMP : FONT_SIZES; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected void initState() { |
|
|
|
|