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


Java NodeFigure.setLayoutManager方法代码示例

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


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

示例1: createNodeFigure

import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure; //导入方法依赖的package包/类
@Override
protected NodeFigure createNodeFigure() {
	NodeFigure figure = new DefaultSizeNodeFigure(getDefaultSize()) {
		@Override
		// StateFigure is drawed smaller (Blurshadow size)
		public Rectangle getHandleBounds() {
			Insets insets = new Insets(0, 0, StateFigure.BLUR_SHADOW_WIDTH, StateFigure.BLUR_SHADOW_WIDTH);
			return new Rectangle(getBounds().x + insets.left, getBounds().y + insets.top,
					getBounds().width - (insets.right + insets.left),
					getBounds().height - (insets.bottom + insets.top));
		}

	};
	figure.setLayoutManager(new StackLayout());
	figure.setMinimumSize(getDefaultSize());
	figure.add(createPrimaryShape());
	return figure;
}
 
开发者ID:Yakindu,项目名称:statecharts,代码行数:19,代码来源:StateEditPart.java

示例2: createNodeFigure

import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure; //导入方法依赖的package包/类
@Override
protected NodeFigure createNodeFigure() {
	final NodeFigure figure = new NodeFigure() {
		@Override
		public PointList getPolygonPoints() {
			PointList points = new PointList(5);
			Rectangle handleBounds = getHandleBounds();
			points.addPoint(handleBounds.x + (handleBounds.width / 2), handleBounds.y);
			points.addPoint(handleBounds.x + handleBounds.width, handleBounds.y + (handleBounds.height / 2));
			points.addPoint(handleBounds.x + (handleBounds.width / 2), handleBounds.y + handleBounds.height);
			points.addPoint(handleBounds.x, handleBounds.y + handleBounds.height / 2);
			points.addPoint(handleBounds.x + (handleBounds.width / 2), handleBounds.y);
			return points;
		}
	};
	figure.setLayoutManager(new StackLayout());
	figure.add(createPrimaryShape());
	figure.setBackgroundColor(org.eclipse.draw2d.ColorConstants.white);
	figure.setForegroundColor(org.eclipse.draw2d.ColorConstants.black);
	figure.setMinimumSize(getDefaultSize());
	return figure;
}
 
开发者ID:Yakindu,项目名称:statecharts,代码行数:23,代码来源:ChoiceEditPart.java

示例3: createNodeFigure

import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure; //导入方法依赖的package包/类
/**
 * 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.
 * @not-generated
 */
