1 41 42 package org.jfree.chart.event; 43 44 import org.jfree.chart.JFreeChart; 45 46 50 public class ChartProgressEvent extends java.util.EventObject { 51 52 53 public static final int DRAWING_STARTED = 1; 54 55 56 public static final int DRAWING_FINISHED = 2; 57 58 59 private int type; 60 61 62 private int percent; 63 64 65 private JFreeChart chart; 66 67 76 public ChartProgressEvent(Object source, JFreeChart chart, int type, 77 int percent) { 78 super(source); 79 this.chart = chart; 80 this.type = type; 81 } 82 83 88 public JFreeChart getChart() { 89 return this.chart; 90 } 91 92 97 public void setChart(JFreeChart chart) { 98 this.chart = chart; 99 } 100 101 106 public int getType() { 107 return this.type; 108 } 109 110 115 public void setType(int type) { 116 this.type = type; 117 } 118 119 124 public int getPercent() { 125 return this.percent; 126 } 127 128 133 public void setPercent(int percent) { 134 this.percent = percent; 135 } 136 137 } 138 | Popular Tags |