org.eclipse.draw2d.GridLayout Java Examples

The following examples show how to use org.eclipse.draw2d.GridLayout. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CustomLaneEditPart.java    From bonita-studio with GNU General Public License v2.0 6 votes vote down vote up
public CustomLaneFigure() {
    final GridLayout layoutThis = new GridLayout();
    layoutThis.numColumns = 2;
    layoutThis.horizontalSpacing = 0;
    layoutThis.verticalSpacing = 0;
    layoutThis.marginWidth = 0;
    layoutThis.marginHeight = 0;
    setLayoutManager(layoutThis);

    setLineWidth(1);
    setOutline(true);
    setFill(true);
    setBackgroundColor(THIS_BACK);
    this.setPreferredSize(new Dimension(getMapMode().DPtoLP(975),
            getMapMode().DPtoLP(100)));
    setMinimumSize(new Dimension(-1,
            getMapMode().DPtoLP(100)));
    createContents();
}
 
Example #2
Source File: GridContainerController.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
public GridContainerController ( final SymbolController controller, final GridContainer element, final BasicViewElementFactory factory ) throws Exception
{
    this.figure = new Figure ();

    final GridLayout gridLayout = new GridLayout ( element.getColumns (), element.isEqualWidth () );
    gridLayout.horizontalSpacing = element.getHorizontalSpacing ();
    gridLayout.verticalSpacing = element.getVerticalSpacing ();
    gridLayout.marginHeight = element.getMarginHeight ();
    gridLayout.marginWidth = element.getMarginWidth ();

    this.figure.setLayoutManager ( gridLayout );

    for ( final GridChild child : element.getChildren () )
    {
        final Controller elementController = factory.create ( controller, child.getElement () );
        final IFigure childFigure = elementController.getFigure ();
        this.figure.add ( childFigure, convert ( child ) );
    }

    controller.addElement ( element, this );
}
 
Example #3
Source File: CsvSourceEditPart.java    From scava with Eclipse Public License 2.0 6 votes vote down vote up
/**
 * @generated
 */
public CsvSourceFigure() {

	GridLayout layoutThis = new GridLayout();
	layoutThis.numColumns = 1;
	layoutThis.makeColumnsEqualWidth = true;
	this.setLayoutManager(layoutThis);

	this.addPoint(new Point(getMapMode().DPtoLP(0), getMapMode().DPtoLP(0)));
	this.addPoint(new Point(getMapMode().DPtoLP(10), getMapMode().DPtoLP(0)));
	this.addPoint(new Point(getMapMode().DPtoLP(11), getMapMode().DPtoLP(2)));
	this.addPoint(new Point(getMapMode().DPtoLP(10), getMapMode().DPtoLP(4)));
	this.addPoint(new Point(getMapMode().DPtoLP(0), getMapMode().DPtoLP(4)));
	this.setFill(true);
	this.setBorder(new MarginBorder(getMapMode().DPtoLP(5), getMapMode().DPtoLP(5), getMapMode().DPtoLP(5),
			getMapMode().DPtoLP(5)));
	createContents();
}
 
Example #4
Source File: SourceEditPart.java    From scava with Eclipse Public License 2.0 6 votes vote down vote up
/**
 * @generated
 */
public SourceFigure() {

	GridLayout layoutThis = new GridLayout();
	layoutThis.numColumns = 1;
	layoutThis.makeColumnsEqualWidth = true;
	this.setLayoutManager(layoutThis);

	this.addPoint(new Point(getMapMode().DPtoLP(0), getMapMode().DPtoLP(0)));
	this.addPoint(new Point(getMapMode().DPtoLP(10), getMapMode().DPtoLP(0)));
	this.addPoint(new Point(getMapMode().DPtoLP(11), getMapMode().DPtoLP(2)));
	this.addPoint(new Point(getMapMode().DPtoLP(10), getMapMode().DPtoLP(4)));
	this.addPoint(new Point(getMapMode().DPtoLP(0), getMapMode().DPtoLP(4)));
	this.setFill(true);
	this.setBorder(new MarginBorder(getMapMode().DPtoLP(5), getMapMode().DPtoLP(5), getMapMode().DPtoLP(5),
			getMapMode().DPtoLP(5)));
	createContents();
}
 
