Browse Source

修改图表中字体设置。

master
mengao 8 years ago
parent
commit
77b115e7d3
  1. 10
      designer_chart/src/com/fr/design/mainframe/chart/gui/style/ChartTextAttrPane.java

10
designer_chart/src/com/fr/design/mainframe/chart/gui/style/ChartTextAttrPane.java

@ -29,11 +29,10 @@ public class ChartTextAttrPane extends BasicPane {
protected UIToggleButton bold; protected UIToggleButton bold;
protected UIToggleButton italic; protected UIToggleButton italic;
protected UIColorButton fontColor; protected UIColorButton fontColor;
public static Integer[] Font_Sizes = new Integer[67];
public static Integer[] Font_Sizes = {new Integer(6), new Integer(8), new Integer(9), new Integer(10), new Integer(11), new Integer(12), new Integer(14), new Integer(16),
new Integer(18), new Integer(20), new Integer(22), new Integer(24), new Integer(26), new Integer(28), new Integer(36), new Integer(48), new Integer(72)};
public ChartTextAttrPane() { public ChartTextAttrPane() {
setFont_Sizes();
initComponents(); initComponents();
} }
@ -45,6 +44,11 @@ public class ChartTextAttrPane extends BasicPane {
// TODO Auto-generated method stub // TODO Auto-generated method stub
return null; return null;
} }
public static void setFont_Sizes() {
for (int i =0; i < 67;i++){
Font_Sizes [i]= new Integer(i+6);
}
}
public void populate(TextAttr textAttr) { public void populate(TextAttr textAttr) {
if (textAttr == null) { if (textAttr == null) {

Loading…
Cancel
Save