当前位置: 首页>>代码示例>>Java>>正文


Java FreeformLayout类代码示例

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


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

示例1: createFigure

import org.eclipse.draw2d.FreeformLayout; //导入依赖的package包/类
@Override
protected IFigure createFigure() {
	Figure f = new FreeformLayer();
	f.setBorder(new MarginBorder(3));
	f.setLayoutManager(new FreeformLayout());

	// Create the static router for the connection layer
	ConnectionLayer connLayer = (ConnectionLayer) getLayer(LayerConstants.CONNECTION_LAYER);
	connLayer.setConnectionRouter(new ManhattanConnectionRouter());
	return f;
}
 
开发者ID:capitalone,项目名称:Hydrograph,代码行数:12,代码来源:ContainerEditPart.java

示例2: createFigure

import org.eclipse.draw2d.FreeformLayout; //导入依赖的package包/类
@Override
protected IFigure createFigure() {
	Figure figure = new FreeformLayer();
	figure.setBorder(new MarginBorder(3));
	figure.setLayoutManager(new FreeformLayout());
	return figure;
}
 
开发者ID:bsteker,项目名称:bdf2,代码行数:8,代码来源:ProcessDefinitionEditPart.java

示例3: createFigure

import org.eclipse.draw2d.FreeformLayout; //导入依赖的package包/类
@Override
protected IFigure createFigure() {
	ScalableFreeformLayeredPane layer = new ScalableFreeformLayeredPane();
    layer.setLayoutManager(new FreeformLayout());
    layer.setBorder(new LineBorder(1));
    layer.addLayoutListener(LayoutAnimator.getDefault());
    return layer;
}
 
开发者ID:DarwinSPL,项目名称:DarwinSPL,代码行数:9,代码来源:DwFeatureModelEditPart.java

示例4: createFigure

import org.eclipse.draw2d.FreeformLayout; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
protected IFigure createFigure() {
    final FreeformLayer layer = new FreeformLayer();
    layer.setLayoutManager(new FreeformLayout());

    return layer;
}
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:11,代码来源:ERDiagramEditPart.java

示例5: createFigure

import org.eclipse.draw2d.FreeformLayout; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
protected IFigure createFigure() {
	FreeformLayer layer = new FreeformLayer();
	layer.setLayoutManager(new FreeformLayout());

	return layer;
}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:11,代码来源:ERDiagramEditPart.java

示例6: PickerColumnFigure

import org.eclipse.draw2d.FreeformLayout; //导入依赖的package包/类
public PickerColumnFigure() {
	pane = new FreeformLayer();
	pane.setLayoutManager(new FreeformLayout());
	setLayoutManager(new StackLayout());
	container = new TitaniumFigure();
	container.setLayoutManager(new FreeformLayout());
	pane.add(container);
	
	scrollpane = new ScrollPane();
	scrollpane.setHorizontalScrollBarVisibility(ScrollPane.NEVER);
	scrollpane.setVerticalScrollBarVisibility(ScrollPane.NEVER);
	scrollpane.setViewport(new FreeformViewport());
	scrollpane.setContents(pane);
	add(scrollpane);
}
 
开发者ID:ShoukriKattan,项目名称:ForgedUI-Eclipse,代码行数:16,代码来源:PickerColumnFigure.java

示例7: ScrollViewFigure

import org.eclipse.draw2d.FreeformLayout; //导入依赖的package包/类
public ScrollViewFigure() {
	pane = new FreeformLayer();
	pane.setLayoutManager(new FreeformLayout());
	setLayoutManager(new StackLayout());
	container = new TitaniumFigure();
	container.setLayoutManager(new FreeformLayout());
	pane.add(container);
	
	scrollpane = new ScrollPane();
	scrollpane.setScrollBarVisibility(ScrollPane.AUTOMATIC);
	scrollpane.setViewport(new FreeformViewport());
	scrollpane.setContents(pane);
	add(scrollpane);
}
 
开发者ID:ShoukriKattan,项目名称:ForgedUI-Eclipse,代码行数:15,代码来源:ScrollViewFigure.java

示例8: createFigure

import org.eclipse.draw2d.FreeformLayout; //导入依赖的package包/类
/**
 * @see org.eclipse.gef.editparts.AbstractGraphicalEditPart#createFigure()
 */
