Package org.eclipse.draw2d

Examples of org.eclipse.draw2d.RectangleFigure


          .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

    private RectangleFigure rectangleFigure;
    private Label label;

    public BoxFigure() {
        this.rectangleFigure = new RectangleFigure();
        this.label = new Label();
        this.add(rectangleFigure);
        this.add(label);
        setOpaque(false);
    }
View Full Code Here

public class SVGRectPart extends ElementRecordPart {

  @Override
  protected IFigure createFigure() {
    IFigure figure = new RectangleFigure();

    XYLayout layout = new XYLayout();
    figure.setLayoutManager(layout);
    figure.setForegroundColor(ColorConstants.black);

    Border line = new LineBorder(new Color(null, 0, 0, 0));
    figure.setBorder(line);

    return figure;
  }
View Full Code Here

    figure.paint(swtGraphics);
    return imageBuffer;
  }

  private static RectangleFigure getRectangleIconFigure() {
    RectangleFigure rect = new RectangleFigure();
    rect.setBackgroundColor(red);
    rect.setForegroundColor(blue);
    rect.setBounds(new Rectangle(inset, inset, LOW_WIDTH - 2 * inset,
        LOW_HEIGHT - 2 * inset));
    return rect;
  }
View Full Code Here

    /**
     * @param rect
     * @return the default rectangle figure for the requested visual rectangle
     */
    protected final RectangleFigure showFeedbackRect(Rectangle rect) {
        RectangleFigure pf = createFeedbackFigure();
        pf.translateToRelative(rect);
        pf.setBounds(rect);
        return pf;
    }
View Full Code Here

    /**
     * @return the newly created feedback figure
     */
    protected RectangleFigure createFeedbackFigure()
    {
        RectangleFigure feedbackFigure = new RectangleFigure();
        feedbackFigure.setFill(true);
        feedbackFigure.setOutline(true);
        feedbackFigure.setLineWidth(1);
        feedbackFigure.setForegroundColor(ColorConstants.red);
        feedbackFigure.setBounds(new Rectangle(0, 0, 0, 0));
        feedbackFigure.setXOR(true);
        addFeedback(feedbackFigure);
        return feedbackFigure;
    }
View Full Code Here

            figureSize++;
        }
       
    IFigure[] figures = new IFigure[figureSize];
    for (int i = 0; i < rects.length; i++) {
      RectangleFigure fig = new RectangleFigure();
      fig.setFill(false);
      fig.setOutline(true);
      fig.setLineWidth(1);
      fig.setForegroundColor(HOVER_FEEDBACK_COLOR);
      addFeedback(fig);

      Rectangle r = rects[i].getCopy();
      figure.translateToAbsolute(r);
      fig.translateToRelative(r);
      fig.setBounds(r);

      figures[i] = fig;
    }
      
    if (_showLabelFeedback)
View Full Code Here

   
    private void addMouseOverBorder()
    {
        if (_mouseOverBorder == null)
        {
            _mouseOverBorder = new RectangleFigure();
            _mouseOverBorder.setFill(false);
            _mouseOverBorder.setOutline(true);
            _mouseOverBorder.setLineWidth(1);
            _mouseOverBorder.setForegroundColor(HOVER_FEEDBACK_COLOR);
        }
View Full Code Here

  /**
   * @return the feedback figure
   */
  protected RectangleFigure getFeedbackFigure() {
    if (_feedbackFigure == null) {
      _feedbackFigure = new RectangleFigure();
      _feedbackFigure.setFill(true);
      _feedbackFigure.setOutline(true);
      _feedbackFigure.setLineWidth(1);
      _feedbackFigure.setForegroundColor(ColorConstants.red);
      _feedbackFigure.setBounds(new Rectangle(0, 0, 0, 0));
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.