public RenderedImage createBufferedImage(MapModel map) { final Controller controller = Controller.getCurrentController(); if(! map.equals(controller.getMap())) { return null; } return controller.getMapViewManager().createImage(imageResolutionInDpi); }
void redo() { if (!filters.hasNext()) { return; } Controller controller = Controller.getCurrentController(); final MapModel map = controller.getMap(); final Filter next = filters.next(); next.applyFilter(this, map, true); }
public ListModel getFilteredProperties() { final AttributeRegistry registry = AttributeRegistry.getRegistry(Controller.getCurrentController().getMap()); final DefaultListModel anyAttributeList = new DefaultListModel(); anyAttributeList.addElement(ANY_ATTRIBUTE_NAME_OR_VALUE_OBJECT); if (registry != null) { return new DoubleListModel(anyAttributeList, registry.getListBoxModel()); } return anyAttributeList; }
public RenderedImage createBufferedImage(MapModel map, final Dimension slideSize, NodeModel placedNode, NodePosition placedNodePosition) { final Controller controller = Controller.getCurrentController(); if(! map.equals(controller.getMap())) { return null; } return controller.getMapViewManager().createImage(slideSize, placedNode, placedNodePosition, imageResolutionInDpi); }
@Override public void setEnabled() { final Controller controller = Controller.getCurrentController(); MapModel map = controller.getMap(); setEnabled(map != null && ! map.isSaved()); } }
public void select(final NodeModel node) { final MapModel map = node.getMap(); final Controller controller = Controller.getCurrentController(); if (! map.equals(controller.getMap())){ controller.getMapViewManager().changeToMap(map); } displayNode(node); controller.getSelection().selectAsTheOnlyOneSelected(node); }
protected String getAttributeViewType() { final MapModel map = Controller.getCurrentController().getMap(); return ModelessAttributeController.getController().getAttributeViewType(map); } }
@Override public void startup() { final Controller controller = getController(); controller.getMapViewManager().changeToMode(MODENAME); if (controller.getMap() == null) { ((FMapController) getMapController()).newMap(File.listRoots()); } super.startup(); } }
@Override public void actionPerformed(ActionEvent e) { final NodeModel rootNode = Controller.getCurrentController().getMap().getRootNode(); final NodeModel node = rootNode; setAlwaysUnfoldedNodeFlags(node); }
@Override public void commit() { final MapModel map = getController().getMap(); final IUndoHandler undoHandler = map.getExtension(IUndoHandler.class); undoHandler.commit(); }
@Override public void actionPerformed(ActionEvent e) { final NodeModel rootNode = Controller.getCurrentController().getMap().getRootNode(); final NodeModel node = rootNode; removeAlwaysUnfoldedNodeFlags(node); }
@Override public void startTransaction() { final MapModel map = getController().getMap(); final IUndoHandler undoHandler = map.getExtension(IUndoHandler.class); undoHandler.startTransaction(); }
@Override public void actionPerformed(final ActionEvent e) { final AttributeTable table = AttributePopupMenu.this.table; final URI relative = ((MFileManager) UrlManager.getController()) .getLinkByFileChooser(Controller.getCurrentController().getMap()); if (relative != null) { table.setValueAt(relative, row, col); } } });
public void actionPerformed(final ActionEvent e) { final Controller controller = Controller.getCurrentController(); final MapStyle mapStyle = controller.getModeController().getExtension(MapStyle.class); final MapModel model = controller.getMap(); mapStyle.setProperty(model, MapStyle.RESOURCES_BACKGROUND_IMAGE, null); } }
public void actionPerformed(final ActionEvent e) { if(exp == null){ final ExportController exportController = ExportController.getContoller(); exp = exportController.createMapExportDialog(); } final MapModel map = Controller.getCurrentController().getMap(); if (map == null) { return; } exp.export(UITools.getCurrentRootComponent(), Collections.singletonList(map.getRootNode())); }
private SortedComboBoxModel aliases() { final MapModel map = Controller.getCurrentController().getMap(); Collection<NodeAlias> aliases = NodeAliases.of(map).aliases(); SortedComboBoxModel box = new SortedComboBoxModel(); for(NodeAlias a : aliases) box.add(a.value); return box; }
public void act() { model.setEquation(newEquation); final MapModel map = Controller.getCurrentModeController().getController().getMap(); Controller.getCurrentModeController().getMapController().setSaved(map, false); }
public void act() { extension.updateLocation(newlyChoosenLocation); extension.updateZoom(newlyChoosenZoom); final MapModel map = Controller.getCurrentModeController() .getController().getMap(); Controller.getCurrentModeController().getMapController() .setSaved(map, false); }
public void actionPerformed(final ActionEvent e) { if (frame == null) { frame = UITools.getCurrentFrame(); } if (getAttributeDialog().isVisible() == false && Controller.getCurrentController().getMap() != null) { getAttributeDialog().pack(); getAttributeDialog().show(); } }
public void actionPerformed(ActionEvent e) { final MapModel map = Controller.getCurrentController().getMap(); final MNoteController noteController = (MNoteController) NoteController.getController(); noteController.setShowNotesInMap(map, ! NoteController.getController().showNotesInMap(map)); final IMapSelection selection = Controller.getCurrentController().getSelection(); selection.keepNodePosition(selection.getSelected(), 0.0f, 0.0f); setSelected(); }