Package org.eclipse.draw2d

Examples of org.eclipse.draw2d.ImageFigure


    public TitleFigure() {
      super();
      setLayoutManager(new TitleLayout());
      setOpaque(true);
      setBackgroundColor(CommonUIPlugin.getDefault().getColorRegistry().get(IDetailsColors.COLOR_LIGHT_BACKGROUND));
      add(new ImageFigure(getLabelProvider().getImage(getModel())));
      textLabel = new Label(getLabelProvider().getText(getModel()));
      textLabel.setLabelAlignment(PositionConstants.LEFT);
      add(textLabel);
     
      removeButton = new NoBorderButton(CommonUIPlugin.getDefault().getImageRegistry().get(ICommonUIConstants.ICON_TRAY_CATEGORY_REMOVE_BUTTON)) {
View Full Code Here


            }
          }
        });
        trayComposite.addListener(TrayComposite.EVENT_COLLAPSED_STATE_CHANGED, new Listener() {
          public void handleEvent(Event event) {
            setContents(new ImageFigure(getButtonImage()));
          }
        });
      }
View Full Code Here

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

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

  {
    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

Related Classes of org.eclipse.draw2d.ImageFigure

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.