Package org.springframework.ide.eclipse.beans.ui.graph.figures

Source Code of org.springframework.ide.eclipse.beans.ui.graph.figures.ConstructorArgumentFigure

/*******************************************************************************
* Copyright (c) 2004, 2007 Spring IDE Developers
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
*     Spring IDE Developers - initial API and implementation
*******************************************************************************/
package org.springframework.ide.eclipse.beans.ui.graph.figures;

import org.eclipse.draw2d.CompoundBorder;
import org.eclipse.draw2d.Figure;
import org.eclipse.draw2d.MarginBorder;
import org.eclipse.draw2d.ToolbarLayout;

/**
* @author Torsten Juergeleit
* @author Christian Dupuis
*/
public class ConstructorArgumentFigure extends Figure {

  public ConstructorArgumentFigure() {
    ToolbarLayout layout = new ToolbarLayout();
    layout.setMinorAlignment(ToolbarLayout.ALIGN_TOPLEFT);
    layout.setStretchMinorAxis(false);
    layout.setSpacing(2);
    setLayoutManager(layout);
    setBorder(new CompoundBorder(new CompartmentBorder(),
                   new MarginBorder(2)));
  }
}
TOP

Related Classes of org.springframework.ide.eclipse.beans.ui.graph.figures.ConstructorArgumentFigure

TOP
Copyright © 2018 www.massapi.com. 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.