|
|
@ -53,7 +53,7 @@ public class BackgroundListControlPane extends VanChartUIListControlPane { |
|
|
|
VanChartRectanglePlot rectanglePlot = (VanChartRectanglePlot) plot; |
|
|
|
VanChartRectanglePlot rectanglePlot = (VanChartRectanglePlot) plot; |
|
|
|
List<VanChartAxis> xAxisList = rectanglePlot.getXAxisList(); |
|
|
|
List<VanChartAxis> xAxisList = rectanglePlot.getXAxisList(); |
|
|
|
List<VanChartAxis> yAxisList = rectanglePlot.getYAxisList(); |
|
|
|
List<VanChartAxis> yAxisList = rectanglePlot.getYAxisList(); |
|
|
|
String[] axisNames = DefaultAxisHelper.getAllAxisNames(xAxisList, yAxisList); |
|
|
|
String[] axisNames = DefaultAxisHelper.getAllAxisNames(rectanglePlot); |
|
|
|
|
|
|
|
|
|
|
|
BackgroundNameObjectCreator[] creators = {new BackgroundNameObjectCreator(getCustomIntervalBackgroundAxisName(axisNames), Inter.getLocText("Plugin-ChartF_CustomIntervalBackground"), VanChartCustomIntervalBackground.class, getIntervalPaneClass())}; |
|
|
|
BackgroundNameObjectCreator[] creators = {new BackgroundNameObjectCreator(getCustomIntervalBackgroundAxisName(axisNames), Inter.getLocText("Plugin-ChartF_CustomIntervalBackground"), VanChartCustomIntervalBackground.class, getIntervalPaneClass())}; |
|
|
|
|
|
|
|
|
|
|
@ -66,7 +66,7 @@ public class BackgroundListControlPane extends VanChartUIListControlPane { |
|
|
|
List<VanChartCustomIntervalBackground> customIntervalBackgrounds = axis.getCustomIntervalBackgroundArray(); |
|
|
|
List<VanChartCustomIntervalBackground> customIntervalBackgrounds = axis.getCustomIntervalBackgroundArray(); |
|
|
|
for (VanChartCustomIntervalBackground background : customIntervalBackgrounds) { |
|
|
|
for (VanChartCustomIntervalBackground background : customIntervalBackgrounds) { |
|
|
|
background.setAxisNamesArray(axisNames); |
|
|
|
background.setAxisNamesArray(axisNames); |
|
|
|
background.setAxisName(axis.getAxisName()); |
|
|
|
background.setAxisName(rectanglePlot.getXAxisName(axis)); |
|
|
|
nameObjects.add(new NameObject(background.getCustomIntervalBackgroundSelectName(), background)); |
|
|
|
nameObjects.add(new NameObject(background.getCustomIntervalBackgroundSelectName(), background)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -75,7 +75,7 @@ public class BackgroundListControlPane extends VanChartUIListControlPane { |
|
|
|
List<VanChartCustomIntervalBackground> customIntervalBackgrounds = axis.getCustomIntervalBackgroundArray(); |
|
|
|
List<VanChartCustomIntervalBackground> customIntervalBackgrounds = axis.getCustomIntervalBackgroundArray(); |
|
|
|
for (VanChartCustomIntervalBackground background : customIntervalBackgrounds) { |
|
|
|
for (VanChartCustomIntervalBackground background : customIntervalBackgrounds) { |
|
|
|
background.setAxisNamesArray(axisNames); |
|
|
|
background.setAxisNamesArray(axisNames); |
|
|
|
background.setAxisName(axis.getAxisName()); |
|
|
|
background.setAxisName(rectanglePlot.getYAxisName(axis)); |
|
|
|
nameObjects.add(new NameObject(background.getCustomIntervalBackgroundSelectName(), background)); |
|
|
|
nameObjects.add(new NameObject(background.getCustomIntervalBackgroundSelectName(), background)); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -102,7 +102,7 @@ public class BackgroundListControlPane extends VanChartUIListControlPane { |
|
|
|
if (!isDefaultIntervalBackground) { |
|
|
|
if (!isDefaultIntervalBackground) { |
|
|
|
for (int i = 0; i < nameables.length; i++) { |
|
|
|
for (int i = 0; i < nameables.length; i++) { |
|
|
|
VanChartCustomIntervalBackground value = (VanChartCustomIntervalBackground) ((NameObject) nameables[i]).getObject(); |
|
|
|
VanChartCustomIntervalBackground value = (VanChartCustomIntervalBackground) ((NameObject) nameables[i]).getObject(); |
|
|
|
if (ComparatorUtils.equals(value.getAxisName(), axis.getAxisName())) { |
|
|
|
if (ComparatorUtils.equals(value.getAxisName(), rectanglePlot.getXAxisName(axis))) { |
|
|
|
value.setCustomIntervalBackgroundSelectName(nameables[i].getName()); |
|
|
|
value.setCustomIntervalBackgroundSelectName(nameables[i].getName()); |
|
|
|
axisCustomBackground.add(value); |
|
|
|
axisCustomBackground.add(value); |
|
|
|
} |
|
|
|
} |
|
|
@ -115,7 +115,7 @@ public class BackgroundListControlPane extends VanChartUIListControlPane { |
|
|
|
if (!isDefaultIntervalBackground) { |
|
|
|
if (!isDefaultIntervalBackground) { |
|
|
|
for (int i = 0; i < nameables.length; i++) { |
|
|
|
for (int i = 0; i < nameables.length; i++) { |
|
|
|
VanChartCustomIntervalBackground value = (VanChartCustomIntervalBackground) ((NameObject) nameables[i]).getObject(); |
|
|
|
VanChartCustomIntervalBackground value = (VanChartCustomIntervalBackground) ((NameObject) nameables[i]).getObject(); |
|
|
|
if (ComparatorUtils.equals(value.getAxisName(), axis.getAxisName())) { |
|
|
|
if (ComparatorUtils.equals(value.getAxisName(), rectanglePlot.getYAxisName(axis))) { |
|
|
|
value.setCustomIntervalBackgroundSelectName(nameables[i].getName()); |
|
|
|
value.setCustomIntervalBackgroundSelectName(nameables[i].getName()); |
|
|
|
axisCustomBackground.add(value); |
|
|
|
axisCustomBackground.add(value); |
|
|
|
} |
|
|
|
} |
|
|
|