Java 类org.eclipse.draw2d.Panel 实例源码

项目:chrysalix    文件:FocusTreeLightweight.java   
void constructFocusLine( final String description,
                         final Color color,
                         final int y,
                         final int height ) {
    focusLine = new Panel();
    canvas.add( focusLine );
    focusLine.setToolTip( new Label( description ) );
    focusLine.setBackgroundColor( color );
    // Make focus line extend horizontally across entire canvas
    focusLine.setBounds( new Rectangle( 0, y, 0, height ) );
    canvas.addFigureListener( new FigureListener() {

        @Override
        public void figureMoved( final IFigure source ) {
            focusTree.controller.treeResized();
        }
    } );
}
项目:billie    文件:Draw2DViewer.java   
private void saveImg(Panel content){
    Image image = new Image(Display.getCurrent(), content.getBounds().width, content.getBounds().height);
    GC gc = new GC(image);
    SWTGraphics graphics = new SWTGraphics(gc);
    content.paint(graphics);
    ImageLoader save = new ImageLoader();
    save.data = new ImageData[] {image.getImageData()};
    save.save(snapShotParams.saveImgName, snapShotParams.imgType);
    image.dispose();
    gc.dispose();

}
项目:billie    文件:Draw2DViewer.java   
public void showContent(Panel content){
    canvas.setContents(content);
    shell.open();

    if(snapShotParams.makeSnap){
        saveImg(content);
    }

    while (!shell.isDisposed()) {
        if (!display.readAndDispatch()) display.sleep();
    }
    canvas.dispose();
    display.dispose();
    System.exit(0);
}
项目:wt-studio    文件:ScrollTableFigure.java   
public ScrollTableFigure()
{
    setOpaque(true);
    setBackgroundColor(ColorConstants.white);
    ToolbarLayout layout = new ToolbarLayout();
    layout.setMinorAlignment(ToolbarLayout.ALIGN_TOPLEFT);
    layout.setStretchMinorAxis(false);
    layout.setSpacing(2);
    panel = new Panel();
    panel.setBorder(new CompoundBorder(new LineBorder(), new MarginBorder(3)));
    panel.setLayoutManager(layout);
    setContents(panel);
}
项目:d-case_editor    文件:GoalEditPart.java   
/**
    * @generated NOT
    */
   private void createContents() {

       // creates a custom layout. 
       CustomMultiLineFlowLayout layoutTop = new CustomMultiLineFlowLayout();

       layoutTop.setStretchMinorAxis(false);
       layoutTop.setMinorAlignment(FlowLayout.ALIGN_LEFTTOP);

       layoutTop.setMajorAlignment(FlowLayout.ALIGN_LEFTTOP);
       layoutTop.setMajorSpacing(NODE_MARGIN_VERTICAL);
       layoutTop.setMinorSpacing(0);
       layoutTop.setHorizontal(true);

       Panel panelTop = new Panel();
       panelTop.setLayoutManager(layoutTop);
       this.add(panelTop, BorderLayout.TOP);

       fFigureGoalNameFigure = new CustomWrappingLabel();
       fFigureGoalNameFigure.setText("");

       panelTop.add(fFigureGoalNameFigure);

       fFigureGoalUserdef001Figure = new CustomWrappingLabel();
       fFigureGoalUserdef001Figure.setText("");

       panelTop.add(fFigureGoalUserdef001Figure);

       fFigureGoalDescFigure = new CustomWrappingLabel();

       // sets the label text should wrap.
       fFigureGoalDescFigure.setTextWrap(true);

       fFigureGoalDescFigure.setText("[Undefined]");

       //this.add(fFigureGoalDescFigure, BorderLayout.CENTER);

       fFigureGoalUserdef002Figure = new CustomWrappingLabel();
       fFigureGoalUserdef002Figure.setText("");

CustomMultiLineFlowLayout layoutBottom = new CustomMultiLineFlowLayout();

layoutBottom.setStretchMinorAxis(false);
       layoutBottom.setMinorAlignment(FlowLayout.ALIGN_LEFTTOP);

       layoutBottom.setMajorAlignment(FlowLayout.ALIGN_LEFTTOP);
       layoutBottom.setMajorSpacing(NODE_MARGIN_VERTICAL);
       layoutBottom.setMinorSpacing(0);
       layoutBottom.setHorizontal(true);

       Panel panelBottom = new Panel();
       panelBottom.setLayoutManager(layoutBottom);
       this.add(panelBottom, BorderLayout.CENTER);
       panelBottom.add(fFigureGoalDescFigure);

       fFigureGoalAttachmentFigure = new CustomWrappingLabel();
       fFigureGoalAttachmentFigure.setTextWrap(true);
       fFigureGoalAttachmentFigure.setText("");
       panelBottom.add(fFigureGoalAttachmentFigure);

       fFigureThumb = new DcaseThumbnailEx();
       fFigureThumb.setSource(fFigureGoalNameFigure); // dummy
       fFigureThumb.setVisible(false);
       fThumbNodeFigure = new DefaultSizeNodeFigure(0, 0);
       fThumbNodeFigure.setLayoutManager(new StackLayout());
       fThumbNodeFigure.add(fFigureThumb);
       panelBottom.add(fThumbNodeFigure);

       this.add(fFigureGoalUserdef002Figure, BorderLayout.BOTTOM);

       fFigureGoalResponsibilityFigure = new WrappingLabel();
       fFigureGoalResponsibilityFigure.setTextWrap(true);
       fFigureGoalResponsibilityFigure.setText(""); //$NON-NLS-1$
       this.add(fFigureGoalResponsibilityFigure, BorderLayout.RIGHT);

       addMouseMotionListener(this);
   }
