Examples of DivaMainImageDisplay


Examples of jsky.image.gui.DivaMainImageDisplay

        SwingUtilities.invokeLater(new Runnable() {
            public void run() {
                final ImageDisplayControlFrame frame = new ImageDisplayControlFrame(null);
                frame.setVisible(true);
                ImageDisplayControl control = frame.getImageDisplayControl();
                DivaMainImageDisplay imageDisplay = control.getImageDisplay();
                DivaImageGraphics g = (DivaImageGraphics)imageDisplay.getCanvasGraphics();

                // Create some interactors, which determine how you can interact with the figure
                // by selecting, dragging, resizing or rotating

                // plain selection: displays 4 blue grab handles on the figure when selected
View Full Code Here

Examples of jsky.image.gui.DivaMainImageDisplay

    /**
     * test main: usage: java GraphicsImageDisplay <filename>.
     */
    public static void main(String[] args) {
        JFrame frame = new JFrame("ImageGraphicsMenu");
        DivaMainImageDisplay imageDisplay = new DivaMainImageDisplay();
        if (args.length > 0) {
            try {
                imageDisplay.setFilename(args[0]);
            } catch (Exception e) {
                System.out.println("error: " + e.toString());
                System.exit(1);
            }
        }
View Full Code Here

Examples of jsky.image.gui.DivaMainImageDisplay

     * @param imageId optional: identifier which may be used to refer to the loaded image in subsequent message
     * @param name    optional: name which may be used to label the loaded image in the application GUI
     * @throws Exception on error
     */
    protected void imageLoadFits(URL url, String imageId, String name) throws Exception {
        DivaMainImageDisplay imageDisplay = _imageFrame.getImageDisplayControl().getImageDisplay();
        imageDisplay.setURL(url);
//        imageDisplay.setImageId(imageId); TODO imageId is not used anywhere yet
    }
View Full Code Here

Examples of jsky.image.gui.DivaMainImageDisplay

     * @param ra  right ascension in degrees
     * @param dec declination in degrees
     * @throws Exception on error
     */
    protected void coordPointAtSky(double ra, double dec) throws Exception {
        DivaMainImageDisplay imageDisplay = _imageFrame.getImageDisplayControl().getImageDisplay();
        imageDisplay.loadCachedImage(ra, dec);
    }
View Full Code Here

Examples of jsky.image.gui.DivaMainImageDisplay

     * @throws java.io.IOException on error
     */
    @SuppressWarnings({"UnusedDeclaration"})
    private void fitsLoadImage(URI sender, String urlStr, String id)
            throws IOException {
        DivaMainImageDisplay imageDisplay = _imageFrame.getImageDisplayControl().getImageDisplay();
        imageDisplay.setURL(new URL(urlStr));
    }
View Full Code Here

Examples of jsky.image.gui.DivaMainImageDisplay

     *
     * @param ra right ascension in degrees
     * @param dec declination in degrees
     */
    protected void skyPoint(double ra, double dec) {
        DivaMainImageDisplay imageDisplay = _imageFrame.getImageDisplayControl().getImageDisplay();
        imageDisplay.loadCachedImage(ra, dec);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.