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();
}
Aggregations