Examples of IActor


Examples of org.freeplane.core.undo.IActor

      return link;
    }

  public void setFormatNodeAsHyperlink(final NodeModel node, final Boolean enabled){
    final NodeLinks links = NodeLinks.createLinkExtension(node);
    IActor actor = new IActor() {
      final Boolean old = links.formatNodeAsHyperlink();
      public void act() {
        links.setFormatNodeAsHyperlink(enabled);
        modeController.getMapController().nodeChanged(node);
      }
View Full Code Here

Examples of org.freeplane.core.undo.IActor

      mapController.insertNode(userStyleParentNode, styleMap.getRootNode(), false, false, true);

    }
    mapController.insertNode(newNode, userStyleParentNode, false, false, true);
    mapController.select(newNode);
    final IActor actor = new IActor() {
      public void undo() {
        styleModel.removeStyleNode(newNode);
        styleController.refreshMap(map);
      }
View Full Code Here

Examples of org.freeplane.core.undo.IActor

  public void setNoteText(final NodeModel node, final String newText) {
    final String oldText = getNoteText(node);
    if (oldText == newText || null != oldText && oldText.equals(newText)) {
      return;
    }
    final IActor actor = new IActor() {
      public void act() {
        setText(newText);
      }

      public String getDescription() {
View Full Code Here

Examples of org.freeplane.core.undo.IActor

    final ModeController modeController = Controller.getCurrentModeController();
    final Color oldColor = EdgeModel.createEdgeModel(node).getColor();
    if (color == oldColor || color != null && color.equals(oldColor)) {
      return;
    }
    final IActor actor = new IActor() {
      public void act() {
        EdgeModel.createEdgeModel(node).setColor(color);
        modeController.getMapController().nodeChanged(node);
      }
View Full Code Here

Examples of org.freeplane.core.undo.IActor

      oldStyle = EdgeModel.createEdgeModel(node).getStyle();
      if (oldStyle == null) {
        return;
      }
    }
    final IActor actor = new IActor() {
      public void act() {
        EdgeModel.createEdgeModel(node).setStyle(style);
        modeController.getMapController().nodeChanged(node);
        edgeStyleRefresh(node);
      }
View Full Code Here

Examples of org.freeplane.core.undo.IActor

    final ModeController modeController = Controller.getCurrentModeController();
    final int oldWidth = EdgeModel.createEdgeModel(node).getWidth();
    if (width == oldWidth) {
      return;
    }
    final IActor actor = new IActor() {
      public void act() {
        EdgeModel.createEdgeModel(node).setWidth(width);
        modeController.getMapController().nodeChanged(node);
        edgeWidthRefresh(node);
      }
View Full Code Here

Examples of org.freeplane.core.undo.IActor

  public static LogicalStyleController getController(ModeController modeController) {
    return modeController.getExtension(LogicalStyleController.class);
    }
  public void refreshMap(final MapModel map) {
    final IActor actor = new IActor() {
      public void undo() {
        refreshMapLater(map);
      }

      public String getDescription() {
View Full Code Here

Examples of org.freeplane.core.undo.IActor

    LogicalStyleController.getController().refreshMap(targetMap);
    if(! undoable){
      return;
    }
    final IExtension newStyleModel = targetMap.getRootNode().getExtension(MapStyleModel.class);
    IActor actor = new IActor() {
      public void undo() {
        targetMap.getRootNode().putExtension(oldStyleModel);
      }
     
      public String getDescription() {
View Full Code Here

Examples of org.freeplane.core.undo.IActor

  public void setBackgroundColor(final MapStyleModel model, final Color actionColor) {
    final Color oldColor = model.getBackgroundColor();
    if (actionColor == oldColor || actionColor != null && actionColor.equals(oldColor)) {
      return;
    }
    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));
View Full Code Here

Examples of org.freeplane.core.undo.IActor

    final MapStyleModel styleModel = MapStyleModel.getExtension(model);
    final String oldValue = styleModel.getProperty(key);
    if(oldValue == newValue || oldValue != null && oldValue.equals(newValue)) {
      return;
    }
    IActor actor = new  IActor() {
      public void undo() {
        setPropertyWithoutUndo(model, key, oldValue);
      }
     
      public String getDescription() {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.