1 45 46 package org.jfree.chart.event; 47 48 import java.util.EventObject ; 49 50 import org.jfree.chart.JFreeChart; 51 52 55 public class ChartChangeEvent extends EventObject { 56 57 58 private ChartChangeEventType type; 59 60 61 private JFreeChart chart; 62 63 69 public ChartChangeEvent(Object source) { 70 this(source, null, ChartChangeEventType.GENERAL); 71 } 72 73 80 public ChartChangeEvent(Object source, JFreeChart chart) { 81 this(source, chart, ChartChangeEventType.GENERAL); 82 } 83 84 92 public ChartChangeEvent(Object source, JFreeChart chart, 93 ChartChangeEventType type) { 94 super(source); 95 this.chart = chart; 96 this.type = type; 97 } 98 99 104 public JFreeChart getChart() { 105 return this.chart; 106 } 107 108 113 public void setChart(JFreeChart chart) { 114 this.chart = chart; 115 } 116 117 122 public ChartChangeEventType getType() { 123 return this.type; 124 } 125 126 131 public void setType(ChartChangeEventType type) { 132 this.type = type; 133 } 134 135 } 136 | Popular Tags |