diff options
| author | Benjamin Culkin <bjculkin@mix.wvu.edu> | 2018-04-27 15:40:15 -0700 |
|---|---|---|
| committer | Benjamin Culkin <bjculkin@mix.wvu.edu> | 2018-04-27 15:40:15 -0700 |
| commit | 251389fde5a3ae708d61d113bb55d934729f18db (patch) | |
| tree | 2ad6ca4a374df7816094abab96d15d3102ba9984 /src/bjc/imgchain/ImgPipeline.java | |
| parent | a390222aeb0c5bf6982108e6fc0b492e97e43b39 (diff) | |
Fix bugs
Diffstat (limited to 'src/bjc/imgchain/ImgPipeline.java')
| -rw-r--r-- | src/bjc/imgchain/ImgPipeline.java | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/bjc/imgchain/ImgPipeline.java b/src/bjc/imgchain/ImgPipeline.java index 0e4a7d9..ff67679 100644 --- a/src/bjc/imgchain/ImgPipeline.java +++ b/src/bjc/imgchain/ImgPipeline.java @@ -93,12 +93,14 @@ public class ImgPipeline extends JInternalFrame { stageEditor.removeAll();
- stageEditor.add(stag.getEditor(), BorderLayout.CENTER);
- border.setTitle(stag.name());
+ if (stag != null) {
+ stageEditor.add(stag.getEditor(), BorderLayout.CENTER);
+ border.setTitle(stag.name());
+ }
stageEditor.repaint();
});
-
+
JScrollPane stageScroll = new JScrollPane(stageList);
JPanel listPanel = new JPanel();
@@ -148,6 +150,7 @@ public class ImgPipeline extends JInternalFrame { */
stag = new ColorSkewStage(.393, .769, .189, .349, .686, .168, .272, .534, .131);
}
+ break;
case "Negative": {
stag = new NegativeStage();
}
@@ -160,7 +163,7 @@ public class ImgPipeline extends JInternalFrame { stag = new BrightnessStage();
}
break;
- case "Threshold": {
+ case "Colorized Threshold": {
stag = new ThresholdStage();
}
break;
|
