summaryrefslogtreecommitdiff
path: root/src/bjc/imgchain/pipeline/stages/IDStage.java
blob: 93aaebdf00feec23ed8f512cc680b5b577fb8192 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
package bjc.imgchain.pipeline.stages;

import java.awt.Image;

import javax.swing.JComponent;
import javax.swing.JLabel;

import bjc.imgchain.pipeline.StageType;

/**
 * A pipeline stage that does nothing.
 * 
 * @author acm
 *
 */
public class IDStage extends AbstractPipelineStage {

	/**
	 * Create a new identity stage.
	 */
	public IDStage() {
		super(StageType.IMGTRANS);
	}

	@Override
	public String name() {
		return "Identity";
	}

	@Override
	public Image process(Image inp) {
		return inp;
	}

	@Override
	public String description() {
		return "Passes an image straight through.";
	}

	@Override
	public JComponent getEditor() {
		return new JLabel("Nothing to edit");
	}
}