Browse Source

修改方法

master
mengao 7 years ago
parent
commit
555876f985
  1. 14
      designer_chart/src/com/fr/plugin/chart/designer/component/VanChartTooltipContentPane.java
  2. 13
      designer_chart/src/com/fr/plugin/chart/designer/component/label/GaugeLabelContentPane.java

14
designer_chart/src/com/fr/plugin/chart/designer/component/VanChartTooltipContentPane.java

@ -85,23 +85,23 @@ public class VanChartTooltipContentPane extends BasicBeanPane<AttrTooltipContent
centerPane.add(htmlLabelPane, Inter.getLocText("Plugin-ChartF_Custom")); centerPane.add(htmlLabelPane, Inter.getLocText("Plugin-ChartF_Custom"));
centerPane.add(commonPanel,Inter.getLocText("Plugin-ChartF_Common")); centerPane.add(commonPanel,Inter.getLocText("Plugin-ChartF_Common"));
UILabel text = new UILabel();
double[] column = {p, f}; double[] column = {p, f};
double[] row = {p,p,p}; double[] row = {p,p,p};
Component[][] components = new Component[][]{ Component[][] components = new Component[][]{
new Component[]{null,null}, new Component[]{null,null},
new Component[]{text,content}, new Component[]{new UILabel(getLabelContentTitle()),content},
new Component[]{null,centerPane}, new Component[]{null,centerPane},
}; };
initContentListener(); initContentListener();
return getContentPane(components, column, row, text); JPanel contentPane = TableLayout4VanChartHelper.createGapTableLayoutPane(components, row, column);
return getLabelContentPane(contentPane);
} }
protected JPanel getContentPane(Component[][] components, double[] column, double[] row, UILabel text) { protected String getLabelContentTitle () {
text.setText(Inter.getLocText("FR-Designer_Text")); return Inter.getLocText("FR-Designer_Text");
}
JPanel contentPane = TableLayout4VanChartHelper.createGapTableLayoutPane(components, row, column); protected JPanel getLabelContentPane(JPanel contentPane) {
return createTableLayoutPaneWithTitle(Inter.getLocText("Plugin-ChartF_Content"), contentPane); return createTableLayoutPaneWithTitle(Inter.getLocText("Plugin-ChartF_Content"), contentPane);
} }

13
designer_chart/src/com/fr/plugin/chart/designer/component/label/GaugeLabelContentPane.java

@ -1,13 +1,10 @@
package com.fr.plugin.chart.designer.component.label; package com.fr.plugin.chart.designer.component.label;
import com.fr.design.gui.ilable.UILabel;
import com.fr.general.Inter; import com.fr.general.Inter;
import com.fr.plugin.chart.designer.TableLayout4VanChartHelper;
import com.fr.plugin.chart.designer.component.VanChartLabelContentPane; import com.fr.plugin.chart.designer.component.VanChartLabelContentPane;
import com.fr.plugin.chart.designer.style.VanChartStylePane; import com.fr.plugin.chart.designer.style.VanChartStylePane;
import javax.swing.*; import javax.swing.*;
import java.awt.*;
/** /**
* Created by mengao on 2017/8/13. * Created by mengao on 2017/8/13.
@ -18,8 +15,12 @@ public class GaugeLabelContentPane extends VanChartLabelContentPane {
super(parent, showOnPane); super(parent, showOnPane);
} }
protected JPanel getContentPane(Component[][] components, double[] column, double[] row, UILabel text) { protected String getLabelContentTitle() {
text.setText(Inter.getLocText("Plugin-ChartF_Content")); return Inter.getLocText("Plugin-ChartF_Content");
return TableLayout4VanChartHelper.createGapTableLayoutPane(components, row, column);
} }
protected JPanel getLabelContentPane(JPanel contentPane) {
return contentPane;
}
} }

Loading…
Cancel
Save