Package org.eclipse.draw2d

Examples of org.eclipse.draw2d.Figure


  /**
   * @generated
   */
  protected IFigure createFocusFeedbackFigure() {
    return new Figure() {

      protected void paintFigure(Graphics graphics) {
        graphics.drawFocus(getBounds().getResized(-1, -1));
      }
    };
View Full Code Here


  /**
   * @generated
   */
  protected IFigure createFocusFeedbackFigure() {
    return new Figure() {

      protected void paintFigure(Graphics graphics) {
        graphics.drawFocus(getBounds().getResized(-1, -1));
      }
    };
View Full Code Here

    /* (non-Javadoc)
     * @see org.eclipse.gef.editparts.AbstractGraphicalEditPart#createFigure()
     */
    protected IFigure createFigure() {
        Figure f = new FreeformLayer();
        f.setBorder( new MarginBorder( 3 ) );
        f.setLayoutManager( new FreeformLayout() );
        return f;
    }
View Full Code Here

public class ProcessEditPart extends AbstractGraphicalEditPart implements ModelListener {
   
//    private GraphLayoutManager graphLayoutManager;

    protected IFigure createFigure() {
        Figure f = new Figure();
        f.setLayoutManager(new XYLayout());
//        graphLayoutManager = new GraphLayoutManager(this);
//        f.setLayoutManager(graphLayoutManager);
//        graphLayoutManager.layout(f);
        return f;
    }
View Full Code Here

    /* (non-Javadoc)
     * @see org.eclipse.gef.editparts.AbstractGraphicalEditPart#createFigure()
     */
    protected IFigure createFigure() {
        Figure f = new FreeformLayer();
        f.setBorder( new MarginBorder( 3 ) );
        f.setLayoutManager( new FreeformLayout() );
        return f;
    }
View Full Code Here

    protected List< ? > getModelChildren() {
        return getModel().getBoxes();
    }

    protected IFigure createFigure() {
        Figure figure = new PageFigure(getModel().getSize());
        figure.setLayoutManager((new FreeformLayout()));
        return figure;
    }
View Full Code Here

    ConnectionEndpointLocator relationshipLocator = new ConnectionEndpointLocator(
        (PolylineConnection) connection.getConnectionFigure(), true);
    relationshipLocator.setUDistance(0);
    relationshipLocator.setVDistance(10);

    Figure decoractionFigure = new Figure();

    ToolbarLayout layout = new ToolbarLayout();
    decoractionFigure.setLayoutManager(layout);
    decoractionFigure.setOpaque(false);

    Label weightLabel = new Label(weight);
    weightLabel.setFont(decoractionFontSmall);
    decoractionFigure.add(weightLabel);

    decoractionFigure.setSize(-1, -1);
    ((PolylineConnection) connection.getConnectionFigure()).add(
        decoractionFigure, relationshipLocator);

  }
View Full Code Here

    ConnectionEndpointLocator relationshipLocator = new ConnectionEndpointLocator(
        (PolylineConnection) connection.getConnectionFigure(), true);
    relationshipLocator.setUDistance(10);
    relationshipLocator.setVDistance(10);

    Figure decoractionFigure = new Figure();

    ToolbarLayout layout = new ToolbarLayout();
    decoractionFigure.setLayoutManager(layout);
    decoractionFigure.setOpaque(false);

    Label minusLabel = new Label("_");
    minusLabel.setFont(decoractionFontLarge);
    decoractionFigure.add(minusLabel);

    decoractionFigure.setSize(-1, -1);
    ((PolylineConnection) connection.getConnectionFigure()).add(
        decoractionFigure, relationshipLocator);

  }
View Full Code Here

    ConnectionEndpointLocator relationshipLocator = new ConnectionEndpointLocator(
        (PolylineConnection) connection.getConnectionFigure(), true);
    relationshipLocator.setUDistance(10);
    relationshipLocator.setVDistance(10);

    Figure decoractionFigure = new Figure();

    ToolbarLayout layout = new ToolbarLayout();
    decoractionFigure.setLayoutManager(layout);
    decoractionFigure.setOpaque(false);

    Label minusLabel = new Label("?");
    minusLabel.setFont(decoractionFontLarge);
    decoractionFigure.add(minusLabel);

    decoractionFigure.setSize(-1, -1);
    ((PolylineConnection) connection.getConnectionFigure()).add(
        decoractionFigure, relationshipLocator);

  }
View Full Code Here

    ConnectionEndpointLocator relationshipLocator = new ConnectionEndpointLocator(
        (PolylineConnection) connection.getConnectionFigure(), true);
    relationshipLocator.setUDistance(10);
    relationshipLocator.setVDistance(10);

    Figure decoractionFigure = new Figure();

    ToolbarLayout layout = new ToolbarLayout();
    decoractionFigure.setLayoutManager(layout);
    decoractionFigure.setOpaque(false);

    Label plusLabel = new Label("+");
    plusLabel.setFont(decoractionFontLarge);
    decoractionFigure.add(plusLabel);

    decoractionFigure.setSize(-1, -1);
    ((PolylineConnection) connection.getConnectionFigure()).add(
        decoractionFigure, relationshipLocator);

  }
View Full Code Here

TOP

Related Classes of org.eclipse.draw2d.Figure

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.