1 32 33 package it.businesslogic.ireport.chart; 34 35 import it.businesslogic.ireport.*; 36 37 41 public class ChartLegend { 42 43 private IReportFont font = null; 44 45 private java.awt.Color textColor = java.awt.Color.BLACK; 46 private java.awt.Color backgroundColor = java.awt.Color.WHITE; 47 48 49 50 public ChartLegend() { 51 } 52 53 public IReportFont getFont() { 54 return font; 55 } 56 57 public void setFont(IReportFont font) { 58 this.font = font; 59 } 60 61 62 public ChartLegend cloneMe() { 63 64 ChartLegend ct = new ChartLegend(); 65 if (getFont() != null) ct.setFont( (IReportFont)getFont().clone() ); 66 if (getBackgroundColor() != null) ct.setBackgroundColor( new java.awt.Color ( getBackgroundColor().getRGB() )); 67 if (getTextColor() != null) ct.setTextColor( new java.awt.Color ( getTextColor().getRGB() )); 68 69 return ct; 70 } 71 72 public java.awt.Color getTextColor() { 73 return textColor; 74 } 75 76 public void setTextColor(java.awt.Color textColor) { 77 this.textColor = textColor; 78 } 79 80 public java.awt.Color getBackgroundColor() { 81 return backgroundColor; 82 } 83 84 public void setBackgroundColor(java.awt.Color backgroundColor) { 85 this.backgroundColor = backgroundColor; 86 } 87 } 88 | Popular Tags |