Examples of ImageCanvas


Examples of com.sshtools.ui.awt.ImageCanvas

        setLayout(new BorderLayout());

        URL loc = new URL(getCodeBase().toExternalForm() + launcherImage);       
        Image img = Toolkit.getDefaultToolkit().getImage(loc);
        if(img != null) {
            ImageCanvas ic = new ImageCanvas(UIUtil.waitFor(img, this));
            ic.setValign(ImageCanvas.CENTER_ALIGNMENT);
            add(ic, BorderLayout.WEST);
        }
        mainPanel = new Panel(new BorderLayout());
        add(mainPanel, BorderLayout.CENTER);
View Full Code Here

Examples of com.sshtools.ui.awt.ImageCanvas

            };
            choicePanel.add(b);
            b.addActionListener(new BlockingActionListener(choices[i]));
        }
        if (icon != null) {
            add(new ImageCanvas(icon), "West"); //$NON-NLS-1$
        }
        if(buttonBarAccessory != null) {
            Panel p= new Panel(new GridBagLayout());
            GridBagConstraints gbc2 = new GridBagConstraints();
            gbc2.anchor = GridBagConstraints.WEST;
View Full Code Here

Examples of com.sshtools.ui.awt.ImageCanvas

        UIUtil.waitFor(tx, main);
        UIUtil.waitFor(rx, main);
        UIUtil.waitFor(txrx, main);
        UIUtil.waitFor(disconnected, main);
       
        ImageCanvas bannerCanvas = new ImageCanvas(banner);
        bannerCanvas.setHalign(ImageCanvas.LEFT_ALIGNMENT);
        bannerCanvas.setBackground(Color.black);
        main.add(bannerCanvas, BorderLayout.CENTER);
       
        activityPanel = new ImageCanvas(idle);
        activityPanel.setSize(new Dimension(32, 32));
        activityPanel.setBorder(4);
       
        main.add(activityPanel, BorderLayout.EAST);
View Full Code Here

Examples of ij.gui.ImageCanvas

  byte[][] getOverlay(ImagePlus imp) {
    if (imp.getHideOverlay())
      return null;
    Overlay overlay = imp.getOverlay();
    if (overlay==null) {
      ImageCanvas ic = imp.getCanvas();
      if (ic==null) return null;
      overlay = ic.getShowAllList(); // ROI Manager "Show All" list
      if (overlay==null) return null;
    }
    int n = overlay.size();
    if (n==0) return null;
    if (Orthogonal_Views.isOrthoViewsImage(imp))
View Full Code Here

Examples of net.sourceforge.jiu.gui.awt.ImageCanvas

    if (image != null)
    {
      //editor.zoomSetOriginalSize();
      Image awtImage = ImageCreator.convertToAwtImage(image, RGBA.DEFAULT_ALPHA);
      scrollPane = new ScrollPane(ScrollPane.SCROLLBARS_AS_NEEDED);
      canvas = new ImageCanvas(scrollPane);
      canvas.setInterpolation(editor.getInterpolation());
      canvas.setZoomToFit(editor.getZoomToFit());
      canvas.setImage(awtImage);
      canvas.setZoomFactors(editor.getZoomFactorX(), editor.getZoomFactorY());
      //canvas.computeZoomToFitSize();
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.