/* JRG, the Resource Geology Seismic Processing System for Java, and Viewmat for Java are Copyright 1998-2006 by John N. Louie The software and methods here are the subject of academic research, not commercial products. I would like to know what use you make of my methods, and have your feedback on their success or failure. Also, by letting me know who you are, I can inform you if bugs or errors are discovered. Please send me an email message with: your name and email address; whether you are a student or faculty member, consultant or employee; the name of your university or company, and department; and a sentence or two describing what use you intend to make of these methods. Send your message to louie@seismo.unr.edu */ public class MethodRun /*implements java.lang.Runnable removed 4/10/06 to work around MacOS 10.4 bug */ { FltPlane fp; FltVol fvol; String title; String dir; boolean rowsdown, positive; float ve, clip; RgRGB[] ctab; public void run() { if (fvol == null) fp.viewinFrame(title, rowsdown, ve, ctab, positive, clip); else fvol.viewinFrame(title, rowsdown, ve, ctab, positive, clip); } MethodRun(FltPlane fp, String title, boolean rowsdown, float ve, RgRGB[] ctab, boolean positive, float clip) { this.title = new String(title); this.dir = new String(""); this.fp = new FltPlane(fp); this.fvol = null; this.rowsdown = rowsdown; this.ve = ve; this.ctab = ctab; this.positive = positive; this.clip = clip; } MethodRun(FltVol fvol, String title, boolean rowsdown, float ve, RgRGB[] ctab, boolean positive, float clip) { this.title = new String(title); this.dir = new String(""); this.fp = null; this.fvol = new FltVol(fvol); this.rowsdown = rowsdown; this.ve = ve; this.ctab = ctab; this.positive = positive; this.clip = clip; } MethodRun(FltPlane fp, String dir, String title, boolean rowsdown, float ve, RgRGB[] ctab, boolean positive, float clip) { this.title = new String(title); if (dir == null) this.dir = ""; else this.dir = new String(dir); this.fp = new FltPlane(fp); this.fvol = null; this.rowsdown = rowsdown; this.ve = ve; this.ctab = ctab; this.positive = positive; this.clip = clip; } MethodRun(FltVol fvol, String dir, String title, boolean rowsdown, float ve, RgRGB[] ctab, boolean positive, float clip) { this.title = new String(title); if (dir == null) this.dir = ""; else this.dir = new String(dir); this.fp = null; this.fvol = new FltVol(fvol); this.rowsdown = rowsdown; this.ve = ve; this.ctab = ctab; this.positive = positive; this.clip = clip; } }