Package org.freeplane.view.swing.features.filepreview

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

Related Classes of org.freeplane.view.swing.features.filepreview.BitmapViewerComponent

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.