Browse Source

服务器配置-图表预定义配色

persist/11.0-arabic
obo 4 months ago
parent
commit
4f749b94f7
  1. 5
      designer-chart/src/main/java/com/fr/design/module/ChartPreFillStylePane.java
  2. 3
      designer-chart/src/main/java/com/fr/design/module/ChartPreStylePane.java

5
designer-chart/src/main/java/com/fr/design/module/ChartPreFillStylePane.java

@ -1,6 +1,7 @@
package com.fr.design.module;
import com.fr.base.ChartColorMatching;
import com.fr.base.i18n.BidiUtils;
import com.fr.design.beans.BasicBeanPane;
import com.fr.design.gui.ibutton.UIButtonGroup;
import com.fr.design.gui.ilable.UILabel;
@ -73,12 +74,12 @@ public class ChartPreFillStylePane extends BasicBeanPane<ChartColorMatching> {
double[] columnSize = {p, p};
double[] rowSize = {p, p, p};
Component[][] components = new Component[][]{
new Component[]{new UILabel(" " + com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_Color_Match")), null},
new Component[]{new UILabel(BidiUtils.reverseConcatenateStrings(" ", com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_Color_Match"))), null},
new Component[]{null, customPane},
};
this.setLayout(new BorderLayout());
this.add(TableLayoutHelper.createTableLayoutPane(components, rowSize, columnSize), BorderLayout.WEST);
this.add(TableLayoutHelper.createTableLayoutPane(components, rowSize, columnSize), BidiUtils.rtl() ? BorderLayout.EAST : BorderLayout.WEST);
}
private void initListener() {

3
designer-chart/src/main/java/com/fr/design/module/ChartPreStylePane.java

@ -1,6 +1,7 @@
package com.fr.design.module;
import com.fr.base.ChartColorMatching;
import com.fr.base.i18n.BidiUtils;
import com.fr.chart.base.ChartUtils;
import com.fr.chart.chartattr.Bar2DPlot;
import com.fr.chart.chartattr.Chart;
@ -36,7 +37,7 @@ public class ChartPreStylePane extends BasicBeanPane<ChartColorMatching> {
fillStylePane = new ChartPreFillStylePane();
JPanel pane = new JPanel();
pane.setLayout(new FlowLayout(FlowLayout.LEFT));
pane.setLayout(new FlowLayout(BidiUtils.rtl() ? FlowLayout.RIGHT : FlowLayout.LEFT));
pane.add(new BoldFontTextLabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Preview")));

Loading…
Cancel
Save