Browse Source

改为常量

fbp/master
renekton 1 month ago
parent
commit
d395407330
  1. 6
      designer-chart/src/main/java/com/fr/van/chart/designer/component/VanChartTooltipContentPane.java

6
designer-chart/src/main/java/com/fr/van/chart/designer/component/VanChartTooltipContentPane.java

@ -322,7 +322,7 @@ public class VanChartTooltipContentPane extends BasicBeanPane<AttrTooltipContent
textAttrPane = createChartTextAttrPane(); textAttrPane = createChartTextAttrPane();
stylePanel = Layouts.column(10, stylePanel = Layouts.column(10,
row( row(
cell(new UILabel(Toolkit.i18nText("Fine-Design_Chart_Widget_Style"))).weight(1.2), cell(styleButton).weight(3) cell(new UILabel(Toolkit.i18nText("Fine-Design_Chart_Widget_Style"))).weight(LayoutConstants.LEFT_WEIGHT), cell(styleButton).weight(LayoutConstants.RIGHT_WEIGHT)
), ),
cell(textAttrPane) cell(textAttrPane)
).getComponent(); ).getComponent();
@ -368,7 +368,7 @@ public class VanChartTooltipContentPane extends BasicBeanPane<AttrTooltipContent
new Component[]{new UILabel(Toolkit.i18nText("Fine-Design_Chart_Content_Style")), createRichEditorButton()} new Component[]{new UILabel(Toolkit.i18nText("Fine-Design_Chart_Content_Style")), createRichEditorButton()}
}; };
return FineLayoutBuilder.compatibleTableLayout(10, components, new double[]{1.2, 3}); return FineLayoutBuilder.compatibleTableLayout(10, components, new double[]{LayoutConstants.LEFT_WEIGHT, LayoutConstants.RIGHT_WEIGHT});
} }
private JComponent createRichEditorButton() { private JComponent createRichEditorButton() {
@ -489,7 +489,7 @@ public class VanChartTooltipContentPane extends BasicBeanPane<AttrTooltipContent
new Component[]{htmlLabelPane, null} new Component[]{htmlLabelPane, null}
}; };
return FineLayoutBuilder.compatibleTableLayout(10, htmlComponents, new double[]{1.2, 3}); return FineLayoutBuilder.compatibleTableLayout(10, htmlComponents, new double[]{LayoutConstants.LEFT_WEIGHT, LayoutConstants.RIGHT_WEIGHT});
} }
protected VanChartHtmlLabelPane createHtmlLabelPane() { protected VanChartHtmlLabelPane createHtmlLabelPane() {

Loading…
Cancel
Save