Package com.inet.report.chart
Class ChartConverter
- java.lang.Object
-
- com.inet.report.chart.ChartConverter
-
public class ChartConverter extends java.lang.ObjectUse this class to convert the chart of typeOldCharttoChart2. To get the oldOldChartobject 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 newChart2use this converter withreplaceChart(OldChart).- Since:
- 8.0
-
-
Constructor Summary
Constructors Constructor Description ChartConverter()FOR INTERNAL USE ONLY
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleancompareSummaryFields(SummaryField first, SummaryField second)Compares the sum properties of two sum fields.static voidconvertChartToChart2(com.inet.report.OldChart oldChart, Chart2 newChart)Duplicates the properties from chart of typeOldChartto a chart of typeChart2.static voidreplaceChart(com.inet.report.OldChart oldChart)Converts the chart of typeOldCharttoChart2.
-
-
-
Method Detail
-
replaceChart
public static void replaceChart(com.inet.report.OldChart oldChart)
Converts the chart of typeOldCharttoChart2. Removes the chart from parent section and replaces it with a correspondingChart2.- Parameters:
oldChart- the chart (nullnot permitted)- Since:
- 8.0
-
convertChartToChart2
public static void convertChartToChart2(com.inet.report.OldChart oldChart, Chart2 newChart)Duplicates the properties from chart of typeOldChartto a chart of typeChart2.- Parameters:
oldChart- the chart of typeOldChart(nullnot permitted)newChart- the chart of typeChart2(nullnot permitted)- Since:
- 8.0
-
compareSummaryFields
public static boolean compareSummaryFields(SummaryField first, SummaryField second)
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 (nullnot permitted)second- the second field (nullnot permitted)- Returns:
- the result
- Since:
- 11.0
-
-