项目:d-case_editor    文件:PolicyEditPart.java   
/**
 * @generated NOT
 */
private void createContents() {

    // creates custom layout.
    CustomMultiLineFlowLayout layoutTop = new CustomMultiLineFlowLayout();

    layoutTop.setStretchMinorAxis(false);
    layoutTop.setMinorAlignment(FlowLayout.ALIGN_LEFTTOP);

    layoutTop.setMajorAlignment(FlowLayout.ALIGN_LEFTTOP);
    layoutTop.setMajorSpacing(NODE_MARGIN_VERTICAL);
    layoutTop.setMinorSpacing(0);
    layoutTop.setHorizontal(true);

    Panel panelTop = new Panel();
    panelTop.setLayoutManager(layoutTop);
    this.add(panelTop, BorderLayout.TOP);

    fFigurePolicyNameFigure = new CustomWrappingLabel();
    fFigurePolicyNameFigure.setText("");

    panelTop.add(fFigurePolicyNameFigure);

    fFigurePolicyUserdef001Figure = new CustomWrappingLabel();
    fFigurePolicyUserdef001Figure.setText("");
    fFigurePolicyUserdef001Figure.setVisible(false);

    panelTop.add(fFigurePolicyUserdef001Figure);

    fFigurePolicyDescFigure = new CustomWrappingLabel();

    // sets the label text should wrap.
    fFigurePolicyDescFigure.setTextWrap(true);

    fFigurePolicyDescFigure.setText("[Undefined]");

    this.add(fFigurePolicyDescFigure, BorderLayout.CENTER);

    fFigurePolicyUserdef002Figure = new CustomWrappingLabel();
    fFigurePolicyUserdef002Figure.setText("");
    fFigurePolicyUserdef002Figure.setVisible(false);

    this.add(fFigurePolicyUserdef002Figure, BorderLayout.BOTTOM);

    fFigurePolicyResponsibilityFigure = new WrappingLabel();
    fFigurePolicyResponsibilityFigure.setTextWrap(true);
    fFigurePolicyResponsibilityFigure.setText(""); //$NON-NLS-1$
    this.add(fFigurePolicyResponsibilityFigure, BorderLayout.RIGHT);

    addMouseMotionListener(this);           
}
项目:d-case_editor    文件:Userdef001EditPart.java   
/**
 * @generated NOT
 */
