Search in sources :

Example 41 with IFigure

use of org.eclipse.draw2d.IFigure in project tdi-studio-se by Talend.

the class ActorBusinessItemEditPart method createNodeFigure.

/**
     * Creates figure for this edit part.
     * 
     * Body of this method does not depend on settings in generation model so you may safely remove <i>generated</i> tag
     * and modify it.
     * 
     * @generated
     */
protected NodeFigure createNodeFigure() {
    NodeFigure figure = createNodePlate();
    figure.setLayoutManager(new StackLayout());
    IFigure shape = createNodeShape();
    figure.add(shape);
    contentPane = setupContentPane(shape);
    return figure;
}
Also used : DefaultSizeNodeFigure(org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure) NodeFigure(org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure) StackLayout(org.eclipse.draw2d.StackLayout) IFigure(org.eclipse.draw2d.IFigure)

Example 42 with IFigure

use of org.eclipse.draw2d.IFigure in project tdi-studio-se by Talend.

the class DatabaseBusinessItemEditPart method createNodeFigure.

/**
     * Creates figure for this edit part.
     * 
     * Body of this method does not depend on settings in generation model so you may safely remove <i>generated</i> tag
     * and modify it.
     * 
     * @generated
     */
protected NodeFigure createNodeFigure() {
    NodeFigure figure = createNodePlate();
    figure.setLayoutManager(new StackLayout());
    IFigure shape = createNodeShape();
    figure.add(shape);
    contentPane = setupContentPane(shape);
    return figure;
}
Also used : DefaultSizeNodeFigure(org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure) NodeFigure(org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure) StackLayout(org.eclipse.draw2d.StackLayout) IFigure(org.eclipse.draw2d.IFigure)

Example 43 with IFigure

use of org.eclipse.draw2d.IFigure in project tdi-studio-se by Talend.

the class BidirectionalBusinessItemRelationshipNameEditPart method createFigure.

/**
     * @generated
     */
protected IFigure createFigure() {
    IFigure label = createFigurePrim();
    defaultText = getLabelTextHelper(label);
    return label;
}
Also used : IFigure(org.eclipse.draw2d.IFigure)

Example 44 with IFigure

use of org.eclipse.draw2d.IFigure in project tdi-studio-se by Talend.

the class DecisionBusinessItemEditPart method createNodeFigure.

/**
     * Creates figure for this edit part.
     * 
     * Body of this method does not depend on settings in generation model so you may safely remove <i>generated</i> tag
     * and modify it.
     * 
     * @generated
     */
protected NodeFigure createNodeFigure() {
    NodeFigure figure = createNodePlate();
    figure.setLayoutManager(new StackLayout());
    IFigure shape = createNodeShape();
    figure.add(shape);
    contentPane = setupContentPane(shape);
    return figure;
}
Also used : DefaultSizeNodeFigure(org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure) NodeFigure(org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure) StackLayout(org.eclipse.draw2d.StackLayout) IFigure(org.eclipse.draw2d.IFigure)

Example 45 with IFigure

use of org.eclipse.draw2d.IFigure in project tdi-studio-se by Talend.

the class BusinessItemRelationshipNameEditPart method createFigure.

/**
     * @generated
     */
protected IFigure createFigure() {
    IFigure label = createFigurePrim();
    defaultText = getLabelTextHelper(label);
    return label;
}
Also used : IFigure(org.eclipse.draw2d.IFigure)

Aggregations

IFigure (org.eclipse.draw2d.IFigure)440 Rectangle (org.eclipse.draw2d.geometry.Rectangle)120 Point (org.eclipse.draw2d.geometry.Point)77 Dimension (org.eclipse.draw2d.geometry.Dimension)56 Figure (org.eclipse.draw2d.Figure)38 List (java.util.List)37 GraphicalEditPart (org.eclipse.gef.GraphicalEditPart)35 IWidgetPropertyChangeHandler (org.csstudio.opibuilder.properties.IWidgetPropertyChangeHandler)32 Graphics (org.eclipse.draw2d.Graphics)17 Iterator (java.util.Iterator)15 ArrayList (java.util.ArrayList)14 EditPart (org.eclipse.gef.EditPart)13 StackLayout (org.eclipse.draw2d.StackLayout)12 DefaultSizeNodeFigure (org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure)12 NodeFigure (org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure)12 Insets (org.eclipse.draw2d.geometry.Insets)11 INodeFigure (org.whole.lang.ui.figures.INodeFigure)11 MarginBorder (org.eclipse.draw2d.MarginBorder)10 ToolbarLayout (org.eclipse.draw2d.ToolbarLayout)10 AbstractGraphicalEditPart (org.eclipse.gef.editparts.AbstractGraphicalEditPart)10