Example #5
Source File: SubProcessEvent2EditPart.java    From bonita-studio with GNU General Public License v2.0 6 votes vote down vote up
/**
 * @generated
 */
public EventSubProcessFigure() {

	GridLayout layoutThis = new GridLayout();
	layoutThis.numColumns = 1;
	layoutThis.makeColumnsEqualWidth = true;
	layoutThis.marginWidth = 2;
	layoutThis.marginHeight = 10;
	this.setLayoutManager(layoutThis);

	this.setPreferredSize(new Dimension(getMapMode().DPtoLP(100), getMapMode().DPtoLP(50)));
	this.setMinimumSize(new Dimension(getMapMode().DPtoLP(100), getMapMode().DPtoLP(50)));
	this.setLineCap(SWT.CAP_ROUND);
	this.setLineWidth(2);
	this.setLineStyle(SWT.LINE_DOT);
	this.setLineDash(new float[] { 1.0f, 5.0f });
	this.setAntialias(SWT.ON);
	this.setCornerDimensions(new Dimension(15, 15));
	createContents();
}
 
Example #6
Source File: SectionCompartment.java    From JDeodorant with MIT License 6 votes vote down vote up
public SectionCompartment(int columns) {

		//setFont( Display.getCurrent().getSystemFont() ); 
		GridLayout layout = new GridLayout(columns,true);

		setLayoutManager(layout);
		setBorder(new CompartmentFigureBorder());

		this.add(sectionOne, new GridData(GridData.FILL_HORIZONTAL) );

		if( columns == 2 )
			this.add(sectionTwo, new GridData(GridData.FILL_HORIZONTAL));
		if(columns == 3){
			this.add(sectionTwo, new GridData(GridData.FILL_HORIZONTAL));
			this.add(sectionThree, new GridData(GridData.FILL_HORIZONTAL));	
		}
	}
 
Example #7
Source File: RoundDetailsPart.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
@Override
protected IFigure createMain ()
{
    final Figure rootFigure = new Figure ();

    rootFigure.setLayoutManager ( new GridLayout ( 3, true ) );

    rootFigure.add ( makeHeader (), new GridData ( GridData.BEGINNING, GridData.CENTER, true, false, 3, 1 ) );

    rootFigure.add ( createSourceValue (), new GridData ( GridData.CENTER, GridData.CENTER, true, true ) );
    rootFigure.add ( new Figure () );
    rootFigure.add ( createTargetValue (), new GridData ( GridData.CENTER, GridData.CENTER, true, true ) );

    rootFigure.add ( new Figure () );
    rootFigure.add ( createCommandPanel (), new GridData ( GridData.CENTER, GridData.CENTER, true, true ) );

    createRoundArrow ( rootFigure );

    return rootFigure;
}
 
Example #8
Source File: SinkEditPart.java    From scava with Eclipse Public License 2.0 6 votes vote down vote up
/**
 * @generated
 */
public SinkFigure() {

	GridLayout layoutThis = new GridLayout();
	layoutThis.numColumns = 1;
	layoutThis.makeColumnsEqualWidth = true;
	this.setLayoutManager(layoutThis);

	this.addPoint(new Point(getMapMode().DPtoLP(0), getMapMode().DPtoLP(0)));
	this.addPoint(new Point(getMapMode().DPtoLP(10), getMapMode().DPtoLP(0)));
	this.addPoint(new Point(getMapMode().DPtoLP(10), getMapMode().DPtoLP(4)));
	this.addPoint(new Point(getMapMode().DPtoLP(5), getMapMode().DPtoLP(6)));
	this.addPoint(new Point(getMapMode().DPtoLP(0), getMapMode().DPtoLP(4)));
	this.setFill(true);
	this.setBorder(new MarginBorder(getMapMode().DPtoLP(5), getMapMode().DPtoLP(5), getMapMode().DPtoLP(5),
			getMapMode().DPtoLP(5)));
	createContents();
}
 
Example #9
Source File: LaneEditPart.java    From bonita-studio with GNU General Public License v2.0 6 votes vote down vote up
/**
 * @generated
 */
