1 32 33 package it.businesslogic.ireport.chart; 34 35 import it.businesslogic.ireport.*; 36 37 41 public class ChartTitle { 42 43 private IReportFont font = null; 44 45 private String titleExpression = ""; 46 47 private java.awt.Color color = java.awt.Color.BLACK; 48 49 private String position = "Top"; 50 51 52 public ChartTitle(String title) { 53 54 this.titleExpression = title; 55 } 56 57 public IReportFont getFont() { 58 return font; 59 } 60 61 public void setFont(IReportFont font) { 62 this.font = font; 63 } 64 65 public String getTitleExpression() { 66 return titleExpression; 67 } 68 69 public void setTitleExpression(String titleExpression) { 70 this.titleExpression = titleExpression; 71 } 72 73 public java.awt.Color getColor() { 74 return color; 75 } 76 77 public void setColor(java.awt.Color color) { 78 this.color = color; 79 } 80 81 public String getPosition() { 82 return position; 83 } 84 85 public void setPosition(String position) { 86 this.position = position; 87 } 88 89 public ChartTitle cloneMe() { 90 91 ChartTitle ct = new ChartTitle(getTitleExpression()); 92 if (getFont() != null) ct.setFont( (IReportFont)getFont().clone() ); 93 if (getColor() != null) ct.setColor( new java.awt.Color ( getColor().getRGB() )); 94 ct.setPosition( new String ( getPosition())); 95 ct.position = position; 96 97 return ct; 98 } 99 } 100 | Popular Tags |