Browse Source

修改组合图报错问题,修改数据点提示,轮播设置面板在图表超链中的弹出问题

master
mengao 7 years ago
parent
commit
7e6c990c72
  1. 10
      designer_chart/src/com/fr/design/mainframe/chart/gui/ChartTypeButtonPane.java
  2. 3
      designer_chart/src/com/fr/plugin/chart/designer/other/AutoRefreshPane.java

10
designer_chart/src/com/fr/design/mainframe/chart/gui/ChartTypeButtonPane.java

@ -23,7 +23,13 @@ import com.fr.stable.StringUtils;
import javax.swing.*; import javax.swing.*;
import java.awt.*; import java.awt.*;
import java.awt.event.*; import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.FocusEvent;
import java.awt.event.FocusListener;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.geom.Rectangle2D; import java.awt.geom.Rectangle2D;
import java.awt.image.BufferedImage; import java.awt.image.BufferedImage;
import java.util.ArrayList; import java.util.ArrayList;
@ -150,7 +156,7 @@ public class ChartTypeButtonPane extends BasicBeanPane<ChartCollection> implemen
UIMenuNameableCreator ui = configCreator.clone(); UIMenuNameableCreator ui = configCreator.clone();
final BasicBeanPane pane = ui.getPane(); final BasicBeanPane pane = ui.getPane();
pane.populateBean(editingCollection); pane.populateBean(editingCollection);
UIDialog dialog = pane.showUnsizedWindow(SwingUtilities.getWindowAncestor(new JPanel()), new DialogActionListener() { UIDialog dialog = pane.showUnsizedWindow(SwingUtilities.getWindowAncestor(parent), new DialogActionListener() {
@Override @Override
public void doOk() { public void doOk() {
pane.updateBean(editingCollection); pane.updateBean(editingCollection);

3
designer_chart/src/com/fr/plugin/chart/designer/other/AutoRefreshPane.java

@ -126,7 +126,7 @@ public class AutoRefreshPane extends BasicBeanPane<RefreshMoreLabel> {
final VanChartPlotTooltipPane pane = PlotFactory.createPlotRefreshTooltipPane(chart.getPlot()); final VanChartPlotTooltipPane pane = PlotFactory.createPlotRefreshTooltipPane(chart.getPlot());
pane.populate(chart.getRefreshMoreLabel().getAttrTooltip()); pane.populate(chart.getRefreshMoreLabel().getAttrTooltip());
UIDialog dialog = pane.showUnsizedWindow(SwingUtilities.getWindowAncestor(new JPanel()), new DialogActionListener() { UIDialog dialog = pane.showUnsizedWindow(SwingUtilities.getWindowAncestor(contentPane), new DialogActionListener() {
@Override @Override
public void doOk() { public void doOk() {
@ -138,6 +138,7 @@ public class AutoRefreshPane extends BasicBeanPane<RefreshMoreLabel> {
} }
}); });
dialog.setModal(true);
dialog.setVisible(true); dialog.setVisible(true);
} }
}); });

Loading…
Cancel
Save