Package org.eclipse.draw2d

Examples of org.eclipse.draw2d.GridLayout


  /**
   * Creates a new abstract polygon shape.
   */
  public AbstractPolygonShape() {
    setLayoutManager(new GridLayout(2, false));
    setFill(true);
  }
View Full Code Here


  /**
   * Creates a new circle shape.
   */
  public ShapeCircle() {
    setLayoutManager(new GridLayout(2, false));
    setFill(true);
  }
View Full Code Here

  /**
   * Creates a new rounded box shape.
   */
  public ShapeRoundedBox() {
    setLayoutManager(new GridLayout(2, false));
    setFill(true);
  }
View Full Code Here

   
    protected boolean bpmnNotation = false;
   
    public void init(boolean bpmnNotation) {
        this.bpmnNotation = bpmnNotation;
        GridLayout layout = new GridLayout();
        layout.marginHeight = 2;
        layout.marginWidth = 2;
        layout.horizontalSpacing = 0;
        layout.verticalSpacing = 0;
        setLayoutManager(layout);
View Full Code Here

    private boolean actionsFitInFigure = true;
    private List<ActionFigure> cachedFigures = null;
    private ActionFigure multipleFigure = null;
   
    public ActionsContainer() {
        GridLayout layout = new GridLayout();
        layout.verticalSpacing = 5;
        setLayoutManager(layout);
        setOpaque(false);
    }
View Full Code Here

        super.remove(figure);
        adjustLayout();
    }
   
    private void adjustLayout() {
        GridLayout layout = (GridLayout) getLayoutManager();
        layout.numColumns = getChildren().size();
        layout.invalidate();
    }
View Full Code Here

    /**
     * @generated
     */
    public NodeTypeFigure() {

      GridLayout layoutThis = new GridLayout();
      layoutThis.numColumns = 1;
      layoutThis.makeColumnsEqualWidth = true;
      this.setLayoutManager(layoutThis);

      this.setCornerDimensions(new Dimension(getMapMode().DPtoLP(20),
View Full Code Here

      rowOneRoundRectangle0
          .setBackgroundColor(ROWONEROUNDRECTANGLE0_BACK);

      this.add(rowOneRoundRectangle0);

      GridLayout layoutRowOneRoundRectangle0 = new GridLayout();
      layoutRowOneRoundRectangle0.numColumns = 2;
      layoutRowOneRoundRectangle0.makeColumnsEqualWidth = true;
      rowOneRoundRectangle0.setLayoutManager(layoutRowOneRoundRectangle0);

      WrappingLabel titleScoreLabel1 = new WrappingLabel();
      titleScoreLabel1.setText("score:");
      titleScoreLabel1.setForegroundColor(TITLESCORELABEL1_FORE);

      rowOneRoundRectangle0.add(titleScoreLabel1);

      fFigureScoreLabel = new WrappingLabel();
      fFigureScoreLabel.setText("- - -");
      fFigureScoreLabel.setForegroundColor(FFIGURESCORELABEL_FORE);

      rowOneRoundRectangle0.add(fFigureScoreLabel);

      RoundedRectangle rowTwoRoundRectangle0 = new RoundedRectangle();
      rowTwoRoundRectangle0.setCornerDimensions(new Dimension(
          getMapMode().DPtoLP(10), getMapMode().DPtoLP(10)));
      rowTwoRoundRectangle0.setLineWidth(0);
      rowTwoRoundRectangle0
          .setForegroundColor(ROWTWOROUNDRECTANGLE0_FORE);
      rowTwoRoundRectangle0
          .setBackgroundColor(ROWTWOROUNDRECTANGLE0_BACK);

      this.add(rowTwoRoundRectangle0);

      GridLayout layoutRowTwoRoundRectangle0 = new GridLayout();
      layoutRowTwoRoundRectangle0.numColumns = 2;
      layoutRowTwoRoundRectangle0.makeColumnsEqualWidth = true;
      rowTwoRoundRectangle0.setLayoutManager(layoutRowTwoRoundRectangle0);

      WrappingLabel titleRecordCountLabel1 = new WrappingLabel();
View Full Code Here

    /**
     * @generated
     */
    public CompoundPredicateTypeFigure() {

      GridLayout layoutThis = new GridLayout();
      layoutThis.numColumns = 1;
      layoutThis.makeColumnsEqualWidth = true;
      this.setLayoutManager(layoutThis);

      this.setCornerDimensions(new Dimension(getMapMode().DPtoLP(8),
View Full Code Here

    /**
     * @generated
     */
    public TreeModelTypeFigure() {

      GridLayout layoutThis = new GridLayout();
      layoutThis.numColumns = 1;
      layoutThis.makeColumnsEqualWidth = true;
      this.setLayoutManager(layoutThis);

      this.setCornerDimensions(new Dimension(getMapMode().DPtoLP(15),
View Full Code Here

TOP

Related Classes of org.eclipse.draw2d.GridLayout

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.