1 42 43 package org.jfree.chart.entity; 44 45 import java.awt.Shape ; 46 47 import org.jfree.chart.axis.CategoryAxis; 48 49 54 public class CategoryLabelEntity extends TickLabelEntity { 55 56 57 private Comparable key; 58 59 67 public CategoryLabelEntity(Comparable key, Shape area, 68 String toolTipText, String urlText) { 69 super(area, toolTipText, urlText); 70 this.key = key; 71 } 72 73 78 public Comparable getKey() { 79 return this.key; 80 } 81 82 88 public String toString() { 89 StringBuffer buf = new StringBuffer ("CategoryLabelEntity: "); 90 buf.append("category="); 91 buf.append(this.key); 92 buf.append(", tooltip=" + getToolTipText()); 93 buf.append(", url=" + getURLText()); 94 return buf.toString(); 95 } 96 } 97 | Popular Tags |