private void createContents() {

    // create a custom layout.
    CustomMultiLineFlowLayout layoutTop = new CustomMultiLineFlowLayout();

    layoutTop.setStretchMinorAxis(false);
    layoutTop.setMinorAlignment(FlowLayout.ALIGN_LEFTTOP);

    layoutTop.setMajorAlignment(FlowLayout.ALIGN_LEFTTOP);
    layoutTop.setMajorSpacing(NODE_MARGIN_VERTICAL);
    layoutTop.setMinorSpacing(0);
    layoutTop.setHorizontal(true);

    Panel panelTop = new Panel();
    panelTop.setLayoutManager(layoutTop);
    this.add(panelTop, BorderLayout.TOP);

    fFigureUserdef001NameFigure = new CustomWrappingLabel();
    fFigureUserdef001NameFigure.setText("");

    panelTop.add(fFigureUserdef001NameFigure);

    fFigureUserdef001Userdef001Figure = new CustomWrappingLabel();
    fFigureUserdef001Userdef001Figure.setText("");

    panelTop.add(fFigureUserdef001Userdef001Figure);

    fFigureUserdef001DescFigure = new CustomWrappingLabel();

    // sets the label text should wrap.
    fFigureUserdef001DescFigure.setTextWrap(true);

    fFigureUserdef001DescFigure.setText("[Undefined]");

    this.add(fFigureUserdef001DescFigure, BorderLayout.CENTER);

    fFigureUserdef001Userdef002Figure = new CustomWrappingLabel();
    fFigureUserdef001Userdef002Figure.setText("");

    //this.add(fFigureUserdef001Userdef002Figure, BorderLayout.BOTTOM);

    CustomMultiLineFlowLayout layoutBottom = new CustomMultiLineFlowLayout();

    layoutBottom.setStretchMinorAxis(false);
    layoutBottom.setMinorAlignment(FlowLayout.ALIGN_LEFTTOP);

    layoutBottom.setMajorAlignment(FlowLayout.ALIGN_LEFTTOP);
    layoutBottom.setMajorSpacing(NODE_MARGIN_VERTICAL);
    layoutBottom.setMinorSpacing(0);
    layoutBottom.setHorizontal(true);

    Panel panelBottom = new Panel();
    panelBottom.setLayoutManager(layoutBottom);
    this.add(panelBottom, BorderLayout.CENTER);
    panelBottom.add(fFigureUserdef001DescFigure);
    fFigureUserdef001AttachmentFigure = new CustomWrappingLabel();
    fFigureUserdef001AttachmentFigure.setTextWrap(true);
    fFigureUserdef001AttachmentFigure.setText("[Undefined]");
    panelBottom.add(fFigureUserdef001AttachmentFigure);

    fFigureThumb = new DcaseThumbnailEx();
    fFigureThumb.setSource(fFigureUserdef001NameFigure); // dummy
    fFigureThumb.setVisible(false);
    fThumbNodeFigure = new DefaultSizeNodeFigure(0, 0);
    fThumbNodeFigure.setLayoutManager(new StackLayout());
    fThumbNodeFigure.add(fFigureThumb);
    panelBottom.add(fThumbNodeFigure);

    this.add(fFigureUserdef001Userdef002Figure, BorderLayout.BOTTOM);

    fFigureUserdef001ResponsibilityFigure = new WrappingLabel();
    fFigureUserdef001ResponsibilityFigure.setTextWrap(true);
    fFigureUserdef001ResponsibilityFigure.setText(""); //$NON-NLS-1$
    this.add(fFigureUserdef001ResponsibilityFigure, BorderLayout.RIGHT);

    addMouseMotionListener(this);
}
项目:d-case_editor    文件:Userdef005EditPart.java   
/**
 * @generated NOT
 */
