Package org.eclipse.draw2d

Examples of org.eclipse.draw2d.RectangleFigure


          .getLayer(LayerConstants.PRINTABLE_LAYERS);
      IFigure fig2 = ((FreeformGraphicalRootEditPart) rootEditPart)
          .getLayer(LayerConstants.CONNECTION_LAYER);
      IFigure fig3 = ((FreeformGraphicalRootEditPart) rootEditPart)
          .getLayer(LayerConstants.PRIMARY_LAYER);
      RectangleFigure fig4 = new RectangleFigure();
      fig4.setBounds(new Rectangle(0, 0, fig1.getClientArea().width, fig1
          .getClientArea().height));
      fig4.setBackgroundColor(ColorConstants.white);
      img = new Image(Display.getCurrent(), fig1.getClientArea().width,
          fig1.getClientArea().height);
      imageGC = new GC(img);
      Graphics g = new SWTGraphics(imageGC);
      fig4.paint(g);
      fig3.paint(g);
      fig2.paint(g);
      fig1.paint(g);
      g.dispose();
      exportImageJob(img, imageGC, saveLocation,
View Full Code Here


*/
@Override
protected IFigure createSizeOnDropFeedback(CreateRequest createRequest) {
  IFigure figure;
 
    figure = new RectangleFigure();
    ((RectangleFigure)figure).setXOR(true);
    ((RectangleFigure)figure).setFill(true);
    figure.setBackgroundColor(ColorConstants.black);
    figure.setForegroundColor(ColorConstants.white);
 
View Full Code Here

}

protected IFigure getCustomFeedbackFigure(Object modelPart) {
  IFigure figure;
 
  figure = new RectangleFigure();
  ((RectangleFigure)figure).setXOR(true);
  ((RectangleFigure)figure).setFill(true);
  figure.setBackgroundColor(ColorConstants.black);
  figure.setForegroundColor(ColorConstants.white);
   
View Full Code Here

    /**
     * @generated
     */
    private void createContents() {

      fFigureArgumentsCompartment = new RectangleFigure();
      fFigureArgumentsCompartment
          .setForegroundColor(ColorConstants.white);

      this.add(fFigureArgumentsCompartment, BorderLayout.LEFT);

View Full Code Here

          .setBackgroundColor(ColorConstants.menuBackgroundSelected);
      feedbackFigure
          .setForegroundColor(ColorConstants.menuForegroundSelected);
      return feedbackFigure;
    } else {
      RectangleFigure feedbackFigure = new RectangleFigure();
      feedbackFigure.setFill(false);
      return feedbackFigure;
    }
  }
View Full Code Here

    /**
     * @generated
     */
    private void createContents() {

      fFigureAnonymousCompartment = new RectangleFigure();

      this.add(fFigureAnonymousCompartment, BorderLayout.CENTER);

    }
View Full Code Here

          .setBackgroundColor(ColorConstants.menuBackgroundSelected);
      feedbackFigure
          .setForegroundColor(ColorConstants.menuForegroundSelected);
      return feedbackFigure;
    } else {
      RectangleFigure feedbackFigure = new RectangleFigure();
      feedbackFigure.setFill(false);
      return feedbackFigure;
    }
  }
View Full Code Here

    /**
     * @generated
     */
    private void createContents() {

      fFigureAnonymousCompartment = new RectangleFigure();

      this.add(fFigureAnonymousCompartment, BorderLayout.CENTER);

    }
View Full Code Here

      fFigureProcessingElementNameFigure = new WrappingLabel();
      fFigureProcessingElementNameFigure.setText("");

      this.add(fFigureProcessingElementNameFigure, BorderLayout.TOP);

      RectangleFigure inputsOutputsCompartment0 = new RectangleFigure();

      this.add(inputsOutputsCompartment0, BorderLayout.CENTER);

      GridLayout layoutInputsOutputsCompartment0 = new GridLayout();
      layoutInputsOutputsCompartment0.numColumns = 2;
      layoutInputsOutputsCompartment0.makeColumnsEqualWidth = true;
      inputsOutputsCompartment0
          .setLayoutManager(layoutInputsOutputsCompartment0);

      fFigureInputsCompartment = new RectangleFigure();
      fFigureInputsCompartment.setForegroundColor(ColorConstants.white);

      inputsOutputsCompartment0.add(fFigureInputsCompartment);

      fFigureOutputsCompartment = new RectangleFigure();
      fFigureOutputsCompartment.setForegroundColor(ColorConstants.white);

      inputsOutputsCompartment0.add(fFigureOutputsCompartment);

      fFigureDefinitionCompartment = new RectangleFigure();

      this.add(fFigureDefinitionCompartment, BorderLayout.BOTTOM);

      GridLayout layoutFFigureDefinitionCompartment = new GridLayout();
      layoutFFigureDefinitionCompartment.numColumns = 1;
View Full Code Here

      fFigureProcessingElementNameFigure = new WrappingLabel();
      fFigureProcessingElementNameFigure.setText("");

      this.add(fFigureProcessingElementNameFigure, BorderLayout.TOP);

      RectangleFigure inputsOutputsCompartment0 = new RectangleFigure();

      this.add(inputsOutputsCompartment0, BorderLayout.CENTER);

      GridLayout layoutInputsOutputsCompartment0 = new GridLayout();
      layoutInputsOutputsCompartment0.numColumns = 2;
      layoutInputsOutputsCompartment0.makeColumnsEqualWidth = true;
      inputsOutputsCompartment0
          .setLayoutManager(layoutInputsOutputsCompartment0);

      fFigureInputsCompartment = new RectangleFigure();
      fFigureInputsCompartment.setForegroundColor(ColorConstants.white);

      inputsOutputsCompartment0.add(fFigureInputsCompartment);

      fFigureOutputsCompartment = new RectangleFigure();
      fFigureOutputsCompartment.setForegroundColor(ColorConstants.white);

      inputsOutputsCompartment0.add(fFigureOutputsCompartment);

      fFigureDefinitionCompartment = new RectangleFigure();

      this.add(fFigureDefinitionCompartment, BorderLayout.BOTTOM);

      GridLayout layoutFFigureDefinitionCompartment = new GridLayout();
      layoutFFigureDefinitionCompartment.numColumns = 1;
View Full Code Here

TOP

Related Classes of org.eclipse.draw2d.RectangleFigure

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.