package com.redpois0n.gscrot;

import java.awt.image.BufferedImage;

import com.redpois0n.gscrot.actions.AfterCaptureAction;
import com.redpois0n.gscrot.ui.MainFrame;

public class Capture extends Thread {
	
	public static enum Type {
		REGION("Region"), 
		MONITOR("Monitor"), 
		FULL("Fullscreen");
		
		private String textual;
		
		private Type(String textual) {
			this.textual = textual;
		}
		
		@Override
		public String toString() {
			return this.textual;
		}
	}
	
	private final Type type;
	private final BufferedImage image;
	
	public Capture(Type type, BufferedImage image) {
		this.type = type;
		this.image = image;
	}
	
	@Override
	public void run() {
		MainFrame.INSTANCE.add(this);
		
		for (AfterCaptureAction aca : AfterCaptureAction.actions) {
			
		}
	}
	
	public Type getType() {
		return type;
	}

	public BufferedImage getImage() {
		return image;
	}
}

@@ -628,16 +628,63 @@
 e;%0A%09%7D%0A%09%0A
+%09/**%0A%09 * Called after screenshot is taken%0A%09 */%0A
 %09@Overri
@@ -807,16 +807,35 @@
 s) %7B%0A%09%09%09
+aca.process(image);
 %0A%09%09%7D%0A%09%7D%0A

processes all actions