Package org.eclipse.draw2d

Examples of org.eclipse.draw2d.RectangleFigure


  /**
   * @param rect
   */
  protected void showFeedbackRect(Rectangle rect) {
    RectangleFigure pf = getFeedbackFigure();
    pf.translateToRelative(rect);
    pf.setBounds(rect);
  }
View Full Code Here


  protected IFigure createSizeOnDropFeedback(CreateRequest createRequest)
  {
    IFigure figure;

    figure = new RectangleFigure();
    ((RectangleFigure) figure).setFill(true);
    figure.setBackgroundColor(NodeModel.DEFAULT_COLOR);
    figure.setForegroundColor(ColorConstants.white);

    addFeedback(figure);
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

          .setBackgroundColor(ColorConstants.menuBackgroundSelected);
      feedbackFigure
          .setForegroundColor(ColorConstants.menuForegroundSelected);
      return feedbackFigure;
    } else {
      RectangleFigure feedbackFigure = new RectangleFigure();
      feedbackFigure.setFill(false);
      return feedbackFigure;
    }
  }
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

          .setBackgroundColor(ColorConstants.menuBackgroundSelected);
      feedbackFigure
          .setForegroundColor(ColorConstants.menuForegroundSelected);
      return feedbackFigure;
    } else {
      RectangleFigure feedbackFigure = new RectangleFigure();
      feedbackFigure.setFill(false);
      return feedbackFigure;
    }
  }
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

      fFigureReturnName = new WrappingLabel();
      fFigureReturnName.setText("Return");

      this.add(fFigureReturnName, BorderLayout.TOP);

      fFigureReturnAnonymousCompartment = new RectangleFigure();

      this.add(fFigureReturnAnonymousCompartment, 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

          .setBackgroundColor(ColorConstants.menuBackgroundSelected);
      feedbackFigure
          .setForegroundColor(ColorConstants.menuForegroundSelected);
      return feedbackFigure;
    } else {
      RectangleFigure feedbackFigure = new RectangleFigure();
      feedbackFigure.setFill(false);
      return feedbackFigure;
    }
  }
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.