Package org.freeplane.features.map

Examples of org.freeplane.features.map.INodeSelectionListener


  boolean canGoForward() {
    return nodeIterator.hasNext();
  }

  private INodeSelectionListener getLinkSelectionListener() {
    return new INodeSelectionListener() {
      public void onDeselect(final NodeModel node) {
        onNodeSelect(node);
        currentNodeHolder.setReachedByLink(true);
      }
View Full Code Here


      }
    };
  }

  private INodeSelectionListener getMapSelectionListener() {
    return new INodeSelectionListener() {
      public void onDeselect(final NodeModel node) {
      }

      public void onSelect(final NodeModel node) {
        onNodeSelect(node);
View Full Code Here

  private void createTimePanel() {
    final TimeManagement timeManagement = new TimeManagement(this);
    final int axis = BoxLayout.Y_AXIS;
    final JTimePanel timePanel = timeManagement.createTimePanel(null, false, 1);
    modeController.getMapController().addNodeSelectionListener(new INodeSelectionListener() {
      public void onSelect(NodeModel node) {
        timePanel.update(node);
      }
     
      public void onDeselect(NodeModel node) {
View Full Code Here

  private void addListeners() {
    final Controller controller = Controller.getCurrentController();
    final ModeController modeController = Controller.getCurrentModeController();
    final MapController mapController = modeController.getMapController();
    mapController.addNodeSelectionListener(new INodeSelectionListener() {
      public void onSelect(final NodeModel node) {
        final IMapSelection selection = controller.getSelection();
        if (selection == null) {
          return;
        }
View Full Code Here

            removeStyleMenu(menuBuilder, "node_popup_styles");
            addStyleMenu(menuBuilder, "node_popup_styles", event.getMap());
          }
        }
      });
      mapController.addNodeSelectionListener(new INodeSelectionListener() {
        public void onSelect(final NodeModel node) {
          selectActions();
        }

        public void onDeselect(final NodeModel node) {
View Full Code Here

    controller.addModeController(modeController);
    controller.selectModeForBuild(modeController);
    final SModeController modeController = this.modeController;
    final StyleEditorPanel styleEditorPanel = new StyleEditorPanel(modeController, null, false);
    final MapController mapController = modeController.getMapController();
    mapController.addNodeSelectionListener(new INodeSelectionListener() {
      public void onSelect(final NodeModel node) {
        final IMapSelection selection = controller.getSelection();
        if (selection == null) {
          return;
        }
View Full Code Here

    new LinkBuilder(this).registerBy(readManager, writeManager);
    final LinkTransformer textTransformer = new LinkTransformer(modeController, 10);
    TextController.getController(modeController).addTextTransformer(textTransformer);
    textTransformer.registerListeners(modeController);

    final INodeSelectionListener listener = new INodeSelectionListener() {
      public void onDeselect(final NodeModel node) {
      }

      public void onSelect(final NodeModel node) {
        final URI link = NodeLinks.getValidLink(node);
View Full Code Here

  public static final String RESOURCES_CONVERT_TO_CURRENT_VERSION = "convert_to_current_version";

  public MMapController(ModeController modeController) {
    super(modeController);
    createActions();
      addNodeSelectionListener(new INodeSelectionListener() {
        public void onSelect(final NodeModel node) {
          final ViewController viewController = Controller.getCurrentController().getViewController();
          if (ResourceController.getResourceController().getBooleanProperty("display_node_id")) {
            viewController.addStatusInfo("display_node_id", "ID=" + node.createID(), null);
          }
View Full Code Here

      return;
    }
    TimeManagement.sCurrentlyOpenTimeManagement = this;
    dialog = new JDialog(Controller.getCurrentController().getViewController().getFrame(), false /*not modal*/);
    final JTimePanel timePanel =createTimePanel(dialog, true, 4);
    nodeSelectionListener = new INodeSelectionListener() {
      public void onSelect(NodeModel node) {
        timePanel.update(node);
      }
     
      public void onDeselect(NodeModel node) {
View Full Code Here

            }

    };
    MapController mapController = modeController.getMapController();
    mapController.addMapChangeListener(mapChangeListener);
    INodeSelectionListener nodeSelectionListener = new INodeSelectionListener() {

      public void onSelect(NodeModel node) {
        NodeView view = (NodeView) SwingUtilities.getAncestorOfClass(NodeView.class, instance.insideComponent);
        if(view != null && node.equals(view.getModel()))
          return;
View Full Code Here

TOP

Related Classes of org.freeplane.features.map.INodeSelectionListener

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.