first commit

This commit is contained in:
2025-07-28 13:56:49 +05:30
commit e9eb805edb
3438 changed files with 520990 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
package net.sf.jasperreports.charts.util;
import java.io.Serializable;
import java.text.AttributedString;
import java.util.Map;
import org.jfree.chart.labels.PieSectionLabelGenerator;
import org.jfree.data.general.PieDataset;
public class PieLabelGenerator implements PieSectionLabelGenerator, Serializable {
private static final long serialVersionUID = 10200L;
private Map labels = null;
public PieLabelGenerator(Map labels) {
this.labels = labels;
}
public String generateSectionLabel(PieDataset arg0, Comparable arg1) {
return (String)this.labels.get(arg1);
}
public AttributedString generateAttributedSectionLabel(PieDataset arg0, Comparable arg1) {
return new AttributedString(generateSectionLabel(arg0, arg1));
}
}