Package org.freeplane.features.map

Examples of org.freeplane.features.map.MapChangeEvent


    return ((options & FilterInfo.FILTER_SHOW_ANCESTOR) != 0 || (options & FilterInfo.FILTER_SHOW_ECLIPSED) >= (filterResult & FilterInfo.FILTER_SHOW_ECLIPSED))
            && ((options & filterResult & ~FilterInfo.FILTER_SHOW_ECLIPSED) != 0);
  }

  private void refreshMap(Object source, MapModel map) {
    Controller.getCurrentModeController().getMapController().fireMapChanged(new MapChangeEvent(source, map, Filter.class, null, this));
  }
View Full Code Here


    mapController.addNodeChangeListener(new INodeChangeListener() {
      public void nodeChanged(NodeChangeEvent event) {
        final NodeModel node = event.getNode();
        if(node.getUserObject().equals(MapStyleModel.DEFAULT_STYLE)){
          mapController.fireMapChanged(new MapChangeEvent(this, node.getMap(), MapStyle.MAP_STYLES, null, null));
        }
      }
    });

View Full Code Here

        mapsToRefresh.remove(map);
          final MapStyleModel extension = MapStyleModel.getExtension(map);
          extension.refreshStyles();
        final MapController mapController = Controller.getCurrentModeController().getMapController();
        mapController.fireMapChanged(
            new MapChangeEvent(this, map, MapStyle.MAP_STYLES, null, null));
      }
    });
  }
View Full Code Here

    }
    final IActor actor = new IActor() {
      public void act() {
        model.setBackgroundColor(actionColor);
        Controller.getCurrentModeController().getMapController().fireMapChanged(
            new MapChangeEvent(MapStyle.this, Controller.getCurrentController().getMap(), MapStyle.RESOURCES_BACKGROUND_COLOR,
                oldColor, actionColor));
      }

      public String getDescription() {
        return "MapStyle.setBackgroundColor";
      }

      public void undo() {
        model.setBackgroundColor(oldColor);
        Controller.getCurrentModeController().getMapController().fireMapChanged(
            new MapChangeEvent(MapStyle.this, Controller.getCurrentController().getMap(), MapStyle.RESOURCES_BACKGROUND_COLOR,
                actionColor, oldColor));
      }
    };
    Controller.getCurrentModeController().execute(actor, Controller.getCurrentController().getMap());
  }
View Full Code Here

      }

      private void setPropertyWithoutUndo(final MapModel model, final String key, final String newValue) {
        styleModel.setProperty(key, newValue);
          Controller.getCurrentModeController().getMapController().fireMapChanged(
              new MapChangeEvent(MapStyle.this, model, key, oldValue, newValue));
            }
    };
    Controller.getCurrentModeController().execute(actor, model);
  }
View Full Code Here

      return false;
    }
    map.setReadOnly(false);
    final URL urlAfter = map.getURL();
    final MMapController mapController = (MMapController) Controller.getCurrentModeController().getMapController();
    mapController.fireMapChanged(new MapChangeEvent(this, map, UrlManager.MAP_URL, urlBefore, urlAfter));
    mapController.setSaved(map, true);
    return true;
  }
View Full Code Here

  protected void setAttributeViewType(final MapModel map, final String type) {
    final String attributeViewType = getAttributeViewType(map);
    if (attributeViewType != null && attributeViewType != type) {
      final AttributeRegistry attributes = AttributeRegistry.getRegistry(map);
      attributes.setAttributeViewType(type);
      final MapChangeEvent mapChangeEvent = new MapChangeEvent(this, map, ATTRIBUTE_VIEW_TYPE, attributeViewType, type);
      Controller.getCurrentModeController().getMapController().fireMapChanged(mapChangeEvent);
    }
  }
View Full Code Here

TOP

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

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.