@Override
protected IFigure createFigure() {
    Figure figure = new FreeformLayer();
    figure.setBorder(new MarginBorder(10));
    figure.setLayoutManager(new FreeformLayout());
    figure.setOpaque(false);

    Diagram diagram = null;
    if (getModel() instanceof Diagram) {
        diagram = (Diagram) getModel();
        if (!(diagram.getType().equals(DiagramType.SEQUENCE_DIAGRAM))) {
            for (AbstractNode node : diagram.getNodeList()) {
                if (node instanceof NotationNode) {
                	ViewModelUtil.clearGarbageNode(node);
                    ViewModelUtil.setModelInfo((NotationNode) node);
                }
            }
            for ( AbstractConnection connection : diagram.getConnectionList() ) {
                ViewModelUtil.clearGarbageNode(connection);
            }
        }
    }

    figure.addLayoutListener(new PrintPreviewLayoutListener());
    return figure;
}
 
开发者ID:SK-HOLDINGS-CC,项目名称:NEXCORE-UML-Modeler,代码行数:30,代码来源:AbstractDiagramEditPart.java

示例9: createFigure

import org.eclipse.draw2d.FreeformLayout; //导入依赖的package包/类
/**
 * @see org.eclipse.gef.editparts.AbstractGraphicalEditPart#createFigure()
 */
@Override
protected IFigure createFigure() {
    Figure fiugre = new FreeformLayer();
    fiugre.setBorder(new MarginBorder(10));
    fiugre.setLayoutManager(new FreeformLayout());
    fiugre.setOpaque(false);

    LayoutManager layout = new ActivityDiagramLayout();
    fiugre.setLayoutManager(layout);

    return fiugre;
}
 
开发者ID:SK-HOLDINGS-CC,项目名称:NEXCORE-UML-Modeler,代码行数:16,代码来源:ActivityDiagramEditPart.java

示例10: BandFigure

import org.eclipse.draw2d.FreeformLayout; //导入依赖的package包/类
/**
 * Instantiates a new band figure.
 */
public BandFigure(boolean drawColumn, MBand model) {
	super();
	setLayoutManager(new FreeformLayout());
	setOpaque(false);
	this.drawColumn = drawColumn;
	this.bandModel = model;
	createTexture();
}
 
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:12,代码来源:BandFigure.java

示例11: createFigure

import org.eclipse.draw2d.FreeformLayout; //导入依赖的package包/类
@Override
protected IFigure createFigure() {
	Figure f = new FreeformLayer();
	f.setLayoutManager(new FreeformLayout());
	f.setOpaque(true);
	return f;
}
 
开发者ID:snakerflow,项目名称:snaker-designer,代码行数:8,代码来源:TaskFieldEditPart.java

示例12: createFigure

import org.eclipse.draw2d.FreeformLayout; //导入依赖的package包/类
@Override
protected IFigure createFigure() {
	IFigure f = new FreeformLayer();
	f.setLayoutManager(new FreeformLayout());
	f.setOpaque(true);
	return f;
}
 
开发者ID:snakerflow,项目名称:snaker-designer,代码行数:8,代码来源:FormEditPart.java

示例13: createFigure

import org.eclipse.draw2d.FreeformLayout; //导入依赖的package包/类
protected IFigure createFigure( )
{
	Figure f = new FreeformLayer( );
	f.setLayoutManager( new FreeformLayout( ) );
	f.setBorder( new MarginBorder( 5 ) );
	return f;
}
 
开发者ID:eclipse,项目名称:birt,代码行数:8,代码来源:CubeEditPart.java

示例14: createFigure

import org.eclipse.draw2d.FreeformLayout; //导入依赖的package包/类
@Override
protected IFigure createFigure()
{
	Figure figure = new FreeformLayer();
	figure.setLayoutManager(new FreeformLayout());
	return figure;
}
 
开发者ID:winture,项目名称:wt-studio,代码行数:8,代码来源:BOModelDiagramEditPart.java

示例15: constructCanvas

import org.eclipse.draw2d.FreeformLayout; //导入依赖的package包/类
void constructCanvas( final Color color ) {
    canvas = new FreeformLayer();
    setContents( canvas );
    canvas.setLayoutManager( new FreeformLayout() );
    canvas.setOpaque( true );
    canvas.setBackgroundColor( color );
}
 
开发者ID:Polyglotter,项目名称:chrysalix,代码行数:8,代码来源:FocusTreeLightweight.java


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