Examples of ImageFigure


Examples of org.eclipse.draw2d.ImageFigure

public abstract class Shape extends Figure {

  public Shape() {
    GridLayout layout = new GridLayout(1, false);
    super.setLayoutManager(layout);
    add(new ImageFigure(getShapeImage()), new GridData(SWT.BEGINNING, SWT.BEGINNING, false, false, 1, 1));
  }
View Full Code Here

Examples of org.eclipse.draw2d.ImageFigure

  {
    Point realLocation = this.getConfigurationManager().getDiagramEditor().calculateRealMouseLocation(mouseLocation);
    List<ImagePart> imageParts = getContainedImageParts();
    for (ImagePart imagePart : imageParts)
    {
      ImageFigure imageFigure = (ImageFigure)getPartFigure(imagePart);
      if (imageFigure != null && imageFigure.getBounds().contains(realLocation))
      {
        return imagePart;
      }
    }
    return null;
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.