Package org.freeplane.features.mode

Examples of org.freeplane.features.mode.ModeController.execute()


        NodeStyleModel.setShape(node, oldShape);
        modeController.getMapController().nodeChanged(node);
        childShapeRefresh(node);
      }
    };
    modeController.execute(actor, node.getMap());
  }
  public void setMinNodeWidth(final NodeModel node, final int minNodeWidth) {
      final NodeSizeModel sizeModel = createOwnSizeModel(node);
    final int oldValue = NodeSizeModel.getMinNodeWidth(node);
    final IActor actor = new IActor() {
View Full Code Here


        else {
          enable();
        }
      }
    };
    modeController.execute(actor, node.getMap());
  }

  public void setColor(final NodeModel node, final Color color) {
    setCloud(node, true);
    final ModeController modeController = Controller.getCurrentModeController();
View Full Code Here

      public void undo() {
        CloudModel.getModel(node).setColor(oldColor);
        modeController.getMapController().nodeChanged(node);
      }
    };
    modeController.execute(actor, node.getMap());
  }

  public void setShape(final NodeModel node, final CloudModel.Shape shape) {
    setCloud(node, true);
    final ModeController modeController = Controller.getCurrentModeController();
View Full Code Here

      public void undo() {
        CloudModel.getModel(node).setShape(oldShape);
        modeController.getMapController().nodeChanged(node);
      }
    };
    modeController.execute(actor, node.getMap());
  }
}
View Full Code Here

        }
        modeController.getMapController().nodeChanged(node, LogicalStyleModel.class, oldStyle, style);
        selectActions();
            }
    };
    modeController.execute(actor, node.getMap());
  }

    public void copyStyleExtensions(final IStyle style, final NodeModel target) {
        final MTextController textController = MTextController.getController();
        final MapStyleModel extension = MapStyleModel.getExtension(target.getMap());
View Full Code Here

      public void undo() {
        EdgeModel.createEdgeModel(node).setColor(oldColor);
        modeController.getMapController().nodeChanged(node);
      }
    };
    modeController.execute(actor, node.getMap());
  }

  public void setStyle(final NodeModel node, final EdgeStyle style) {
    final ModeController modeController = Controller.getCurrentModeController();
    final EdgeStyle oldStyle;
View Full Code Here

        EdgeModel.createEdgeModel(node).setStyle(oldStyle);
        modeController.getMapController().nodeChanged(node);
        edgeStyleRefresh(node);
      }
    };
    modeController.execute(actor, node.getMap());
  }

  public void setWidth(final NodeModel node, final int width) {
    final ModeController modeController = Controller.getCurrentModeController();
    final int oldWidth = EdgeModel.createEdgeModel(node).getWidth();
View Full Code Here

        EdgeModel.createEdgeModel(node).setWidth(oldWidth);
        modeController.getMapController().nodeChanged(node);
        edgeWidthRefresh(node);
      }
    };
    modeController.execute(actor, node.getMap());
  }
}
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.