Examples of BitmapViewerComponent


Examples of org.freeplane.view.swing.features.filepreview.BitmapViewerComponent

      LogUtils.warn(e1);
    }
  }

  protected void updateView(final File file) throws MalformedURLException, IOException {
    final BitmapViewerComponent viewer = new BitmapViewerComponent(file.toURI());
    viewer.setHint(Image.SCALE_FAST);
    final Dimension size = getSize();
    size.width -= 2 * BORDER_WIDTH;
    size.height -= 2 * BORDER_WIDTH;
    viewer.setPreferredSize(size);
    viewer.setSize(size);
    viewer.setLocation(BORDER_WIDTH, BORDER_WIDTH);
    add(viewer);
    viewer.revalidate();
    viewer.repaint();
  }
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.