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


Java FreeformLayer.setLayoutManager方法代码示例

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


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

示例1: createFigure

import org.eclipse.draw2d.FreeformLayer; //导入方法依赖的package包/类
@Override
protected IFigure createFigure() {
	final LineLayout layout = new LineLayout();
	layout.setHorizontal(true);
	layout.setMajorAlignment(FlowLayout.ALIGN_TOPLEFT);
	layout.setMinorAlignment(FlowLayout.ALIGN_BOTTOMRIGHT);
	layout.setMinorSpacing(SPACING);
	layout.setMargin(MARGIN);

	FreeformLayer res = new FreeformLayer();
	final Label toolTip = new Label();
	toolTip.setFont(JFaceResources.getFont(JFaceResources.TEXT_FONT));
	toolTip.setBackgroundColor(ColorConstants.tooltipBackground);
	toolTip.setForegroundColor(ColorConstants.tooltipForeground);
	toolTip.setText(getModel().getTimelineWindow().getProvider().getTextAt(getModel().getBranch()));
	res.setToolTip(toolTip);
	res.setLayoutManager(layout);
	return res;
}
 
开发者ID:eclipse,项目名称:gemoc-studio,代码行数:20,代码来源:BranchEditPart.java

示例2: TableModelFigure

import org.eclipse.draw2d.FreeformLayer; //导入方法依赖的package包/类
public TableModelFigure()
{
	ToolbarLayout layout = new ToolbarLayout();
	layout.setHorizontal(true);
	layout.setSpacing(10);
	layout.setMinorAlignment(ToolbarLayout.ALIGN_TOPLEFT);

	setLayoutManager(new FillLayout());
	setOpaque(true);
	setBackgroundColor(ColorConstants.white);
	border = new FrameBorder("列表");
	border.setLabel("Block");
	this.setBorder(border);
	ScrollPane scrollpane = new ScrollPane();
	scrollpane.setHorizontalScrollBarVisibility(1);
	scrollpane.setVerticalScrollBarVisibility(0);
	headerFigure = new FreeformLayer();
	headerFigure.setLayoutManager(new ScrollAreaLayout());
	headerFigure.setBackgroundColor(ColorConstants.white);
	add(scrollpane);
	scrollpane.setViewport(new FreeformViewport());
	scrollpane.setContents(headerFigure);
}
 
开发者ID:winture,项目名称:wt-studio,代码行数:24,代码来源:TableModelFigure.java

示例3: createFigure

import org.eclipse.draw2d.FreeformLayer; //导入方法依赖的package包/类
@Override
protected IFigure createFigure() {
	final LineLayout layout = new LineLayout();
	layout.setHorizontal(false);
	layout.setMajorAlignment(FlowLayout.ALIGN_TOPLEFT);
	layout.setMinorAlignment(FlowLayout.ALIGN_TOPLEFT);
	layout.setMinorSpacing(SPACING);
	layout.setMargin(MARGIN);

	FreeformLayer res = new FreeformLayer();
	res.setLayoutManager(layout);
	return res;
}
 
开发者ID:eclipse,项目名称:gemoc-studio,代码行数:14,代码来源:TimelineWindowEditPart.java

示例4: createFigure

import org.eclipse.draw2d.FreeformLayer; //导入方法依赖的package包/类
@Override
protected IFigure createFigure() {
	final LineLayout layout = new LineLayout();
	layout.setHorizontal(false);
	layout.setMajorAlignment(FlowLayout.ALIGN_TOPLEFT);
	layout.setMinorAlignment(FlowLayout.ALIGN_TOPLEFT);
	layout.setMinorSpacing(SPACING);

	FreeformLayer res = new FreeformLayer();
	res.setLayoutManager(layout);
	label = new Label();
	res.add(label);
	return res;
}
 
开发者ID:eclipse,项目名称:gemoc-studio,代码行数:15,代码来源:ChoiceEditPart.java

示例5: createFigure

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

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

示例6: createFigure

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

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

示例7: PickerColumnFigure

import org.eclipse.draw2d.FreeformLayer; //导入方法依赖的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

示例8: ScrollViewFigure

import org.eclipse.draw2d.FreeformLayer; //导入方法依赖的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

示例9: createFigure