private void createContents() {

    // creates a custom layout.
    CustomMultiLineFlowLayout layoutTop = new CustomMultiLineFlowLayout();

    layoutTop.setStretchMinorAxis(false);
    layoutTop.setMinorAlignment(FlowLayout.ALIGN_LEFTTOP);

    layoutTop.setMajorAlignment(FlowLayout.ALIGN_LEFTTOP);
    layoutTop.setMajorSpacing(NODE_MARGIN_VERTICAL);
    layoutTop.setMinorSpacing(0);
    layoutTop.setHorizontal(true);

    Panel panelTop = new Panel();
    panelTop.setLayoutManager(layoutTop);
    this.add(panelTop, BorderLayout.TOP);

    fFigureUserdef005NameFigure = new CustomWrappingLabel();
    fFigureUserdef005NameFigure.setText("");

    panelTop.add(fFigureUserdef005NameFigure);

    fFigureUserdef005Userdef001Figure = new CustomWrappingLabel();
    fFigureUserdef005Userdef001Figure.setText("");

    panelTop.add(fFigureUserdef005Userdef001Figure);

    fFigureUserdef005DescFigure = new CustomWrappingLabel();

    // sets the label text should wrap.
    fFigureUserdef005DescFigure.setTextWrap(true);

    fFigureUserdef005DescFigure.setText("[Undefined]");

    //this.add(fFigureUserdef005DescFigure, BorderLayout.CENTER);

    fFigureUserdef005Userdef002Figure = new CustomWrappingLabel();
    fFigureUserdef005Userdef002Figure.setText("");

    CustomMultiLineFlowLayout layoutBottom = new CustomMultiLineFlowLayout();

    layoutBottom.setStretchMinorAxis(false);
    layoutBottom.setMinorAlignment(FlowLayout.ALIGN_LEFTTOP);

    layoutBottom.setMajorAlignment(FlowLayout.ALIGN_LEFTTOP);
    layoutBottom.setMajorSpacing(NODE_MARGIN_VERTICAL);
    layoutBottom.setMinorSpacing(0);
    layoutBottom.setHorizontal(true);

    Panel panelBottom = new Panel();
    panelBottom.setLayoutManager(layoutBottom);
    this.add(panelBottom, BorderLayout.CENTER);
    panelBottom.add(fFigureUserdef005DescFigure);
    fFigureUserdef005AttachmentFigure = new CustomWrappingLabel();
    fFigureUserdef005AttachmentFigure.setTextWrap(true);
    fFigureUserdef005AttachmentFigure.setText("[Undefined]");
    panelBottom.add(fFigureUserdef005AttachmentFigure);

    fFigureThumb = new DcaseThumbnailEx();
    fFigureThumb.setSource(fFigureUserdef005NameFigure); // dummy
    fFigureThumb.setVisible(false);
    fThumbNodeFigure = new DefaultSizeNodeFigure(0, 0);
    fThumbNodeFigure.setLayoutManager(new StackLayout());
    fThumbNodeFigure.add(fFigureThumb);
    panelBottom.add(fThumbNodeFigure);

    this.add(fFigureUserdef005Userdef002Figure, BorderLayout.BOTTOM);

    fFigureUserdef005ResponsibilityFigure = new WrappingLabel();
    fFigureUserdef005ResponsibilityFigure.setTextWrap(true);
    fFigureUserdef005ResponsibilityFigure.setText(""); //$NON-NLS-1$
    this.add(fFigureUserdef005ResponsibilityFigure, BorderLayout.RIGHT);

    addMouseMotionListener(this);
}
项目:d-case_editor    文件:Userdef006EditPart.java   
/**
 * @generated NOT
 */