public LaneFigure() {

	GridLayout layoutThis = new GridLayout();
	layoutThis.numColumns = 2;
	layoutThis.makeColumnsEqualWidth = false;
	layoutThis.horizontalSpacing = 0;
	layoutThis.verticalSpacing = 0;
	layoutThis.marginWidth = 0;
	layoutThis.marginHeight = 0;
	this.setLayoutManager(layoutThis);

	this.setBackgroundColor(THIS_BACK);
	this.setPreferredSize(new Dimension(getMapMode().DPtoLP(975), getMapMode().DPtoLP(100)));
	createContents();
}
 
Example #10
Source File: CsvSinkEditPart.java    From scava with Eclipse Public License 2.0 6 votes vote down vote up
/**
 * @generated
 */
public CsvSinkFigure() {

	GridLayout layoutThis = new GridLayout();
	layoutThis.numColumns = 1;
	layoutThis.makeColumnsEqualWidth = true;
	this.setLayoutManager(layoutThis);

	this.addPoint(new Point(getMapMode().DPtoLP(0), getMapMode().DPtoLP(0)));
	this.addPoint(new Point(getMapMode().DPtoLP(10), getMapMode().DPtoLP(0)));
	this.addPoint(new Point(getMapMode().DPtoLP(10), getMapMode().DPtoLP(4)));
	this.addPoint(new Point(getMapMode().DPtoLP(5), getMapMode().DPtoLP(6)));
	this.addPoint(new Point(getMapMode().DPtoLP(0), getMapMode().DPtoLP(4)));
	this.setFill(true);
	this.setBorder(new MarginBorder(getMapMode().DPtoLP(5), getMapMode().DPtoLP(5), getMapMode().DPtoLP(5),
			getMapMode().DPtoLP(5)));
	createContents();
}
 
Example #11
Source File: ProcessFigure.java    From olca-app with Mozilla Public License 2.0 6 votes vote down vote up
private void initializeFigure() {
	String tooltip = null;
	if (node.process instanceof ProcessDescriptor) {
		ProcessDescriptor d = (ProcessDescriptor) node.process;
		tooltip = Labels.of(d.processType)
				+ ": " + node.getName();
	} else {
		tooltip = M.ProductSystem + ": " + node.getName();
	}
	setToolTip(new Label(tooltip));
	setForegroundColor(TEXT_COLOR);
	setBounds(new Rectangle(0, 0, 0, 0));
	setSize(calculateSize());
	GridLayout layout = new GridLayout(1, true);
	layout.horizontalSpacing = 10;
	layout.verticalSpacing = 0;
	layout.marginHeight = MARGIN_HEIGHT;
	layout.marginWidth = MARGIN_WIDTH;
	setLayoutManager(layout);
	paintBorder();
}
 
Example #12
Source File: SubProcessEventEditPart.java    From bonita-studio with GNU General Public License v2.0 6 votes vote down vote up
/**
 * @generated
 */
public EventSubProcessFigure() {

	GridLayout layoutThis = new GridLayout();
	layoutThis.numColumns = 1;
	layoutThis.makeColumnsEqualWidth = true;
	layoutThis.marginWidth = 2;
	layoutThis.marginHeight = 10;
	this.setLayoutManager(layoutThis);

	this.setPreferredSize(new Dimension(getMapMode().DPtoLP(100), getMapMode().DPtoLP(50)));
	this.setMinimumSize(new Dimension(getMapMode().DPtoLP(100), getMapMode().DPtoLP(50)));
	this.setLineCap(SWT.CAP_ROUND);
	this.setLineWidth(2);
	this.setLineStyle(SWT.LINE_DOT);
	this.setLineDash(new float[] { 1.0f, 5.0f });
	this.setAntialias(SWT.ON);
	this.setCornerDimensions(new Dimension(15, 15));
	createContents();
}
 
Example #13
Source File: BoundaryTimerEvent2EditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @generated
 */
