Package org.freeplane.features.link

Examples of org.freeplane.features.link.LinkController


    NodeStyleController.install(new NodeStyleController(modeController));
    EdgeController.install(new EdgeController(modeController));
    CloudController.install(new CloudController(modeController));
    NoteController.install(new NoteController());
    TextController.install(new TextController(modeController));
    LinkController.install(new LinkController());
    LogicalStyleController.install(new LogicalStyleController(modeController));
    try {
      ClipboardController.install(new ClipboardController());
    }
    catch (final AccessControlException e) {
View Full Code Here


    MapIO.install(modeController);
    IconController.install(new IconController(modeController));
    NodeStyleController.install(new NodeStyleController(modeController));
    EdgeController.install(new EdgeController(modeController));
    TextController.install(new TextController(modeController));
    LinkController.install(new LinkController());
    CloudController.install(new CloudController(modeController));
    ClipboardController.install(new ClipboardController());
    LocationController.install(new LocationController());
    LogicalStyleController.install(new LogicalStyleController(modeController));
    MapStyle.install(true);
View Full Code Here

  final private BasicStroke stroke;
  final private Color bgColor;
  /* Note, that source and target are nodeviews and not nodemodels!. */
  public ConnectorView(final ConnectorModel connectorModel, final NodeView source, final NodeView target, Color bgColor) {
    super(connectorModel, source, target);
    final LinkController linkController = LinkController.getController(getModeController());
    textColor = linkController.getColor(connectorModel);
    this.bgColor =bgColor;
    final int alpha = linkController.getAlpha(connectorModel);
    color =  ColorUtils.createColor(textColor, alpha);

    final int width = linkController.getWidth(connectorModel);
    if (!isSourceVisible() || !isTargetVisible()) {
      stroke = new BasicStroke(width);
    }
    else{
      stroke = UITools.createStroke(width, linkController.getDash(connectorModel));
    }

  }
View Full Code Here

    Color color;
    if (Shape.EDGE_LIKE.equals(model.getShape())) {
      color = edgeView.getColor().darker();
    }
    else {
      final LinkController linkController = LinkController.getController(modeController);
      color = linkController.getColor(connectorModel);
      final int alpha = linkController.getAlpha(connectorModel);
      color =  ColorUtils.createColor(color, alpha);
      final int width = linkController.getWidth(model);
      edgeView.setWidth(width);
    }
    edgeView.setColor(color);
  }
View Full Code Here

      insertAnchoredLink = new JMenuItem(TextUtils.getText("MakeLinkToAnchorAction.text"));
      insertAnchoredLink.addActionListener(new ActionListener() {
        public void actionPerformed(final ActionEvent e) {
          final AttributeTable table = AttributePopupMenu.this.table;
          final Object oldValue = table.getValueAt(row, col);
          final LinkController linkController = LinkController.getController();
          if(linkController instanceof MLinkController) {
                      final MLinkController mLinkController = (MLinkController)linkController;
            if (mLinkController.isAnchored()) {
                            try {
                              final String anchorIDforNode = mLinkController.getAnchorIDforNode(((IAttributeTableModel) table.getModel()).getNode());
View Full Code Here

    add(getOptimalWidth());
    if(col == 1){
      add(getInsertLink());
      add(getInsertFileLink());
      add(getInsertNodeLink());
      final LinkController linkController = LinkController.getController();
      if(linkController instanceof MLinkController && ((MLinkController)linkController).isAnchored())
        add(getInsertAnchoredLink());
    }
    if (attributeViewType.equals(AttributeTableLayoutModel.SHOW_ALL)) {
      add(getInsert());
View Full Code Here

TOP

Related Classes of org.freeplane.features.link.LinkController

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.