import org.eclipse.draw2d.FreeformLayer; //导入方法依赖的package包/类
@Override
protected IFigure createFigure() {
	FreeformLayer fig = new FreeformLayer();
	fig.setLayoutManager(new GraphLayoutManager(this));
	fig.setOpaque(true);
	return fig;
}
 
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:8,代码来源:QueryEditPart.java

示例10: createPrintableLayers

import org.eclipse.draw2d.FreeformLayer; //导入方法依赖的package包/类
/**
 * Creates a layered pane and the layers that should be printed.
 * 
 * @see org.eclipse.gef.print.PrintGraphicalViewerOperation
 * @return a new LayeredPane containing the printable layers
 */
protected LayeredPane createPrintableLayers( )
{
	FreeformLayeredPane layeredPane = new FreeformLayeredPane( );
	FreeformLayer layer = new FreeformLayer( );

	layer.setLayoutManager( new TableLayout( this ) );
	layeredPane.add( layer, PRIMARY_LAYER );
	layeredPane.add( new TableBorderLayer( this ), BORDER_LAYER );
	return layeredPane;
}
 
开发者ID:eclipse,项目名称:birt,代码行数:17,代码来源:AbstractTableEditPart.java

示例11: constructCanvas

import org.eclipse.draw2d.FreeformLayer; //导入方法依赖的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

示例12: createFigure

import org.eclipse.draw2d.FreeformLayer; //导入方法依赖的package包/类
@Override
protected IFigure createFigure() {
	FreeformLayer layer = new FreeformLayer();
	layer.setLayoutManager(new FreeformLayout());
	layer.setBorder(new LineBorder(1));
	return layer;
}
 
开发者ID:xored,项目名称:q7.quality.mockups,代码行数:8,代码来源:DiagramWithCustomId.java

示例13: createPrintableLayers

import org.eclipse.draw2d.FreeformLayer; //导入方法依赖的package包/类
/**
 * Overwrite this function and add the connection layer before the primary layer. This will make the nodes display on top of the connections.
 */
protected LayeredPane createPrintableLayers() {
    FreeformLayeredPane layeredPane = new FreeformLayeredPane();

    FreeformLayer comp = new FreeformLayer();
    comp.setLayoutManager(new FreeformLayout());

    layeredPane.add(comp, COMPONENT_LAYER);

    layeredPane.add(new FreeformLayer(), PRIMARY_LAYER);
    layeredPane.add(new ConnectionLayer(), CONNECTION_LAYER);
    return layeredPane;

}
 
开发者ID:McGill-DP-Group,项目名称:seg.jUCMNav,代码行数:17,代码来源:GrlConnectionOnBottomRootEditPart.java

示例14: createFigure

import org.eclipse.draw2d.FreeformLayer; //导入方法依赖的package包/类
/**
 * Creates the freeform layout
 * 
 * @see org.eclipse.gef.editparts.AbstractGraphicalEditPart#createFigure()
 */
protected IFigure createFigure() {
    FreeformLayer layer = new FreeformLayer();
    layer.setLayoutManager(new FreeformLayout());
    // layer.setBorder(new LineBorder(1));
    return layer;
}
 
开发者ID:McGill-DP-Group,项目名称:seg.jUCMNav,代码行数:12,代码来源:URNDiagramEditPart.java

示例15: createFigure

import org.eclipse.draw2d.FreeformLayer; //导入方法依赖的package包/类
protected IFigure createFigure() {
    FreeformLayer layer = new FreeformLayer();

    layer.setLayoutManager(new FreeformLayout());
    layer.setBorder(new LineBorder(2));
    layer.setBackgroundColor(ColorManager.WHITE);
    layer.setOpaque(true);

    if (kpiViewObjects != null && kpiViewObjects.size() > 0) {
        KPIViewObject theLastFigure = ((KPIViewObject) kpiViewObjects.get(kpiViewObjects.size() - 1));
        layer.getBounds().height = KPIViewObject.SHIFT_Y * 2 + theLastFigure.getY() + theLastFigure.getHeight();
    }

    return layer;
}
 
开发者ID:McGill-DP-Group,项目名称:seg.jUCMNav,代码行数:16,代码来源:AbstractKPIViewEditPart.java


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