|
|
|
@ -72,9 +72,9 @@ public class VanChartPlotLegendPane extends BasicPane {
|
|
|
|
|
//private LimitPane limitPane;
|
|
|
|
|
|
|
|
|
|
//高亮显示的按钮
|
|
|
|
|
private UILabel highlightLabel; |
|
|
|
|
private UIButtonGroup<Boolean> highlightButton; |
|
|
|
|
private JPanel highlightPane; |
|
|
|
|
private UILabel fixedCheckLabel; |
|
|
|
|
private UICheckBox fixedCheck; |
|
|
|
|
private JPanel fixedCheckPane; |
|
|
|
|
|
|
|
|
|
private VanChartStylePane parent; |
|
|
|
|
|
|
|
|
@ -91,8 +91,8 @@ public class VanChartPlotLegendPane extends BasicPane {
|
|
|
|
|
this.plot = plot; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public JPanel getHighlightPane() { |
|
|
|
|
return highlightPane; |
|
|
|
|
public JPanel getFixedCheckPane() { |
|
|
|
|
return fixedCheckPane; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public VanChartStylePane getLegendPaneParent() { |
|
|
|
@ -135,7 +135,7 @@ public class VanChartPlotLegendPane extends BasicPane {
|
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected JPanel createLegendPaneWithoutHighlight() { |
|
|
|
|
protected JPanel createLegendPaneWithoutFixedCheck() { |
|
|
|
|
borderPane = new VanChartBorderWithRadiusPane(); |
|
|
|
|
backgroundPane = creatBackgroundPane(); |
|
|
|
|
|
|
|
|
@ -162,11 +162,11 @@ public class VanChartPlotLegendPane extends BasicPane {
|
|
|
|
|
protected JPanel createLegendPane() { |
|
|
|
|
borderPane = new VanChartBorderWithRadiusPane(); |
|
|
|
|
backgroundPane = creatBackgroundPane(); |
|
|
|
|
highlightPane = createHighlightPane(); |
|
|
|
|
fixedCheckPane = createFixedCheckPane(); |
|
|
|
|
JPanel panel = new JPanel(); |
|
|
|
|
panel.setLayout(new BorderLayout()); |
|
|
|
|
panel.add(createDisplayStrategy(), BorderLayout.CENTER); |
|
|
|
|
panel.add(highlightPane, BorderLayout.SOUTH); |
|
|
|
|
panel.add(fixedCheckPane, BorderLayout.SOUTH); |
|
|
|
|
|
|
|
|
|
double p = TableLayout.PREFERRED; |
|
|
|
|
double f = TableLayout.FILL; |
|
|
|
@ -319,9 +319,9 @@ public class VanChartPlotLegendPane extends BasicPane {
|
|
|
|
|
// return limitPane;
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private JPanel createHighlightPane() { |
|
|
|
|
highlightButton = new UIButtonGroup<>(new String[]{Toolkit.i18nText("Fine-Design_Chart_On"), Toolkit.i18nText("Fine-Design_Chart_Off")}, new Boolean[]{true, false}); |
|
|
|
|
highlightLabel = new UILabel(Toolkit.i18nText("Fine-Design_Chart_Highlight")); |
|
|
|
|
private JPanel createFixedCheckPane() { |
|
|
|
|
fixedCheck = new UICheckBox(Toolkit.i18nText("Fine-Engine_Chart_Open_Fixed_Display")); |
|
|
|
|
fixedCheckLabel = new UILabel(Toolkit.i18nText("Fine-Engine_Chart_Fixed_Display")); |
|
|
|
|
double p = TableLayout.PREFERRED; |
|
|
|
|
double f = TableLayout.FILL; |
|
|
|
|
double e = TableLayout4VanChartHelper.EDIT_AREA_WIDTH; |
|
|
|
@ -329,7 +329,7 @@ public class VanChartPlotLegendPane extends BasicPane {
|
|
|
|
|
double[] rowSize = {p, p}; |
|
|
|
|
Component[][] components = new Component[][]{ |
|
|
|
|
new Component[]{null, null}, |
|
|
|
|
new Component[]{highlightLabel, highlightButton} |
|
|
|
|
new Component[]{fixedCheckLabel, fixedCheck} |
|
|
|
|
}; |
|
|
|
|
return TableLayout4VanChartHelper.createGapTableLayoutPane(components, rowSize, columnSize); |
|
|
|
|
} |
|
|
|
@ -408,8 +408,8 @@ public class VanChartPlotLegendPane extends BasicPane {
|
|
|
|
|
//legend.setLimitAttribute(limitPane.updateBean());
|
|
|
|
|
legend.setFloatPercentX(customFloatPositionPane.getFloatPosition_x()); |
|
|
|
|
legend.setFloatPercentY(customFloatPositionPane.getFloatPosition_y()); |
|
|
|
|
if (highlightButton != null && highlightButton.getSelectedItem() != null) { |
|
|
|
|
legend.setHighlight(highlightButton.getSelectedItem()); |
|
|
|
|
if (fixedCheck != null) { |
|
|
|
|
legend.setHighlight(fixedCheck.isSelected()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -431,11 +431,11 @@ public class VanChartPlotLegendPane extends BasicPane {
|
|
|
|
|
maxProportion.populateBean(legend.getMaxHeight()); |
|
|
|
|
//区域显示策略 恢复用注释。取消注释。
|
|
|
|
|
//limitPane.populateBean(legend.getLimitAttribute());
|
|
|
|
|
if (highlightButton != null) { |
|
|
|
|
highlightButton.setSelectedItem(legend.isHighlight()); |
|
|
|
|
if (fixedCheck != null) { |
|
|
|
|
fixedCheck.setSelected(legend.isHighlight()); |
|
|
|
|
boolean largeDataModel = PlotFactory.largeDataModel(plot); |
|
|
|
|
highlightButton.setEnabled(!largeDataModel); |
|
|
|
|
highlightLabel.setEnabled(!largeDataModel); |
|
|
|
|
fixedCheck.setEnabled(!largeDataModel); |
|
|
|
|
fixedCheckLabel.setEnabled(!largeDataModel); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|