Examples of RoundedRectangle


Examples of diva.canvas.toolbox.RoundedRectangle

                if (object instanceof NamedObj && cf != null && !_transformed
                        && _results != null
                        && _results.get(_currentPosition).containsValue(object)) {
                    Rectangle2D bounds = cf.getBackgroundFigure().getBounds();
                    float padding = _HIGHLIGHT_PADDING;
                    RoundedRectangle rf = new RoundedRectangle(
                            bounds.getX() - padding, bounds.getY() - padding,
                            bounds.getWidth() + padding * 2.0,
                            bounds.getHeight() + padding * 2.0,
                            null, _HIGHLIGHT_THICKNESS, 32.0, 32.0);
                    rf.setStrokePaint(_HIGHLIGHT_COLOR);

                    int index = cf.getFigureCount();
                    if (index < 0) {
                        index = 0;
                    }
View Full Code Here

Examples of diva.canvas.toolbox.RoundedRectangle

    public Icon createIcon() {
        if (_iconCache != null) {
            return _iconCache;
        }

        Figure figure = new RoundedRectangle(0, 0, 20, 10, Color.LIGHT_GRAY,
                2.0f, 5.0, 5.0);
        _iconCache = new FigureIcon(figure, 20, 15);
        return _iconCache;
    }
View Full Code Here

Examples of diva.canvas.toolbox.RoundedRectangle

        if (_spacingValue == 0.0) {
            if (_roundingValue == 0.0) {
                return new BasicRectangle(0, 0, width, height, _getFill(),
                        _getLineWidth());
            } else {
                return new RoundedRectangle(0, 0, width, height, _getFill(),
                        _getLineWidth(), _roundingValue, _roundingValue);
            }
        } else {
            CompositeFigure result;
            if (_roundingValue == 0.0) {
                result = new CompositeFigure(new BasicRectangle(-_spacingValue,
                        -_spacingValue, width + 2 * _spacingValue, height + 2
                                * _spacingValue, null, _getLineWidth()));
                result.add(new BasicRectangle(0, 0, width, height, _getFill(),
                        _getLineWidth()));
            } else {
                result = new CompositeFigure(new RoundedRectangle(
                        -_spacingValue, -_spacingValue, width + 2
                                * _spacingValue, height + 2 * _spacingValue,
                        null, _getLineWidth(), _roundingValue + _spacingValue,
                        _roundingValue + _spacingValue));
                result.add(new RoundedRectangle(0, 0, width, height,
                        _getFill(), _getLineWidth(), _roundingValue,
                        _roundingValue));
            }
            return result;
        }
View Full Code Here

Examples of org.eclipse.draw2d.RoundedRectangle

    public BPMNStateFigure() {
        setSize(80, 48);
    }
   
    protected void customizeFigure() {
        rectangle = new RoundedRectangle();
        rectangle.setCornerDimensions(new Dimension(25, 25));
        add(rectangle, 0);
        rectangle.setBounds(getBounds());
        setSelected(false);
        setIcon(ICON);
View Full Code Here

Examples of org.eclipse.draw2d.RoundedRectangle

    public BPMNWorkItemNodeFigure() {
        setSize(80, 48);
    }
   
    protected void customizeFigure() {
        rectangle = new RoundedRectangle();
        rectangle.setCornerDimensions(new Dimension(25, 25));
        add(rectangle, 0);
        rectangle.setBounds(getBounds());
        setSelected(false);
    }
View Full Code Here

Examples of org.eclipse.draw2d.RoundedRectangle

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

      RoundedRectangle rowOneRoundRectangle0 = new RoundedRectangle();
      rowOneRoundRectangle0.setCornerDimensions(new Dimension(
          getMapMode().DPtoLP(10), getMapMode().DPtoLP(10)));
      rowOneRoundRectangle0.setLineWidth(0);
      rowOneRoundRectangle0
          .setForegroundColor(ROWONEROUNDRECTANGLE0_FORE);
      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();
      titleRecordCountLabel1.setText("rec.count:");
      titleRecordCountLabel1
          .setForegroundColor(TITLERECORDCOUNTLABEL1_FORE);

      rowTwoRoundRectangle0.add(titleRecordCountLabel1);

      fFigureRecordCountLabel = new WrappingLabel();
      fFigureRecordCountLabel.setText("0.0");
      fFigureRecordCountLabel
          .setForegroundColor(FFIGURERECORDCOUNTLABEL_FORE);

      rowTwoRoundRectangle0.add(fFigureRecordCountLabel);

    }
View Full Code Here

Examples of org.eclipse.draw2d.RoundedRectangle

  /**
   * @generated
   */
  protected IFigure createNodeShape() {
    return primaryShape = new RoundedRectangle();
  }
View Full Code Here

Examples of org.eclipse.draw2d.RoundedRectangle

  /**
   * @generated
   */
  protected IFigure createNodeShape() {
    return primaryShape = new RoundedRectangle();
  }
View Full Code Here

Examples of org.eclipse.draw2d.RoundedRectangle

      WrappingLabel titelTaxonomyLabel0 = new WrappingLabel();
      titelTaxonomyLabel0.setText("Taxonomy");

      this.add(titelTaxonomyLabel0);

      RoundedRectangle roundedRectangleNameLabel0 = new RoundedRectangle();
      roundedRectangleNameLabel0.setCornerDimensions(new Dimension(
          getMapMode().DPtoLP(8), getMapMode().DPtoLP(8)));
      roundedRectangleNameLabel0.setOutline(false);
      roundedRectangleNameLabel0.setLineWidth(1);

      this.add(roundedRectangleNameLabel0);

      GridLayout layoutRoundedRectangleNameLabel0 = new GridLayout();
      layoutRoundedRectangleNameLabel0.numColumns = 2;
      layoutRoundedRectangleNameLabel0.makeColumnsEqualWidth = true;
      roundedRectangleNameLabel0
          .setLayoutManager(layoutRoundedRectangleNameLabel0);

      WrappingLabel titelTNameLabel1 = new WrappingLabel();
      titelTNameLabel1.setText("name:");

      roundedRectangleNameLabel0.add(titelTNameLabel1);

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

      roundedRectangleNameLabel0.add(fFigureTNameLabel);

    }
