1 28 package net.sf.jasperreports.charts.base; 29 30 import net.sf.jasperreports.charts.JRValueDisplay; 31 import net.sf.jasperreports.engine.JRConstants; 32 import net.sf.jasperreports.engine.JRExpressionCollector; 33 import net.sf.jasperreports.engine.JRFont; 34 import net.sf.jasperreports.engine.base.JRBaseObjectFactory; 35 36 import java.awt.Color ; 37 import java.io.Serializable ; 38 39 47 public class JRBaseValueDisplay implements JRValueDisplay, Serializable 48 { 49 50 51 54 private static final long serialVersionUID = JRConstants.SERIAL_VERSION_UID; 55 56 59 protected Color color = null; 60 61 65 protected String mask = null; 66 67 70 protected JRFont font = null; 71 72 73 78 public JRBaseValueDisplay(JRValueDisplay valueDisplay) 79 { 80 if (valueDisplay != null) 81 { 82 color = valueDisplay.getColor(); 83 mask = valueDisplay.getMask(); 84 font = valueDisplay.getFont(); 85 } 86 } 87 88 95 public JRBaseValueDisplay(JRValueDisplay valueDisplay, JRBaseObjectFactory factory) 96 { 97 factory.put(valueDisplay, this); 98 99 if (valueDisplay != null) 100 { 101 color = valueDisplay.getColor(); 102 mask = valueDisplay.getMask(); 103 font = valueDisplay.getFont(); 104 } 105 } 106 107 108 111 public Color getColor() 112 { 113 return color; 114 } 115 118 public String getMask() 119 { 120 return mask; 121 } 122 125 public JRFont getFont() 126 { 127 return font; 128 } 129 130 137 public void collectExpressions(JRExpressionCollector collector) 138 { 139 } 140 141 } 142 | Popular Tags |