public void makeChart(RepQuery paramRepQuery, Document paramDocument, Vector paramVector, String paramString1, String paramString2)
throws Exception
{
int i = paramRepQuery.getReportId().intValue();
RepDef localRepDef = RepDef.getDef(i);
Vector localVector1 = getColumnFrom(localRepDef.getChartLabelCol(), paramVector);
Vector localVector2 = getColumnFrom(localRepDef.getChartValueCol(), paramVector);
if (this.debug != null) {
System.out.println("BEFORE: new RepChart");
}
RepChart localRepChart = new RepChart(localRepDef, localVector1, localVector2);
if ((localRepChart == null) || (!localRepChart.isValid())) {
return;
}
if (this.debug != null) {
System.out.println("AFTER : new RepChart");
}
String str1 = NgetTempPath();
if (!str1.endsWith(File.separator)) {
str1 = new String(str1 + File.separator);
}
String str2 = localRepChart.writeAsTempGif(str1);
int j = Integer.parseInt(paramDocument.getNoteID(), 16);
if (this.debug != null) {
System.out.println("BEFORE: NputChartInDoc");
}
if (this.debug != null) {
System.out.println("File = " + str2);
}
NputChartInDoc(str2, j, paramString1, paramString2);
if (this.debug != null) {
System.out.println("AFTER : NputChartInDoc");
}
localRepChart.cleanUp();
localRepChart = null;
}
native void NputChartInDoc(String paramString1, int paramInt, String paramString2, String paramString3);