1 42 43 package org.jfree.chart.labels; 44 45 import java.io.Serializable ; 46 import java.text.DateFormat ; 47 import java.text.NumberFormat ; 48 49 import org.jfree.data.category.CategoryDataset; 50 import org.jfree.util.PublicCloneable; 51 52 56 public class StandardCategoryItemLabelGenerator 57 extends AbstractCategoryItemLabelGenerator 58 implements CategoryItemLabelGenerator, Cloneable , PublicCloneable, 59 Serializable { 60 61 62 private static final long serialVersionUID = 3499701401211412882L; 63 64 65 public static final String DEFAULT_LABEL_FORMAT_STRING = "{2}"; 66 67 70 public StandardCategoryItemLabelGenerator() { 71 super(DEFAULT_LABEL_FORMAT_STRING, NumberFormat.getInstance()); 72 } 73 74 81 public StandardCategoryItemLabelGenerator(String labelFormat, 82 NumberFormat formatter) { 83 super(labelFormat, formatter); 84 } 85 86 93 public StandardCategoryItemLabelGenerator(String labelFormat, 94 DateFormat formatter) { 95 super(labelFormat, formatter); 96 } 97 98 109 public String generateLabel(CategoryDataset dataset, int row, int column) { 110 return generateLabelString(dataset, row, column); 111 } 112 113 } 114 | Popular Tags |