Package jsky.image.gui

Examples of jsky.image.gui.DivaGraphicsImageDisplay


    /**
     * test main: usage: java GraphicsImageDisplay <filename>.
     */
    public static void main(String[] args) {
        JFrame frame = new JFrame("GraphicsImageDisplay");
        DivaGraphicsImageDisplay imageDisplay = new DivaGraphicsImageDisplay();
        imageDisplay.clear();

        // Add some test objects
        DivaImageGraphics g = new DivaImageGraphics(imageDisplay);
        SelectionInteractor si = g.getSelectionInteractor();

View Full Code Here


     * 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);
View Full Code Here

TOP

Related Classes of jsky.image.gui.DivaGraphicsImageDisplay

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.