1 32 33 package it.businesslogic.ireport.chart; 34 35 import it.businesslogic.ireport.IReportFont; 36 import java.awt.Color ; 37 38 42 public class ValueDisplay { 43 44 private IReportFont font = null; 45 private java.awt.Color color = null; 46 private String mask = ""; 47 48 49 public ValueDisplay() { 50 } 51 52 public ValueDisplay cloneMe() 53 { 54 ValueDisplay obj = new ValueDisplay(); 55 if (font != null) obj.setFont( (IReportFont)font.clone() ); 56 if (color != null) obj.setColor( new Color ( color.getRGB() )); 57 obj.setMask( new String (getMask()) ); 58 return obj; 59 } 60 61 public IReportFont getFont() { 62 return font; 63 } 64 65 public void setFont(IReportFont font) { 66 this.font = font; 67 } 68 69 public java.awt.Color getColor() { 70 return color; 71 } 72 73 public void setColor(java.awt.Color color) { 74 this.color = color; 75 } 76 77 public String getMask() { 78 return mask; 79 } 80 81 public void setMask(String mask) { 82 this.mask = mask; 83 } 84 85 } 86 | Popular Tags |