Package org.eclipse.draw2d

Examples of org.eclipse.draw2d.ViewportLayout


   
    // We need to modify the viewport layout so that it adjusts the
    // size of the viewport contents according to the viewport size.
    // The contents cannot be bigger than the viewport otherwise it
    // will break the tray scrolling.
    canvas.getViewport().setLayoutManager(new ViewportLayout() {
     
      @Override
      public void layout(IFigure figure) {
        Viewport viewport = (Viewport)figure;
        IFigure contents = viewport.getContents();
View Full Code Here

TOP

Related Classes of org.eclipse.draw2d.ViewportLayout

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.