View Javadoc
1 /* 2 * RenderEvent.java 3 * 4 * Created on 09. Februar 2002, 20:00 5 * 6 * Licensed under GNU General Public License (GPL). 7 * See http://www.gnu.org/copyleft/gpl.html 8 */ 9 10 package edu.psu.geovista.app.parvis.gui; 11 12 /*** 13 * 14 * @author flo 15 * @version 16 */ 17 public class ProgressEvent extends java.util.EventObject { 18 19 // type constants 20 public static final int PROGRESS_START = 0; 21 public static final int PROGRESS_UPDATE = 1; 22 public static final int PROGRESS_FINISH = 2; 23 public static final int PROGRESS_CANCEL = 3; 24 25 private int type; 26 private float progress = 0.0f; 27 private long timestamp; 28 private String message; 29 30 /*** Creates new RenderEvent */ 31 public ProgressEvent(Object source, int type) { 32 this(source, type, 0.0f); 33 } 34 35 public ProgressEvent(Object source, int type, float progress) { 36 this(source, type, progress, null); 37 } 38 39 public ProgressEvent(Object source, int type, float progress, String message) { 40 super(source); 41 this.type = type; 42 this.progress = progress; 43 this.message = message; 44 45 this.timestamp = System.currentTimeMillis(); 46 } 47 48 public int getType(){ 49 return type; 50 } 51 52 public long getTimestamp(){ 53 return timestamp; 54 } 55 56 public float getProgress(){ 57 return progress; 58 } 59 60 public String getMessage(){ 61 return message; 62 } 63 64 }

This page was automatically generated by Maven