private void createContents() {

    // creates a custom layout.
    CustomMultiLineFlowLayout layoutTop = new CustomMultiLineFlowLayout();

    layoutTop.setStretchMinorAxis(false);
    layoutTop.setMinorAlignment(FlowLayout.ALIGN_LEFTTOP);

    layoutTop.setMajorAlignment(FlowLayout.ALIGN_LEFTTOP);
    layoutTop.setMajorSpacing(NODE_MARGIN_VERTICAL);
    layoutTop.setMinorSpacing(0);
    layoutTop.setHorizontal(true);

    Panel panelTop = new Panel();
    panelTop.setLayoutManager(layoutTop);
    this.add(panelTop, BorderLayout.TOP);

    fFigureUserdef006NameFigure = new CustomWrappingLabel();
    fFigureUserdef006NameFigure.setText("");

    panelTop.add(fFigureUserdef006NameFigure);

    fFigureUserdef006Userdef001Figure = new CustomWrappingLabel();
    fFigureUserdef006Userdef001Figure.setText("");

    panelTop.add(fFigureUserdef006Userdef001Figure);

    fFigureUserdef006DescFigure = new CustomWrappingLabel();

    // sets the label text should wrap.
    fFigureUserdef006DescFigure.setTextWrap(true);

    fFigureUserdef006DescFigure.setText("[Undefined]");

    this.add(fFigureUserdef006DescFigure, BorderLayout.CENTER);

    fFigureUserdef006Userdef002Figure = new CustomWrappingLabel();
    fFigureUserdef006Userdef002Figure.setText("");

    this.add(fFigureUserdef006Userdef002Figure, BorderLayout.BOTTOM);

    fFigureUserdef006ResponsibilityFigure = new WrappingLabel();
    fFigureUserdef006ResponsibilityFigure.setTextWrap(true);
    fFigureUserdef006ResponsibilityFigure.setText(""); //$NON-NLS-1$
    this.add(fFigureUserdef006ResponsibilityFigure, BorderLayout.RIGHT);

    addMouseMotionListener(this);
}
项目:d-case_editor    文件:ContextEditPart.java   
/**
 * @generated NOT
 */
private void createContents() {

    // creates a custom layout. 
    CustomMultiLineFlowLayout layoutTop = new CustomMultiLineFlowLayout();

    layoutTop.setStretchMinorAxis(false);
    layoutTop.setMinorAlignment(FlowLayout.ALIGN_LEFTTOP);

    layoutTop.setMajorAlignment(FlowLayout.ALIGN_LEFTTOP);
    layoutTop.setMajorSpacing(NODE_MARGIN_VERTICAL);
    layoutTop.setMinorSpacing(0);
    layoutTop.setHorizontal(true);

    Panel panelTop = new Panel();
    panelTop.setLayoutManager(layoutTop);
    this.add(panelTop, BorderLayout.TOP);

    fFigureContextNameFigure = new CustomWrappingLabel();
    fFigureContextNameFigure.setText("");

    panelTop.add(fFigureContextNameFigure);

    fFigureContextUserdef001Figure = new CustomWrappingLabel();
    fFigureContextUserdef001Figure.setText("");

    panelTop.add(fFigureContextUserdef001Figure);

    fFigureContextDescFigure = new CustomWrappingLabel();

    // sets the label text should wrap.
    fFigureContextDescFigure.setTextWrap(true);

    fFigureContextDescFigure.setText("[Undefined]");

    this.add(fFigureContextDescFigure, BorderLayout.CENTER);

    fFigureContextUserdef002Figure = new CustomWrappingLabel();
    fFigureContextUserdef002Figure.setText("");

    this.add(fFigureContextUserdef002Figure, BorderLayout.BOTTOM);

    fFigureContextResponsibilityFigure = new WrappingLabel();
    fFigureContextResponsibilityFigure.setTextWrap(true);
    fFigureContextResponsibilityFigure.setText(""); //$NON-NLS-1$
    this.add(fFigureContextResponsibilityFigure, BorderLayout.RIGHT);

    addMouseMotionListener(this);
}
项目:d-case_editor    文件:SystemEditPart.java   
/**
 * @generated NOT
 */
