|
|
|
@ -253,23 +253,15 @@ public class VanChartPlotLegendPane extends BasicPane {
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
customFloatPositionButton.addMouseListener(new MouseAdapter() { |
|
|
|
|
@Override |
|
|
|
|
public void mouseClicked(MouseEvent e) { |
|
|
|
|
if(!customFloatPositionButton.isSelected()){ |
|
|
|
|
customFloatPositionButton.setSelected(true); |
|
|
|
|
checkLayoutPaneVisible(); |
|
|
|
|
checkDisplayStrategyUse(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void mousePressed(MouseEvent e) { |
|
|
|
|
location.setSelectedIndex(-1); |
|
|
|
|
} |
|
|
|
|
@Override |
|
|
|
|
public void mouseReleased(MouseEvent e) { |
|
|
|
|
super.mouseReleased(e); |
|
|
|
|
|
|
|
|
|
location.setSelectedIndex(-1); |
|
|
|
|
customFloatPositionButton.setSelected(true); |
|
|
|
|
checkLayoutPaneVisible(); |
|
|
|
|
checkDisplayStrategyUse(); |
|
|
|
|
|
|
|
|
|
if(customFloatPositionPane == null) { |
|
|
|
|
customFloatPositionPane = new VanChartFloatPositionPane(); |
|
|
|
|
} |
|
|
|
|