public BoundaryTimerEventFigure() {

	GridLayout layoutThis = new GridLayout();
	layoutThis.numColumns = 1;
	layoutThis.makeColumnsEqualWidth = true;
	this.setLayoutManager(layoutThis);

	this.setURI("platform:/plugin/org.bonitasoft.studio.pics/icons/figures/BoundaryTimerEvent.svgz");
	this.setPreferredSize(new Dimension(getMapMode().DPtoLP(25), getMapMode().DPtoLP(25)));
	this.setMaximumSize(new Dimension(getMapMode().DPtoLP(25), getMapMode().DPtoLP(25)));
	createContents();
}
 
Example #14
Source File: StartSignalEventEditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @generated
 */
public SignalStartEventFigure() {

	GridLayout layoutThis = new GridLayout();
	layoutThis.numColumns = 1;
	layoutThis.makeColumnsEqualWidth = true;
	this.setLayoutManager(layoutThis);

	this.setURI("platform:/plugin/org.bonitasoft.studio.pics/icons/figures/StartSignalEvent.svgz");
	this.setPreferredSize(new Dimension(getMapMode().DPtoLP(30), getMapMode().DPtoLP(30)));
	this.setMaximumSize(new Dimension(getMapMode().DPtoLP(30), getMapMode().DPtoLP(30)));
}
 
Example #15
Source File: EndMessageEventEditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @generated
 */
public MessageEndEventFigure() {

	GridLayout layoutThis = new GridLayout();
	layoutThis.numColumns = 1;
	layoutThis.makeColumnsEqualWidth = true;
	this.setLayoutManager(layoutThis);

	this.setURI("platform:/plugin/org.bonitasoft.studio.pics/icons/figures/EndMessageEvent.svgz");
	this.setPreferredSize(new Dimension(getMapMode().DPtoLP(30), getMapMode().DPtoLP(30)));
	this.setMaximumSize(new Dimension(getMapMode().DPtoLP(30), getMapMode().DPtoLP(30)));
}
 
Example #16
Source File: StartMessageEventEditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @generated
 */
public MessageStartEventFigure() {

	GridLayout layoutThis = new GridLayout();
	layoutThis.numColumns = 1;
	layoutThis.makeColumnsEqualWidth = true;
	this.setLayoutManager(layoutThis);

	this.setURI("platform:/plugin/org.bonitasoft.studio.pics/icons/figures/StartMessageEvent.svgz");
	this.setPreferredSize(new Dimension(getMapMode().DPtoLP(30), getMapMode().DPtoLP(30)));
	this.setMaximumSize(new Dimension(getMapMode().DPtoLP(30), getMapMode().DPtoLP(30)));
}
 
Example #17
Source File: SendTask2EditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @generated
 */
public ActivityFigure() {

	GridLayout layoutThis = new GridLayout();
	layoutThis.numColumns = 1;
	layoutThis.makeColumnsEqualWidth = true;
	layoutThis.marginWidth = 20;
	layoutThis.marginHeight = 5;
	this.setLayoutManager(layoutThis);

	this.setPreferredSize(new Dimension(getMapMode().DPtoLP(100), getMapMode().DPtoLP(50)));
	this.setMinimumSize(new Dimension(getMapMode().DPtoLP(100), getMapMode().DPtoLP(50)));
	this.setURI("platform:/plugin/org.bonitasoft.studio.pics/icons/figures/Activity.svgz");
	createContents();
}
 
Example #18
Source File: ScriptTask2EditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @generated
 */
public ActivityFigure() {

	GridLayout layoutThis = new GridLayout();
	layoutThis.numColumns = 1;
	layoutThis.makeColumnsEqualWidth = true;
	layoutThis.marginWidth = 20;
	layoutThis.marginHeight = 5;
	this.setLayoutManager(layoutThis);

	this.setPreferredSize(new Dimension(getMapMode().DPtoLP(100), getMapMode().DPtoLP(50)));
	this.setMinimumSize(new Dimension(getMapMode().DPtoLP(100), getMapMode().DPtoLP(50)));
	this.setURI("platform:/plugin/org.bonitasoft.studio.pics/icons/figures/Activity.svgz");
	createContents();
}
 
Example #19
Source File: EndSignalEvent2EditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @generated
 */