@Override
protected NodeFigure createNodeFigure() {
  NodeFigure node = createNodePlate();
  node.setLayoutManager(new XYLayout());
  IFigure shape = createNodeShape();
  node.add(shape);
  contentPane = setupContentPane(shape);
  return node;
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:15,代码来源:RotativeImageEditPart.java

示例4: createNodeFigure

import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure; //导入方法依赖的package包/类
/**
 * 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;
}
 
开发者ID:spoenemann,项目名称:xtext-gef,代码行数:17,代码来源:StateEditPart.java

示例5: createMainFigure

import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure; //导入方法依赖的package包/类
@Override
protected NodeFigure createMainFigure() {
	final NodeFigure figure = new EllipseAnchorDefaultSizeNodeFigure(MapModeUtils.DEFAULT_SMALL_NODE_DIMENSION);
	figure.setLayoutManager(new StackLayout());
	figure.add(createPrimaryShape());
	figure.setBackgroundColor(ColorConstants.black);
	figure.setForegroundColor(ColorConstants.white);
	return figure;
}
 
开发者ID:Yakindu,项目名称:statecharts,代码行数:10,代码来源:EntryEditPart.java

示例6: createNodeFigure

import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure; //导入方法依赖的package包/类
@Override
protected NodeFigure createNodeFigure() {
	final NodeFigure figure = new NodeFigure();
	figure.setLayoutManager(new StackLayout());
	figure.add(new StatechartTextFigure(getMapMode()));
	figure.setMinimumSize(new Dimension(0, 0));
	return figure;
}
 
开发者ID:Yakindu,项目名称:statecharts,代码行数:9,代码来源:StatechartTextEditPart.java

示例7: createNodeFigure

import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure; //导入方法依赖的package包/类
@Override
protected NodeFigure createNodeFigure() {
	final NodeFigure figure = new NodeFigure();
	figure.setLayoutManager(new StackLayout());
	figure.setMinimumSize(new Dimension(0, 0));
	figure.add(new RegionFigure(getMapMode()));
	return figure;
}
 
开发者ID:Yakindu,项目名称:statecharts,代码行数:9,代码来源:RegionEditPart.java

示例8: createMainFigure

import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure; //导入方法依赖的package包/类
@Override
protected NodeFigure createMainFigure() {
	final NodeFigure figure = new EllipseAnchorDefaultSizeNodeFigure(MapModeUtils.DEFAULT_SMALL_NODE_DIMENSION);
	figure.setLayoutManager(new StackLayout());
	figure.add(new ExitFigure(getMapMode()));
	figure.setForegroundColor(ColorConstants.black);
	figure.setBackgroundColor(ColorConstants.white);
	return figure;
}
 
开发者ID:Yakindu,项目名称:statecharts,代码行数:10,代码来源:ExitEditPart.java

示例9: createNodeFigure

import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure; //导入方法依赖的package包/类
@Override
protected NodeFigure createNodeFigure() {
	final NodeFigure figure = new DefaultSizeNodeFigure(getDefaultSize());
	figure.setLayoutManager(getLayoutManager());
	figure.add(createPrimaryShape());
	return figure;
}
 
开发者ID:Yakindu,项目名称:statecharts,代码行数:8,代码来源:FixedSizeShapeNodeEditPart.java

示例10: createNodeFigure

import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure; //导入方法依赖的package包/类
@Override
protected NodeFigure createNodeFigure() {
	final NodeFigure figure = new EllipseAnchorDefaultSizeNodeFigure(getDefaultSize());
	figure.setLayoutManager(getLayoutManager());
	figure.add(createPrimaryShape());
	return figure;
}
 
开发者ID:Yakindu,项目名称:statecharts,代码行数:8,代码来源:EllipseFixedSizeShapeNodeEditPart.java

示例11: createMainFigure

import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure; //导入方法依赖的package包/类
/**
 * 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 createMainFigure() {
	NodeFigure figure = createNodePlate();
	figure.setLayoutManager(new StackLayout());
	IFigure shape = createNodeShape();
	figure.add(shape);
	contentPane = setupContentPane(shape);
	return figure;
}
 
开发者ID:road-framework,项目名称:ROADDesigner,代码行数:17,代码来源:SMCEditPart.java

示例12: createNodeFigure

import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure; //导入方法依赖的package包/类
/**
* 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;
}
 
开发者ID:adisandro,项目名称:MMINT,代码行数:17,代码来源:MessageEditPart.java

示例13: createNodeFigure

import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure; //导入方法依赖的package包/类
/**
* 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;
}
 
开发者ID:adisandro,项目名称:MMINT,代码行数:17,代码来源:OperatorEditPart.java

示例14: createNodeFigure

import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure; //导入方法依赖的package包/类
/**
 * 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;
}
 
开发者ID:d-case,项目名称:d-case_editor,代码行数:17,代码来源:Userdef001EditPart.java

示例15: createNodeFigure

import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure; //导入方法依赖的package包/类
@Override
protected NodeFigure createNodeFigure() {
	NodeFigure figure = new NodeFigure();
	figure.setLayoutManager(new StackLayout());
	return figure;
}
 
开发者ID:Yakindu,项目名称:statecharts,代码行数:7,代码来源:BorderItemEditPart.java


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