private void createContents() {

    // creates a custom layout. 
    CustomMultiLineFlowLayout layoutTop = new CustomMultiLineFlowLayout();

    layoutTop.setStretchMinorAxis(false);
    layoutTop.setMinorAlignment(FlowLayout.ALIGN_LEFTTOP);

    layoutTop.setMajorAlignment(FlowLayout.ALIGN_LEFTTOP);
    layoutTop.setMajorSpacing(NODE_MARGIN_VERTICAL);
    layoutTop.setMinorSpacing(0);
    layoutTop.setHorizontal(true);

    Panel panelTop = new Panel();
    panelTop.setLayoutManager(layoutTop);
    this.add(panelTop, BorderLayout.TOP);

    fFigureSystemNameFigure = new CustomWrappingLabel();
    fFigureSystemNameFigure.setText("");

    panelTop.add(fFigureSystemNameFigure);

    fFigureSystemUserdef001Figure = new CustomWrappingLabel();
    fFigureSystemUserdef001Figure.setText("");

    panelTop.add(fFigureSystemUserdef001Figure);

    fFigureSystemDescFigure = new CustomWrappingLabel();

    // sets the label text should wrap.
    fFigureSystemDescFigure.setTextWrap(true);

    fFigureSystemDescFigure.setText("[Undefined]");

    this.add(fFigureSystemDescFigure, BorderLayout.CENTER);

    fFigureSystemUserdef002Figure = new CustomWrappingLabel();
    fFigureSystemUserdef002Figure.setText("");

    this.add(fFigureSystemUserdef002Figure, BorderLayout.BOTTOM);

    fFigureSystemResponsibilityFigure = new WrappingLabel();
    fFigureSystemResponsibilityFigure.setTextWrap(true);
    fFigureSystemResponsibilityFigure.setText(""); //$NON-NLS-1$
    this.add(fFigureSystemResponsibilityFigure, BorderLayout.RIGHT);

    addMouseMotionListener(this);
}
项目:d-case_editor    文件:Userdef004EditPart.java   
/**
  * @generated NOT
  */
 private void createContents() {

     // create a custom layout.
     CustomMultiLineFlowLayout layoutTop = new CustomMultiLineFlowLayout();

     layoutTop.setStretchMinorAxis(false);
     layoutTop.setMinorAlignment(FlowLayout.ALIGN_LEFTTOP);

     layoutTop.setMajorAlignment(FlowLayout.ALIGN_LEFTTOP);
     layoutTop.setMajorSpacing(NODE_MARGIN_VERTICAL);
     layoutTop.setMinorSpacing(0);
     layoutTop.setHorizontal(true);

     Panel panelTop = new Panel();
     panelTop.setLayoutManager(layoutTop);
     this.add(panelTop, BorderLayout.TOP);

     fFigureUserdef004NameFigure = new CustomWrappingLabel();
     fFigureUserdef004NameFigure.setText("");
     fFigureUserdef004NameFigure.setAlignment(PositionConstants.CENTER);

     panelTop.add(fFigureUserdef004NameFigure);

     fFigureUserdef004Userdef001Figure = new CustomWrappingLabel();
     fFigureUserdef004Userdef001Figure.setText("");

     panelTop.add(fFigureUserdef004Userdef001Figure);

     fFigureUserdef004DescFigure = new CustomWrappingLabel();

     // sets the label text should wrap.
     fFigureUserdef004DescFigure.setTextWrap(true);

     fFigureUserdef004DescFigure.setText("[Undefined]");

     this.add(fFigureUserdef004DescFigure, BorderLayout.CENTER);

     fFigureUserdef004Userdef002Figure = new CustomWrappingLabel();
     fFigureUserdef004Userdef002Figure.setText("");

     this.add(fFigureUserdef004Userdef002Figure, BorderLayout.BOTTOM);

     fFigureUserdef004ResponsibilityFigure = new WrappingLabel();
     fFigureUserdef004ResponsibilityFigure.setTextWrap(true);
     fFigureUserdef004ResponsibilityFigure.setText(""); //$NON-NLS-1$
     this.add(fFigureUserdef004ResponsibilityFigure, BorderLayout.RIGHT);

}
项目:d-case_editor    文件:StrategyEditPart.java   
/**
 * @generated NOT
 */