View Full Code Here

Examples of org.eclipse.draw2d.RoundedRectangle

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

      RoundedRectangle roundedRectangleChildFieldParentFieldLabel0 = new RoundedRectangle();
      roundedRectangleChildFieldParentFieldLabel0
          .setCornerDimensions(new Dimension(getMapMode().DPtoLP(8),
              getMapMode().DPtoLP(8)));
      roundedRectangleChildFieldParentFieldLabel0.setOutline(false);
      roundedRectangleChildFieldParentFieldLabel0.setLineWidth(1);

      this.add(roundedRectangleChildFieldParentFieldLabel0);

      GridLayout layoutRoundedRectangleChildFieldParentFieldLabel0 = new GridLayout();
      layoutRoundedRectangleChildFieldParentFieldLabel0.numColumns = 4;
      layoutRoundedRectangleChildFieldParentFieldLabel0.makeColumnsEqualWidth = true;
      roundedRectangleChildFieldParentFieldLabel0
          .setLayoutManager(layoutRoundedRectangleChildFieldParentFieldLabel0);

      WrappingLabel titleChildFieldLabel1 = new WrappingLabel();
      titleChildFieldLabel1.setText("child field:");

      roundedRectangleChildFieldParentFieldLabel0
          .add(titleChildFieldLabel1);

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

      roundedRectangleChildFieldParentFieldLabel0
          .add(fFigureChildFieldLabel);

      WrappingLabel titleParentFieldLabel1 = new WrappingLabel();
      titleParentFieldLabel1.setText("parent field:");

      roundedRectangleChildFieldParentFieldLabel0
          .add(titleParentFieldLabel1);

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

      roundedRectangleChildFieldParentFieldLabel0
          .add(fFigureParentFieldLabel);

    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.