* test main: usage: java GraphicsImageDisplay <filename>.
* @param args optional image file name
*/
public static void main(String[] args) {
JFrame frame = new JFrame("GraphicsImageDisplay");
DivaGraphicsImageDisplay imageDisplay = new DivaGraphicsImageDisplay();
if (args.length > 0) {
try {
imageDisplay.setImage(JAI.create("fileload", args[0]));
} catch (Exception e) {
System.out.println("error: " + e.toString());
System.exit(1);
}
} else {
imageDisplay.blankImage(0, 0);
}
new MeasureBand(imageDisplay);
frame.getContentPane().add(imageDisplay, BorderLayout.CENTER);