Search in sources :

Example 1 with IViewerFactory

use of org.freeplane.view.swing.features.filepreview.IViewerFactory in project freeplane by freeplane.

the class MapView method loadBackgroundImage.

private void loadBackgroundImage() {
    final MapStyle mapStyle = getModeController().getExtension(MapStyle.class);
    final String uriString = mapStyle.getProperty(model, MapStyle.RESOURCES_BACKGROUND_IMAGE);
    backgroundComponent = null;
    if (uriString != null) {
        URI uri = assignAbsoluteURI(uriString);
        final ViewerController vc = getModeController().getExtension(ViewerController.class);
        final IViewerFactory factory = vc.getCombiFactory();
        if (uri != null) {
            assignViewerToBackgroundComponent(factory, uri);
        }
    }
    repaint();
}
Also used : MapStyle(org.freeplane.features.styles.MapStyle) IViewerFactory(org.freeplane.view.swing.features.filepreview.IViewerFactory) ViewerController(org.freeplane.view.swing.features.filepreview.ViewerController) URI(java.net.URI)

Aggregations

URI (java.net.URI)1 MapStyle (org.freeplane.features.styles.MapStyle)1 IViewerFactory (org.freeplane.view.swing.features.filepreview.IViewerFactory)1 ViewerController (org.freeplane.view.swing.features.filepreview.ViewerController)1