Package org.freeplane.features.link.ConnectorModel

Examples of org.freeplane.features.link.ConnectorModel.Shape


      return;
    final MapView mapView = (MapView) e.getComponent();
    final Object object = mapView.detectCollision(new Point(originX, originY));
    if (object instanceof ConnectorModel) {
      final ConnectorModel arrowLinkModel = (ConnectorModel) object;
      final Shape shape = arrowLinkModel.getShape();
      if (Shape.EDGE_LIKE.equals(shape) || Shape.LINE.equals(shape) && ! arrowLinkModel.isSelfLink()) {
        return;
      }
      draggedLink = arrowLinkModel;
      draggedLinkOldStartPoint = draggedLink.getStartInclination();
View Full Code Here


    };
    Controller.getCurrentModeController().execute(actor, arrowLink.getSource().getMap());
  }

  public void setShape(final ConnectorModel connector, final Shape shape) {
    final Shape oldShape = connector.getShape();
    if (oldShape.equals(shape)) {
      return;
    }
    final IActor actor = new IActor() {
      public void act() {
        connector.setShape(shape);
View Full Code Here

    if (target == null) {
      return;
    }
    final XMLElement arrowLink = new XMLElement();
    arrowLink.setName("arrowlink");
    final Shape shape = model.getShape();
    arrowLink.setAttribute("SHAPE", shape.toString());
    final Color color = model.getColor();
    arrowLink.setAttribute("COLOR", ColorUtils.colorToString(color));
    final int width = model.getWidth();
    arrowLink.setAttribute("WIDTH", Integer.toString(width));
    final int alpha = model.getAlpha();
View Full Code Here

    ResourceController.getResourceController().setProperty(RESOURCES_LINK_COLOR, value);
  }

  public Shape getStandardConnectorShape() {
    final String standardShape = ResourceController.getResourceController().getProperty(RESOURCES_CONNECTOR_SHAPE);
    final Shape shape = Shape.valueOf(standardShape);
    return shape;
  }
View Full Code Here

TOP

Related Classes of org.freeplane.features.link.ConnectorModel.Shape

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.