Browse Source

消除魔术数

feature/big-screen
Qinghui.Liu 5 years ago
parent
commit
f2300031de
  1. 8
      designer-chart/src/main/java/com/fr/van/chart/designer/style/VanChartPlotLegendPane.java

8
designer-chart/src/main/java/com/fr/van/chart/designer/style/VanChartPlotLegendPane.java

@ -337,9 +337,13 @@ public class VanChartPlotLegendPane extends BasicPane {
}
protected boolean isVisibleLayoutPane() {
int locationIndex = getLegendLocation().getSelectedIndex();
if (customFloatPositionButton.isSelected()) {
return false;
}
int locationIntValue = getLegendLocation().getSelectedItem();
return !getCustomFloatPositionButton().isSelected() && (locationIndex == 0 || locationIndex == 1);
return locationIntValue == Constants.TOP || locationIntValue == Constants.BOTTOM;
}
//检查显示策略界面是否可用

Loading…
Cancel
Save