|
|
|
@ -32,6 +32,7 @@ import com.fr.van.chart.designer.component.border.VanChartBorderWithRadiusPane;
|
|
|
|
|
|
|
|
|
|
import javax.swing.Icon; |
|
|
|
|
import javax.swing.JPanel; |
|
|
|
|
import javax.swing.SwingUtilities; |
|
|
|
|
import javax.swing.event.ChangeEvent; |
|
|
|
|
import javax.swing.event.ChangeListener; |
|
|
|
|
import java.awt.BorderLayout; |
|
|
|
@ -153,7 +154,7 @@ public class VanChartPlotLegendPane extends BasicPane {
|
|
|
|
|
return FineLayoutBuilder.asBorderLayoutWrapped(column); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected VanChartBackgroundPane creatBackgroundPane(){ |
|
|
|
|
protected VanChartBackgroundPane creatBackgroundPane() { |
|
|
|
|
return new VanChartBackgroundWithOutImagePane(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -252,21 +253,22 @@ public class VanChartPlotLegendPane extends BasicPane {
|
|
|
|
|
customFloatPositionButton.setSelected(true); |
|
|
|
|
checkLayoutPaneVisible(); |
|
|
|
|
checkDisplayStrategyUse(); |
|
|
|
|
|
|
|
|
|
if (customFloatPositionPane == null) { |
|
|
|
|
customFloatPositionPane = new VanChartFloatPositionPane(); |
|
|
|
|
} |
|
|
|
|
if (uiBubbleFloatPane == null) { |
|
|
|
|
Point comPoint = customFloatPositionButton.getLocationOnScreen(); |
|
|
|
|
Point arrowPoint = new Point(comPoint.x + customFloatPositionButton.getWidth() / 2 - GAP, comPoint.y + customFloatPositionButton.getHeight()); |
|
|
|
|
uiBubbleFloatPane = new UIBubbleFloatPane(Constants.TOP, arrowPoint, customFloatPositionPane, WIDTH, HEIGHT) { |
|
|
|
|
@Override |
|
|
|
|
public void updateContentPane() { |
|
|
|
|
parent.attributeChanged(); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
uiBubbleFloatPane.show(VanChartPlotLegendPane.this, null); |
|
|
|
|
SwingUtilities.invokeLater(() -> { |
|
|
|
|
if (customFloatPositionPane == null) { |
|
|
|
|
customFloatPositionPane = new VanChartFloatPositionPane(); |
|
|
|
|
} |
|
|
|
|
if (uiBubbleFloatPane == null) { |
|
|
|
|
Point comPoint = customFloatPositionButton.getLocationOnScreen(); |
|
|
|
|
Point arrowPoint = new Point(comPoint.x + customFloatPositionButton.getWidth() / 2 - GAP, comPoint.y + customFloatPositionButton.getHeight()); |
|
|
|
|
uiBubbleFloatPane = new UIBubbleFloatPane(Constants.TOP, arrowPoint, customFloatPositionPane, WIDTH, HEIGHT) { |
|
|
|
|
@Override |
|
|
|
|
public void updateContentPane() { |
|
|
|
|
parent.attributeChanged(); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
uiBubbleFloatPane.show(VanChartPlotLegendPane.this, null); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|