Package org.eclipse.draw2d

Examples of org.eclipse.draw2d.FreeformLayer


    /* (non-Javadoc)
     * @see org.eclipse.gef.editparts.AbstractGraphicalEditPart#createFigure()
     */
    protected IFigure createFigure() {
        Figure f = new FreeformLayer();
        f.setBorder( new MarginBorder( 3 ) );
        f.setLayoutManager( new FreeformLayout() );
        return f;
    }
View Full Code Here


    /* (non-Javadoc)
     * @see org.eclipse.gef.editparts.AbstractGraphicalEditPart#createFigure()
     */
    protected IFigure createFigure() {
        Figure f = new FreeformLayer();
        f.setBorder( new MarginBorder( 3 ) );
        f.setLayoutManager( new FreeformLayout() );
        return f;
    }
View Full Code Here

*/
public class SVGRootPart extends SVGRectPart {

  @Override
  protected IFigure createFigure() {
    IFigure figure = new FreeformLayer();
    figure.setLayoutManager(new FreeformLayout());

    return figure;
  }
View Full Code Here

    /* (non-Javadoc)
     * @see org.eclipse.gef.editparts.AbstractGraphicalEditPart#createFigure()
     */
    protected IFigure createFigure() {
        Figure f = new FreeformLayer();
        f.setBorder( new MarginBorder( 3 ) );
        f.setLayoutManager( new FreeformLayout() );
        return f;
    }
View Full Code Here

  @Override
  protected IFigure createFigure() {
    // The figure associated with this graph edit part is only a
    // free form layer
    Figure f = new FreeformLayer();
    f.setLayoutManager(new FreeformLayout());

    // Create the static router for the connection layer
    ConnectionLayer connLayer = (ConnectionLayer) getLayer(LayerConstants.CONNECTION_LAYER);
    ShortestPathConnectionRouter router = new ShortestPathConnectionRouter(
        f);
View Full Code Here

  @Override
  protected IFigure createFigure() {
    // The figure associated with this graph edit part is only a
    // free form layer
    Figure root = new FreeformLayer();
    root.setLayoutManager(new FreeformLayout());

    IStatus status = (IStatus) getModel();
    ByteArrayOutputStream bos = new ByteArrayOutputStream();
    Throwable exc = status.getException();
    Throwable cause = exc.getCause();
    if (cause == null) {
      exc.printStackTrace(new PrintStream(bos));
    } else {
      cause.printStackTrace(new PrintStream(bos));
    }

    Display d = Display.getCurrent();
    Image image = d.getSystemImage(SWT.ICON_ERROR);
    Label labelImage = new Label(image);
    root.add(labelImage, new Rectangle(5, 5, -1, -1));

    Label label = new Label(status.getMessage() + ": " + exc.getMessage()
        + "\n" + bos.toString());
    root.add(label, new Rectangle(10 + image.getBounds().width, 5, -1, -1));

    return root;
  }
View Full Code Here

     * (non-Javadoc)
     *
     * @see org.eclipse.gef.editparts.AbstractGraphicalEditPart#createFigure()
     */
    protected IFigure createFigure() {
        Figure f = new FreeformLayer();
        f.setBorder(new MarginBorder(3));
        f.setLayoutManager(new FreeformLayout());

        // Create the static router for the connection layer
        ConnectionLayer connLayer = (ConnectionLayer) getLayer(LayerConstants.CONNECTION_LAYER);
        connLayer.setConnectionRouter(new ShortestPathConnectionRouter(f));

View Full Code Here

   
    public ElementContainerFigure() {
        setSize(200, 150);
        setBorder(new LineBorder(1));
        ScrollPane scrollpane = new ScrollPane();
        pane = new FreeformLayer();
        pane.setLayoutManager(new FreeformLayout());
        setLayoutManager(new StackLayout());
        add(scrollpane);
        IFigure panel = new Layer();
        FlowLayout flowLayout = new FlowLayout();
View Full Code Here

  }
 
  @Override
  public void render()
  {
    Figure f = new FreeformLayer();
    f.setBorder(new MarginBorder(3));
    f.setLayoutManager(new FreeformLayout());
    setFigure(f);   
  }
View Full Code Here

* Returns a Figure to represent this.
*
* @return  Figure.
*/
protected IFigure createFigure() {
  Figure f = new FreeformLayer();
//  f.setBorder(new GroupBoxBorder("Diagram"));
  f.setLayoutManager(new FreeformLayout());
  f.setBorder(new MarginBorder(5));
  return f;
}
View Full Code Here

TOP

Related Classes of org.eclipse.draw2d.FreeformLayer

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.