public SignalEndEventFigure() {

	GridLayout layoutThis = new GridLayout();
	layoutThis.numColumns = 1;
	layoutThis.makeColumnsEqualWidth = true;
	this.setLayoutManager(layoutThis);

	this.setURI("platform:/plugin/org.bonitasoft.studio.pics/icons/figures/EndSignalEvent.svgz");
	this.setPreferredSize(new Dimension(getMapMode().DPtoLP(30), getMapMode().DPtoLP(30)));
	this.setMaximumSize(new Dimension(getMapMode().DPtoLP(30), getMapMode().DPtoLP(30)));
}
 
Example #20
Source File: Event2EditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @generated
 */
public GenericEventFigure() {

	GridLayout layoutThis = new GridLayout();
	layoutThis.numColumns = 1;
	layoutThis.makeColumnsEqualWidth = true;
	this.setLayoutManager(layoutThis);

	this.setURI("platform:/plugin/org.bonitasoft.studio.pics/icons/figures/GenericEvent.svgz");
	this.setPreferredSize(new Dimension(getMapMode().DPtoLP(30), getMapMode().DPtoLP(30)));
	this.setMaximumSize(new Dimension(getMapMode().DPtoLP(30), getMapMode().DPtoLP(30)));
}
 
Example #21
Source File: ScriptTaskEditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @generated
 */
public ActivityFigure() {

	GridLayout layoutThis = new GridLayout();
	layoutThis.numColumns = 1;
	layoutThis.makeColumnsEqualWidth = true;
	layoutThis.marginWidth = 20;
	layoutThis.marginHeight = 5;
	this.setLayoutManager(layoutThis);

	this.setPreferredSize(new Dimension(getMapMode().DPtoLP(100), getMapMode().DPtoLP(50)));
	this.setMinimumSize(new Dimension(getMapMode().DPtoLP(100), getMapMode().DPtoLP(50)));
	this.setURI("platform:/plugin/org.bonitasoft.studio.pics/icons/figures/Activity.svgz");
	createContents();
}
 
Example #22
Source File: IntermediateCatchSignalEvent2EditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @generated
 */
public SignalCatchEventFigure() {

	GridLayout layoutThis = new GridLayout();
	layoutThis.numColumns = 1;
	layoutThis.makeColumnsEqualWidth = true;
	this.setLayoutManager(layoutThis);

	this.setURI("platform:/plugin/org.bonitasoft.studio.pics/icons/figures/CatchSignalEvent.svgz");
	this.setPreferredSize(new Dimension(getMapMode().DPtoLP(30), getMapMode().DPtoLP(30)));
	this.setMaximumSize(new Dimension(getMapMode().DPtoLP(30), getMapMode().DPtoLP(30)));
}
 
Example #23
Source File: StartSignalEvent2EditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @generated
 */
public SignalStartEventFigure() {

	GridLayout layoutThis = new GridLayout();
	layoutThis.numColumns = 1;
	layoutThis.makeColumnsEqualWidth = true;
	this.setLayoutManager(layoutThis);

	this.setURI("platform:/plugin/org.bonitasoft.studio.pics/icons/figures/StartSignalEvent.svgz");
	this.setPreferredSize(new Dimension(getMapMode().DPtoLP(30), getMapMode().DPtoLP(30)));
	this.setMaximumSize(new Dimension(getMapMode().DPtoLP(30), getMapMode().DPtoLP(30)));
}
 
Example #24
Source File: StartEventEditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @generated
 */
public StartEventFigure() {

	GridLayout layoutThis = new GridLayout();
	layoutThis.numColumns = 1;
	layoutThis.makeColumnsEqualWidth = true;
	this.setLayoutManager(layoutThis);

	this.setURI("platform:/plugin/org.bonitasoft.studio.pics/icons/figures/StartEvent.svgz");
	this.setPreferredSize(new Dimension(getMapMode().DPtoLP(30), getMapMode().DPtoLP(30)));
	this.setMaximumSize(new Dimension(getMapMode().DPtoLP(30), getMapMode().DPtoLP(30)));
	createContents();
}
 
Example #25
Source File: Activity2EditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @generated
 */
