• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java Panel类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.eclipse.draw2d.Panel的典型用法代码示例。如果您正苦于以下问题:Java Panel类的具体用法?Java Panel怎么用?Java Panel使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



Panel类属于org.eclipse.draw2d包,在下文中一共展示了Panel类的16个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: constructFocusLine

import org.eclipse.draw2d.Panel; //导入依赖的package包/类
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();
        }
    } );
}
 
开发者ID:Polyglotter,项目名称:chrysalix,代码行数:19,代码来源:FocusTreeLightweight.java


示例2: saveImg

import org.eclipse.draw2d.Panel; //导入依赖的package包/类
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();

}
 
开发者ID:hlg,项目名称:billie,代码行数:13,代码来源:Draw2DViewer.java


示例3: showContent

import org.eclipse.draw2d.Panel; //导入依赖的package包/类
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);
}
 
开发者ID:hlg,项目名称:billie,代码行数:16,代码来源:Draw2DViewer.java


示例4: ScrollTableFigure

import org.eclipse.draw2d.Panel; //导入依赖的package包/类
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);
}
 
开发者ID:winture,项目名称:wt-studio,代码行数:14,代码来源:ScrollTableFigure.java


示例5: createContents

import org.eclipse.draw2d.Panel; //导入依赖的package包/类
/**
    * @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);
   }
 
开发者ID:d-case,项目名称:d-case_editor,代码行数:80,代码来源:GoalEditPart.java


示例6: createContents

import org.eclipse.draw2d.Panel; //导入依赖的package包/类
/**
 * @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);           
}
 
开发者ID:d-case,项目名称:d-case_editor,代码行数:54,代码来源:PolicyEditPart.java


示例7: createContents

import org.eclipse.draw2d.Panel; //导入依赖的package包/类
/**
 * @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);
}
 
开发者ID:d-case,项目名称:d-case_editor,代码行数:81,代码来源:Userdef001EditPart.java


示例8: createContents

import org.eclipse.draw2d.Panel; //导入依赖的package包/类
/**
 * @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);
}
 
开发者ID:d-case,项目名称:d-case_editor,代码行数:79,代码来源:Userdef005EditPart.java


示例9: createContents

import org.eclipse.draw2d.Panel; //导入依赖的package包/类
/**
 * @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);
}
 
开发者ID:d-case,项目名称:d-case_editor,代码行数:52,代码来源:Userdef006EditPart.java


示例10: createContents

import org.eclipse.draw2d.Panel; //导入依赖的package包/类
/**
 * @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);
}
 
开发者ID:d-case,项目名称:d-case_editor,代码行数:52,代码来源:ContextEditPart.java


示例11: createContents

import org.eclipse.draw2d.Panel; //导入依赖的package包/类
/**
 * @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);
}
 
开发者ID:d-case,项目名称:d-case_editor,代码行数:52,代码来源:SystemEditPart.java


示例12: createContents

import org.eclipse.draw2d.Panel; //导入依赖的package包/类
/**
  * @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);

}
 
开发者ID:d-case,项目名称:d-case_editor,代码行数:52,代码来源:Userdef004EditPart.java


示例13: createContents

import org.eclipse.draw2d.Panel; //导入依赖的package包/类
/**
 * @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);
}
 
开发者ID:d-case,项目名称:d-case_editor,代码行数:52,代码来源:StrategyEditPart.java


示例14: createContents

import org.eclipse.draw2d.Panel; //导入依赖的package包/类
/**
 * @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);
}
 
开发者ID:d-case,项目名称:d-case_editor,代码行数:52,代码来源:Userdef003EditPart.java


示例15: createContents

import org.eclipse.draw2d.Panel; //导入依赖的package包/类
/**
 * @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);
}
 
开发者ID:d-case,项目名称:d-case_editor,代码行数:52,代码来源:Userdef002EditPart.java


示例16: createContents

import org.eclipse.draw2d.Panel; //导入依赖的package包/类
/**
 * @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);
}
 
开发者ID:d-case,项目名称:d-case_editor,代码行数:52,代码来源:JustificationEditPart.java



注:本文中的org.eclipse.draw2d.Panel类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java CascadingDatatypeLibraryFactory类代码示例发布时间:2022-05-23
下一篇:
Java DecoderQueryException类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap