Package org.eclipse.draw2d

Examples of org.eclipse.draw2d.Ellipse


    @Override
    protected void addEllipse() {
        ellipse.setBounds(new Rectangle(3, 3, 16, 16));

        Ellipse inner = new Ellipse();
        inner.setBounds(new Rectangle(6, 6, 10, 10));
        inner.setBackgroundColor(ColorConstants.black);
        ellipse.add(inner);

        Ellipse outer = new Ellipse();
        outer.setSize(22, 22);
        outer.setOutline(false);
        outer.add(ellipse);

        add(outer, new GridData(GridData.HORIZONTAL_ALIGN_CENTER));
    }
View Full Code Here


    @Override
    protected void addEllipse() {
        ellipse.setBounds(new Rectangle(3, 3, 16, 16));
        ellipse.setBackgroundColor(ColorConstants.black);
       
        Ellipse outer = new Ellipse();
        outer.setSize(22, 22);
        outer.setOutline(false);
        outer.add(ellipse);

        add(outer, new GridData(GridData.HORIZONTAL_ALIGN_CENTER));
    }
View Full Code Here

public class SVGEllipsePart extends ElementRecordPart {

  @Override
  protected IFigure createFigure() {
    // TODO provide custom Ellipse with elliptical border
    IFigure figure = new Ellipse();

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

    return figure;
  }
View Full Code Here

        LOW_HEIGHT - 2 * inset));
    return rect;
  }

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

        private static final Color color = new Color(Display.getCurrent(), 70, 130, 180);
       
        private Ellipse ellipse;
       
        protected void customizeFigure() {
            ellipse = new Ellipse();
            add(ellipse, 0);
            ellipse.setBackgroundColor(color);
            ellipse.setBounds(getBounds());
        }
View Full Code Here

    public static class JoinFigure extends AbstractElementFigure implements JoinFigureInterface {
       
        private Ellipse ellipse;
       
        protected void customizeFigure() {
            ellipse = new Ellipse();
            add(ellipse, 0);
            ellipse.setBackgroundColor(color);
            ellipse.setBounds(getBounds());
        }
View Full Code Here

TOP

Related Classes of org.eclipse.draw2d.Ellipse

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.