|
|
|
@ -209,9 +209,9 @@ public class VanChartInteractivePane extends AbstractVanChartScrollPane<Chart> {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void createChangeEnablePane(VanChartRectanglePlot plot) { |
|
|
|
|
String scroll = Toolkit.i18nText("Fine-Design_Chart_Scroll"); |
|
|
|
|
String scaleAxis = Toolkit.i18nText("Fine-Design_Chart_Scale_Axis"); |
|
|
|
|
controlType = new UIButtonGroup<>(new String[]{scroll, scaleAxis}, ControlType.values()); |
|
|
|
|
String scroll = Toolkit.i18nText("Fine-Design_Chart_Scroll"); |
|
|
|
|
controlType = new UIButtonGroup<>(new String[]{scaleAxis, scroll}, ControlType.values()); |
|
|
|
|
JPanel scaleAxisPane = createScaleAxisPane(); |
|
|
|
|
JPanel scrollPane = createScrollPane(plot); |
|
|
|
|
|
|
|
|
@ -225,8 +225,8 @@ public class VanChartInteractivePane extends AbstractVanChartScrollPane<Chart> {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
centerPane.add(scaleAxisPane, scroll); |
|
|
|
|
centerPane.add(scrollPane, scaleAxis); |
|
|
|
|
centerPane.add(scaleAxisPane, scaleAxis); |
|
|
|
|
centerPane.add(scrollPane, scroll); |
|
|
|
|
|
|
|
|
|
double p = TableLayout.PREFERRED; |
|
|
|
|
double f = TableLayout.FILL; |
|
|
|
@ -291,9 +291,9 @@ public class VanChartInteractivePane extends AbstractVanChartScrollPane<Chart> {
|
|
|
|
|
if (centerPane != null && controlType != null) { |
|
|
|
|
CardLayout cardLayout = (CardLayout) centerPane.getLayout(); |
|
|
|
|
if (controlType.getSelectedItem() == ControlType.ZOOM) { |
|
|
|
|
cardLayout.show(centerPane, Toolkit.i18nText("Fine-Design_Chart_Scroll")); |
|
|
|
|
} else { |
|
|
|
|
cardLayout.show(centerPane, Toolkit.i18nText("Fine-Design_Chart_Scale_Axis")); |
|
|
|
|
} else { |
|
|
|
|
cardLayout.show(centerPane, Toolkit.i18nText("Fine-Design_Chart_Scroll")); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|