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 AxisFormat { 43 44 private java.awt.Color labelColor = null; 45 private java.awt.Color tickLabelColor = null; 46 private java.awt.Color axisLineColor = null; 47 private String tickLabelMask = ""; 48 private IReportFont labelFont = null; 49 private IReportFont tickLabelFont = null; 50 51 52 public AxisFormat cloneMe() 53 { 54 AxisFormat af = new AxisFormat(); 55 if (labelColor != null) af.setLabelColor( new Color ( labelColor.getRGB() )); 56 if (tickLabelColor != null) af.setTickLabelColor( new Color ( tickLabelColor.getRGB() )); 57 if (axisLineColor != null) af.setAxisLineColor( new Color ( axisLineColor.getRGB() )); 58 af.setTickLabelMask(tickLabelMask); 59 if (labelFont != null) af.setLabelFont( (IReportFont)labelFont.clone()); 60 if (tickLabelFont != null) af.setTickLabelFont( (IReportFont)tickLabelFont.clone()); 61 62 return af; 63 } 64 65 66 public AxisFormat() { 67 } 68 69 public java.awt.Color getLabelColor() { 70 return labelColor; 71 } 72 73 public void setLabelColor(java.awt.Color labelColor) { 74 this.labelColor = labelColor; 75 } 76 77 public java.awt.Color getTickLabelColor() { 78 return tickLabelColor; 79 } 80 81 public void setTickLabelColor(java.awt.Color tickLabelColor) { 82 this.tickLabelColor = tickLabelColor; 83 } 84 85 public java.awt.Color getAxisLineColor() { 86 return axisLineColor; 87 } 88 89 public void setAxisLineColor(java.awt.Color axisLineColor) { 90 this.axisLineColor = axisLineColor; 91 } 92 93 public String getTickLabelMask() { 94 return tickLabelMask; 95 } 96 97 public void setTickLabelMask(String tickLabelMask) { 98 this.tickLabelMask = tickLabelMask; 99 } 100 101 public IReportFont getLabelFont() { 102 return labelFont; 103 } 104 105 public void setLabelFont(IReportFont labelFont) { 106 this.labelFont = labelFont; 107 } 108 109 public IReportFont getTickLabelFont() { 110 return tickLabelFont; 111 } 112 113 public void setTickLabelFont(IReportFont tickLabelFont) { 114 this.tickLabelFont = tickLabelFont; 115 } 116 117 } 118 | Popular Tags |