Package org.eclipse.draw2d

Examples of org.eclipse.draw2d.FreeformLayout


     * @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() {
    Figure f = new MusicDiagramDrawableFreeformLayer(
        (MusicDiagram) getModel());
    f.setLayoutManager(new FreeformLayout());
    f.setBorder(new MarginBorder(10));   
    return f;
  }
View Full Code Here

   */
  public void automaticallyLayoutGraphs(int direction) {
    LayoutManager layoutMgr = new GraphLayoutManager(this, direction);
    layoutMgr.layout(getFigure());

    getFigure().setLayoutManager(new FreeformLayout());
    getFigure().revalidate();
  }
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();
View Full Code Here

   * @param nodeShape instance of generated figure class
   * @generated
   */
  protected IFigure setupContentPane(IFigure nodeShape) {
    if (nodeShape.getLayoutManager() == null) {
      nodeShape.setLayoutManager(new FreeformLayout() {

        public Object getConstraint(IFigure figure) {
          Object result = constraints.get(figure);
          if (result == null) {
            result = new Rectangle(0, 0, -1, -1);
View Full Code Here

     * @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

import org.eclipse.draw2d.geometry.Rectangle;

@SuppressWarnings("all")
public class RootLayer extends FreeformLayer {
  public RootLayer() {
    FreeformLayout _freeformLayout = new FreeformLayout();
    this.setLayoutManager(_freeformLayout);
  }
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();
        flowLayout.setMajorAlignment(FlowLayout.ALIGN_CENTER);
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

TOP

Related Classes of org.eclipse.draw2d.FreeformLayout

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.