private void createContents() {

    // creates a custom layout.
    CustomMultiLineFlowLayout layoutTop = new CustomMultiLineFlowLayout();

    layoutTop.setStretchMinorAxis(false);
    layoutTop.setMinorAlignment(FlowLayout.ALIGN_LEFTTOP);

    layoutTop.setMajorAlignment(FlowLayout.ALIGN_LEFTTOP);
    layoutTop.setMajorSpacing(NODE_MARGIN_VERTICAL);
    layoutTop.setMinorSpacing(0);
    layoutTop.setHorizontal(true);

     Panel panelTop = new Panel();
    panelTop.setLayoutManager(layoutTop);
    this.add(panelTop, BorderLayout.TOP);

    fFigureStrategyNameFigure = new CustomWrappingLabel();
    fFigureStrategyNameFigure.setText("");

    panelTop.add(fFigureStrategyNameFigure);

    fFigureStrategyUserdef001Figure = new CustomWrappingLabel();
    fFigureStrategyUserdef001Figure.setText("");

    panelTop.add(fFigureStrategyUserdef001Figure);

    fFigureStrategyDescFigure = new CustomWrappingLabel();

    // sets the label text should wrap.
    fFigureStrategyDescFigure.setTextWrap(true);

    fFigureStrategyDescFigure.setText("[Undefined]");

    this.add(fFigureStrategyDescFigure, BorderLayout.CENTER);

    fFigureStrategyUserdef002Figure = new CustomWrappingLabel();
    fFigureStrategyUserdef002Figure.setText("");

    this.add(fFigureStrategyUserdef002Figure, BorderLayout.BOTTOM);

    fFigureStrategyResponsibilityFigure = new WrappingLabel();
    fFigureStrategyResponsibilityFigure.setTextWrap(true);
    fFigureStrategyResponsibilityFigure.setText(""); //$NON-NLS-1$
    this.add(fFigureStrategyResponsibilityFigure, BorderLayout.RIGHT);

    addMouseMotionListener(this);
}
项目:d-case_editor    文件:Userdef003EditPart.java   
/**
 * @generated NOT
 */
private void createContents() {

    // creates a custom layout.
    CustomMultiLineFlowLayout layoutTop = new CustomMultiLineFlowLayout();

    layoutTop.setStretchMinorAxis(false);
    layoutTop.setMinorAlignment(FlowLayout.ALIGN_LEFTTOP);

    layoutTop.setMajorAlignment(FlowLayout.ALIGN_LEFTTOP);
    layoutTop.setMajorSpacing(NODE_MARGIN_VERTICAL);
    layoutTop.setMinorSpacing(0);
    layoutTop.setHorizontal(true);

    Panel panelTop = new Panel();
    panelTop.setLayoutManager(layoutTop);
    this.add(panelTop, BorderLayout.TOP);

    fFigureUserdef003NameFigure = new CustomWrappingLabel();
    fFigureUserdef003NameFigure.setText("");

    panelTop.add(fFigureUserdef003NameFigure);

    fFigureUserdef003Userdef001Figure = new CustomWrappingLabel();
    fFigureUserdef003Userdef001Figure.setText("");

    panelTop.add(fFigureUserdef003Userdef001Figure);

    fFigureUserdef003DescFigure = new CustomWrappingLabel();

    // sets the label text to wrap.
    fFigureUserdef003DescFigure.setTextWrap(true);

    fFigureUserdef003DescFigure.setText("[Undefined]");

    this.add(fFigureUserdef003DescFigure, BorderLayout.CENTER);

    fFigureUserdef003Userdef002Figure = new CustomWrappingLabel();
    fFigureUserdef003Userdef002Figure.setText("");

    this.add(fFigureUserdef003Userdef002Figure, BorderLayout.BOTTOM);

    fFigureUserdef003ResponsibilityFigure = new WrappingLabel();
    fFigureUserdef003ResponsibilityFigure.setTextWrap(true);
    fFigureUserdef003ResponsibilityFigure.setText(""); //$NON-NLS-1$
    this.add(fFigureUserdef003ResponsibilityFigure, BorderLayout.RIGHT);

    addMouseMotionListener(this);
}
项目:d-case_editor    文件:Userdef002EditPart.java   
/**
 * @generated NOT
 */