public ActivityFigure() {

	GridLayout layoutThis = new GridLayout();
	layoutThis.numColumns = 1;
	layoutThis.makeColumnsEqualWidth = true;
	layoutThis.marginWidth = 20;
	layoutThis.marginHeight = 5;
	this.setLayoutManager(layoutThis);

	this.setPreferredSize(new Dimension(getMapMode().DPtoLP(100), getMapMode().DPtoLP(50)));
	this.setMinimumSize(new Dimension(getMapMode().DPtoLP(100), getMapMode().DPtoLP(50)));
	this.setURI("platform:/plugin/org.bonitasoft.studio.pics/icons/figures/Activity.svgz");
	createContents();
}
 
Example #26
Source File: TaskEditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @generated
 */
public ActivityFigure() {

	GridLayout layoutThis = new GridLayout();
	layoutThis.numColumns = 1;
	layoutThis.makeColumnsEqualWidth = true;
	layoutThis.marginWidth = 20;
	layoutThis.marginHeight = 5;
	this.setLayoutManager(layoutThis);

	this.setPreferredSize(new Dimension(getMapMode().DPtoLP(100), getMapMode().DPtoLP(50)));
	this.setMinimumSize(new Dimension(getMapMode().DPtoLP(100), getMapMode().DPtoLP(50)));
	this.setURI("platform:/plugin/org.bonitasoft.studio.pics/icons/figures/Activity.svgz");
	createContents();
}
 
Example #27
Source File: EndEventEditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @generated
 */
public EndEventFigure() {

	GridLayout layoutThis = new GridLayout();
	layoutThis.numColumns = 1;
	layoutThis.makeColumnsEqualWidth = true;
	this.setLayoutManager(layoutThis);

	this.setURI("platform:/plugin/org.bonitasoft.studio.pics/icons/figures/EndEvent.svgz");
	this.setPreferredSize(new Dimension(getMapMode().DPtoLP(30), getMapMode().DPtoLP(30)));
	this.setMaximumSize(new Dimension(getMapMode().DPtoLP(30), getMapMode().DPtoLP(30)));
	createContents();
}
 
Example #28
Source File: EventEditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @generated
 */
public GenericEventFigure() {

	GridLayout layoutThis = new GridLayout();
	layoutThis.numColumns = 1;
	layoutThis.makeColumnsEqualWidth = true;
	this.setLayoutManager(layoutThis);

	this.setURI("platform:/plugin/org.bonitasoft.studio.pics/icons/figures/GenericEvent.svgz");
	this.setPreferredSize(new Dimension(getMapMode().DPtoLP(30), getMapMode().DPtoLP(30)));
	this.setMaximumSize(new Dimension(getMapMode().DPtoLP(30), getMapMode().DPtoLP(30)));
}
 
Example #29
Source File: ThrowLinkEventEditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @generated
 */
public LinkThrowEventFigure() {

	GridLayout layoutThis = new GridLayout();
	layoutThis.numColumns = 1;
	layoutThis.makeColumnsEqualWidth = true;
	this.setLayoutManager(layoutThis);

	this.setURI("platform:/plugin/org.bonitasoft.studio.pics/icons/figures/ThrowLinkEvent.svgz");
	this.setPreferredSize(new Dimension(getMapMode().DPtoLP(30), getMapMode().DPtoLP(30)));
	this.setMaximumSize(new Dimension(getMapMode().DPtoLP(30), getMapMode().DPtoLP(30)));
}
 
Example #30
Source File: CatchLinkEventEditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @generated
 */
public LinkCatchEventFigure() {

	GridLayout layoutThis = new GridLayout();
	layoutThis.numColumns = 1;
	layoutThis.makeColumnsEqualWidth = true;
	this.setLayoutManager(layoutThis);

	this.setURI("platform:/plugin/org.bonitasoft.studio.pics/icons/figures/CatchLinkEvent.svgz");
	this.setPreferredSize(new Dimension(getMapMode().DPtoLP(30), getMapMode().DPtoLP(30)));
	this.setMaximumSize(new Dimension(getMapMode().DPtoLP(30), getMapMode().DPtoLP(30)));
}