Browse Source

CHART-13814 标记点样式调整

feature/big-screen
白岳 4 years ago
parent
commit
b6052c4af2
  1. 10
      designer-chart/src/main/java/com/fr/van/chart/designer/component/marker/VanChartCommonMarkerPane.java

10
designer-chart/src/main/java/com/fr/van/chart/designer/component/marker/VanChartCommonMarkerPane.java

@ -2,7 +2,6 @@ package com.fr.van.chart.designer.component.marker;
import com.fr.chart.chartglyph.Marker; import com.fr.chart.chartglyph.Marker;
import com.fr.design.beans.BasicBeanPane; import com.fr.design.beans.BasicBeanPane;
import com.fr.design.constants.LayoutConstants;
import com.fr.design.gui.ilable.UILabel; import com.fr.design.gui.ilable.UILabel;
import com.fr.design.gui.ispinner.UISpinner; import com.fr.design.gui.ispinner.UISpinner;
import com.fr.design.gui.xcombox.MarkerComboBox; import com.fr.design.gui.xcombox.MarkerComboBox;
@ -57,6 +56,7 @@ public class VanChartCommonMarkerPane extends BasicBeanPane<VanChartAttrMarker>
} }
private static Marker[] normalMarkersWithAuto = null; private static Marker[] normalMarkersWithAuto = null;
protected static Marker[] getNormalMarkersWithAuto() { protected static Marker[] getNormalMarkersWithAuto() {
if (normalMarkersWithAuto == null) { if (normalMarkersWithAuto == null) {
normalMarkersWithAuto = new Marker[NORMAL_TYPES.length + 1]; normalMarkersWithAuto = new Marker[NORMAL_TYPES.length + 1];
@ -130,17 +130,17 @@ public class VanChartCommonMarkerPane extends BasicBeanPane<VanChartAttrMarker>
double p = TableLayout.PREFERRED; double p = TableLayout.PREFERRED;
double f = TableLayout.FILL; double f = TableLayout.FILL;
double e = TableLayout4VanChartHelper.EDIT_AREA_WIDTH; double e = getColumnSize()[1];
double[] columnSize = {f, e}; double[] columnSize = {f, e};
double[] rowSize = {p, p, p}; double[] rowSize = {p, p, p};
return TableLayoutHelper.createGapTableLayoutPane(getPaneComponents(), rowSize, columnSize, 0, LayoutConstants.VGAP_MEDIUM); return TableLayoutHelper.createTableLayoutPane(getPaneComponents(), rowSize, columnSize);
} }
protected Component[][] getPaneComponents() { protected Component[][] getPaneComponents() {
return new Component[][]{ return new Component[][]{
new Component[]{null, null}, new Component[]{null, null},
new Component[]{null, typeComboBox}, new Component[]{new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_Fill_Color")), typeComboBox},
new Component[]{null, centerPane}, new Component[]{null, centerPane},
}; };
} }
@ -175,7 +175,7 @@ public class VanChartCommonMarkerPane extends BasicBeanPane<VanChartAttrMarker>
protected Component[][] getMarkerConfigComponent() { protected Component[][] getMarkerConfigComponent() {
return new Component[][]{ return new Component[][]{
new Component[]{new UILabel(Toolkit.i18nText("Fine-Design_Chart_Fill_Color")), markerFillColor}, new Component[]{markerFillColor, null},
new Component[]{new UILabel(Toolkit.i18nText("Fine-Design_Chart_Radius")), radius} new Component[]{new UILabel(Toolkit.i18nText("Fine-Design_Chart_Radius")), radius}
}; };
} }

Loading…
Cancel
Save