private void createContents() {

    // creates a custom layout.
    CustomMultiLineFlowLayout layoutTop = new CustomMultiLineFlowLayout();

    layoutTop.setStretchMinorAxis(false);
    layoutTop.setMinorAlignment(FlowLayout.ALIGN_LEFTTOP);

    layoutTop.setMajorAlignment(FlowLayout.ALIGN_LEFTTOP);
    layoutTop.setMajorSpacing(NODE_MARGIN_VERTICAL);
    layoutTop.setMinorSpacing(0);
    layoutTop.setHorizontal(true);

    Panel panelTop = new Panel();
    panelTop.setLayoutManager(layoutTop);
    this.add(panelTop, BorderLayout.TOP);

    fFigureUserdef002NameFigure = new CustomWrappingLabel();
    fFigureUserdef002NameFigure.setText("");

    panelTop.add(fFigureUserdef002NameFigure);

    fFigureUserdef002Userdef001Figure = new CustomWrappingLabel();
    fFigureUserdef002Userdef001Figure.setText("");

    panelTop.add(fFigureUserdef002Userdef001Figure);

    fFigureUserdef002DescFigure = new CustomWrappingLabel();

    // sets the label text should wrap.
    fFigureUserdef002DescFigure.setTextWrap(true);

    fFigureUserdef002DescFigure.setText("[Undefined]");

    this.add(fFigureUserdef002DescFigure, BorderLayout.CENTER);

    fFigureUserdef002Userdef002Figure = new CustomWrappingLabel();
    fFigureUserdef002Userdef002Figure.setText("");

    this.add(fFigureUserdef002Userdef002Figure, BorderLayout.BOTTOM);

    fFigureUserdef002ResponsibilityFigure = new WrappingLabel();
    fFigureUserdef002ResponsibilityFigure.setTextWrap(true);
    fFigureUserdef002ResponsibilityFigure.setText(""); //$NON-NLS-1$
    this.add(fFigureUserdef002ResponsibilityFigure, BorderLayout.RIGHT);

    addMouseMotionListener(this);
}
项目:d-case_editor    文件:JustificationEditPart.java   
/**
 * @generated NOT
 */
private void createContents() {

    // creates a custom layout. 
    CustomMultiLineFlowLayout layoutTop = new CustomMultiLineFlowLayout();

    layoutTop.setStretchMinorAxis(false);
    layoutTop.setMinorAlignment(FlowLayout.ALIGN_LEFTTOP);

    layoutTop.setMajorAlignment(FlowLayout.ALIGN_LEFTTOP);
    layoutTop.setMajorSpacing(NODE_MARGIN_VERTICAL);
    layoutTop.setMinorSpacing(0);
    layoutTop.setHorizontal(true);

     Panel panelTop = new Panel();
    panelTop.setLayoutManager(layoutTop);
    this.add(panelTop, BorderLayout.TOP);

    fFigureJustificationNameFigure = new CustomWrappingLabel();
    fFigureJustificationNameFigure.setText("");

    panelTop.add(fFigureJustificationNameFigure);

    fFigureJustificationUserdef001Figure = new CustomWrappingLabel();
    fFigureJustificationUserdef001Figure.setText("");

    panelTop.add(fFigureJustificationUserdef001Figure);

    fFigureJustificationDescFigure = new CustomWrappingLabel();

    // sets the label text should wrap.
    fFigureJustificationDescFigure.setTextWrap(true);

    fFigureJustificationDescFigure.setText("[Undefined]");

    this.add(fFigureJustificationDescFigure, BorderLayout.CENTER);

    fFigureJustificationUserdef002Figure = new CustomWrappingLabel();
    fFigureJustificationUserdef002Figure.setText("");

    this.add(fFigureJustificationUserdef002Figure, BorderLayout.BOTTOM);

    fFigureJustificationResponsibilityFigure = new WrappingLabel();
    fFigureJustificationResponsibilityFigure.setTextWrap(true);
    fFigureJustificationResponsibilityFigure.setText(""); //$NON-NLS-1$
    this.add(fFigureJustificationResponsibilityFigure, BorderLayout.RIGHT);

    addMouseMotionListener(this);
}