1 package JSci.awt; 2 3 import java.util.EventObject ; 4 5 10 public final class GraphDataEvent extends EventObject { 11 14 public static final int ALL_SERIES = -1; 15 16 private final int series; 17 private final boolean isIncremental; 18 19 22 public GraphDataEvent(Object src) { 23 this(src, ALL_SERIES, false); 24 } 25 29 public GraphDataEvent(Object src, int seriesChanged) { 30 this(src, seriesChanged, false); 31 } 32 38 public GraphDataEvent(Object src, int seriesChanged, boolean isIncrementalChange) { 39 super(src); 40 series = seriesChanged; 41 isIncremental = isIncrementalChange; 42 } 43 47 public int getSeries() { 48 return series; 49 } 50 54 public boolean isIncremental() { 55 return isIncremental; 56 } 57 } 58 59 | Popular Tags |