Package org.eclipse.draw2d

Examples of org.eclipse.draw2d.LightweightSystem


  @Override
  public void createControl(Composite parent) {
    overview = new Canvas(parent, SWT.NONE);
    overview.setBackground(ColorConstants.listBackground);
    LightweightSystem lws = new LightweightSystem(overview);
    thumbnail = new ScrollableThumbnail((Viewport)rootEditPart.getFigure());
    thumbnail.setBorder(new MarginBorder(3));
    thumbnail.setSource(rootEditPart.getLayer(
                        LayerConstants.PRINTABLE_LAYERS));
    lws.setContents(thumbnail);
  }
View Full Code Here


    public void initializeOutlineViewer() {
      setContents(diagram);
    }

    protected void initializeOverview() {
      LightweightSystem lws = new LightweightSystem(overview);
      RootEditPart rep = getGraphicalViewer().getRootEditPart();
      if (rep instanceof ScalableRootEditPart) {
        ScalableRootEditPart root = (ScalableRootEditPart) rep;
        thumbnail = new ScrollableThumbnail((Viewport) root.getFigure());
        thumbnail.setBorder(new MarginBorder(3));
        thumbnail.setSource(root
            .getLayer(LayerConstants.PRINTABLE_LAYERS));
        lws.setContents(thumbnail);
        disposeListener = new DisposeListener() {

          public void widgetDisposed(DisposeEvent e) {
            if (thumbnail != null) {
              thumbnail.deactivate();
View Full Code Here

TOP

Related Classes of org.eclipse.draw2d.LightweightSystem

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.