Package com.inet.report.chart
Class ChartConverter
java.lang.Object
com.inet.report.chart.ChartConverter
Use this class to convert the chart of type
OldChart
to Chart2
.
To get the old OldChart
object from a section set the configuration property 'OldChart API' to 'compliant up to version 7.x'.
Now you can use the old OldChart API. To convert the old chart to new Chart2
use this converter with replaceChart(OldChart)
.- Since:
- 8.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
compareSummaryFields
(SummaryField first, SummaryField second) Compares the sum properties of two sum fields.static void
convertChartToChart2
(com.inet.report.OldChart oldChart, Chart2 newChart) Duplicates the properties from chart of typeOldChart
to a chart of typeChart2
.static void
replaceChart
(com.inet.report.OldChart oldChart) Converts the chart of typeOldChart
toChart2
.
-
Constructor Details
-
ChartConverter
public ChartConverter()FOR INTERNAL USE ONLY
-
-
Method Details
-
replaceChart
public static void replaceChart(com.inet.report.OldChart oldChart) Converts the chart of typeOldChart
toChart2
. Removes the chart from parent section and replaces it with a correspondingChart2
.- Parameters:
oldChart
- the chart (null
not permitted)- Since:
- 8.0
-
convertChartToChart2
Duplicates the properties from chart of typeOldChart
to a chart of typeChart2
.- Parameters:
oldChart
- the chart of typeOldChart
(null
not permitted)newChart
- the chart of typeChart2
(null
not permitted)- Since:
- 8.0
-
compareSummaryFields
Compares the sum properties of two sum fields. The sum fields are equal if they have same fields and operations.- Parameters:
first
- the first field (null
not permitted)second
- the second field (null
not permitted)- Returns:
- the result
- Since:
- 11.0
-