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

Java Location类代码示例

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

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



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

示例1: decorateView

import org.eclipse.gmf.runtime.notation.Location; //导入依赖的package包/类
@SuppressWarnings("unchecked")
@Override
protected void decorateView(View containerView, View view,
		IAdaptable element, String semanticHint, int index,
		boolean persisted) {

	FontStyle fontStyle = NotationFactory.eINSTANCE.createFontStyle();
	view.getStyles().add(fontStyle);

	super.decorateView(containerView, view, element, semanticHint, index,
			persisted);

	Node label = FactoryUtils.createLabel(view,
			SemanticHints.TRANSITION_EXPRESSION);
	Location location = (Location) label.getLayoutConstraint();
	location.setX(0);
	location.setY(10);

}
 
开发者ID:Yakindu,项目名称:statecharts,代码行数:20,代码来源:TransitionViewFactory.java


示例2: repositionConnectionLabels

import org.eclipse.gmf.runtime.notation.Location; //导入依赖的package包/类
public static void repositionConnectionLabels(DiagramEditPart diagep,
		List<GraphicalEditPart> elements) {
	for (EditPart editpart : elements) {
		GraphicalEditPart ep = ((GraphicalEditPart) editpart);
		@SuppressWarnings("unchecked")
		List<ConnectionNodeEditPart> connections = ep.getSourceConnections();
		for (ConnectionNodeEditPart connection : connections) {
			@SuppressWarnings("unchecked")
			List<GraphicalEditPart> labels = connection.getChildren();
			for (GraphicalEditPart label : labels) {
				List<Class<?>> decorationTypes = Arrays.asList(AssociationNameEditPart.class,
						AssociationMultiplicityTargetEditPart.class, AssociationMultiplicitySourceEditPart.class);

				String commandName = "RepositioningLabels";

				if (isInstanceOfAny(label, decorationTypes)) {
					ICommand cmd = new AbstractTransactionalCommand(diagep.getEditingDomain(), commandName, null) {
						@Override
						protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info)
								throws ExecutionException {
							CSSDecorationNodeImpl v = ((CSSDecorationNodeImpl) label.getModel());

							Location LC = (Location) v.getLayoutConstraint();
							LC.setX(0);
							LC.setY(0);
							return CommandResult.newOKCommandResult();
						}
					};

					try {
						cmd.execute(new NullProgressMonitor(), null);
					} catch (ExecutionException e) {
						Logger.sys.warn("Could not execute command " + cmd + " (" + commandName + ")");
					}
				}
			}
		}
	}
}
 
开发者ID:ELTE-Soft,项目名称:txtUML,代码行数:40,代码来源:DiagramElementsModifier.java


示例3: createModelEndpoint_4004

import org.eclipse.gmf.runtime.notation.Location; //导入依赖的package包/类
/**
 * @generated
 */
public Edge createModelEndpoint_4004(
		EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
	Edge edge = NotationFactory.eINSTANCE.createEdge();
	edge.getStyles().add(NotationFactory.eINSTANCE.createRoutingStyle());
	edge.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
	RelativeBendpoints bendpoints = NotationFactory.eINSTANCE.createRelativeBendpoints();
	ArrayList<RelativeBendpoint> points = new ArrayList<RelativeBendpoint>(2);
	points.add(new RelativeBendpoint());
	points.add(new RelativeBendpoint());
	bendpoints.setPoints(points);
	edge.setBendpoints(bendpoints);
	ViewUtil.insertChildView(containerView, edge, index, persisted);
	edge.setType(MIDVisualIDRegistry.getType(ModelEndpoint2EditPart.VISUAL_ID));
	edge.setElement(domainElement);
	// initializePreferences
	final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
	FontStyle edgeFontStyle = (FontStyle) edge.getStyle(NotationPackage.Literals.FONT_STYLE);
	if (edgeFontStyle != null) {
		FontData fontData = PreferenceConverter.getFontData(prefStore, IPreferenceConstants.PREF_DEFAULT_FONT);
		edgeFontStyle.setFontName(fontData.getName());
		edgeFontStyle.setFontHeight(fontData.getHeight());
		edgeFontStyle.setBold((fontData.getStyle() & SWT.BOLD) != 0);
		edgeFontStyle.setItalic((fontData.getStyle() & SWT.ITALIC) != 0);
		org.eclipse.swt.graphics.RGB fontRGB = PreferenceConverter
			.getColor(prefStore, IPreferenceConstants.PREF_FONT_COLOR);
		edgeFontStyle.setFontColor(FigureUtilities.RGBToInteger(fontRGB).intValue());
	}
	Routing routing = Routing.get(prefStore.getInt(IPreferenceConstants.PREF_LINE_STYLE));
	if (routing != null) {
		ViewUtil.setStructuralFeatureValue(edge, NotationPackage.eINSTANCE.getRoutingStyle_Routing(), routing);
	}
	Node label6007 = createLabel(edge, MIDVisualIDRegistry.getType(ModelEndpointNameEditPart.VISUAL_ID));
	label6007.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
	Location location6007 = (Location) label6007.getLayoutConstraint();
	location6007.setX(0);
	location6007.setY(40);
	return edge;
}
 
开发者ID:adisandro,项目名称:MMINT,代码行数:42,代码来源:MIDViewProvider.java


示例4: createModelEndpoint_4005

import org.eclipse.gmf.runtime.notation.Location; //导入依赖的package包/类
/**
 * @generated
 */
public Edge createModelEndpoint_4005(
		EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
	Edge edge = NotationFactory.eINSTANCE.createEdge();
	edge.getStyles().add(NotationFactory.eINSTANCE.createRoutingStyle());
	edge.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
	RelativeBendpoints bendpoints = NotationFactory.eINSTANCE.createRelativeBendpoints();
	ArrayList<RelativeBendpoint> points = new ArrayList<RelativeBendpoint>(2);
	points.add(new RelativeBendpoint());
	points.add(new RelativeBendpoint());
	bendpoints.setPoints(points);
	edge.setBendpoints(bendpoints);
	ViewUtil.insertChildView(containerView, edge, index, persisted);
	edge.setType(MIDVisualIDRegistry.getType(ModelEndpoint3EditPart.VISUAL_ID));
	edge.setElement(domainElement);
	// initializePreferences
	final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
	FontStyle edgeFontStyle = (FontStyle) edge.getStyle(NotationPackage.Literals.FONT_STYLE);
	if (edgeFontStyle != null) {
		FontData fontData = PreferenceConverter.getFontData(prefStore, IPreferenceConstants.PREF_DEFAULT_FONT);
		edgeFontStyle.setFontName(fontData.getName());
		edgeFontStyle.setFontHeight(fontData.getHeight());
		edgeFontStyle.setBold((fontData.getStyle() & SWT.BOLD) != 0);
		edgeFontStyle.setItalic((fontData.getStyle() & SWT.ITALIC) != 0);
		org.eclipse.swt.graphics.RGB fontRGB = PreferenceConverter
			.getColor(prefStore, IPreferenceConstants.PREF_FONT_COLOR);
		edgeFontStyle.setFontColor(FigureUtilities.RGBToInteger(fontRGB).intValue());
	}
	Routing routing = Routing.get(prefStore.getInt(IPreferenceConstants.PREF_LINE_STYLE));
	if (routing != null) {
		ViewUtil.setStructuralFeatureValue(edge, NotationPackage.eINSTANCE.getRoutingStyle_Routing(), routing);
	}
	Node label6008 = createLabel(edge, MIDVisualIDRegistry.getType(ModelEndpointName2EditPart.VISUAL_ID));
	label6008.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
	Location location6008 = (Location) label6008.getLayoutConstraint();
	location6008.setX(0);
	location6008.setY(40);
	return edge;
}
 
开发者ID:adisandro,项目名称:MMINT,代码行数:42,代码来源:MIDViewProvider.java


示例5: createSelfRequirement_4004

import org.eclipse.gmf.runtime.notation.Location; //导入依赖的package包/类
/**
 * @generated
 */
public Edge createSelfRequirement_4004(EObject domainElement, View containerView, int index, boolean persisted,
		PreferencesHint preferencesHint) {
	Edge edge = NotationFactory.eINSTANCE.createEdge();
	edge.getStyles().add(NotationFactory.eINSTANCE.createRoutingStyle());
	edge.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
	RelativeBendpoints bendpoints = NotationFactory.eINSTANCE.createRelativeBendpoints();
	ArrayList<RelativeBendpoint> points = new ArrayList<RelativeBendpoint>(2);
	points.add(new RelativeBendpoint());
	points.add(new RelativeBendpoint());
	bendpoints.setPoints(points);
	edge.setBendpoints(bendpoints);
	ViewUtil.insertChildView(containerView, edge, index, persisted);
	edge.setType(TransformationDependencyVisualIDRegistry.getType(SelfRequirementEditPart.VISUAL_ID));
	edge.setElement(domainElement);
	// initializePreferences
	final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
	FontStyle edgeFontStyle = (FontStyle) edge.getStyle(NotationPackage.Literals.FONT_STYLE);
	if (edgeFontStyle != null) {
		FontData fontData = PreferenceConverter.getFontData(prefStore, IPreferenceConstants.PREF_DEFAULT_FONT);
		edgeFontStyle.setFontName(fontData.getName());
		edgeFontStyle.setFontHeight(fontData.getHeight());
		edgeFontStyle.setBold((fontData.getStyle() & SWT.BOLD) != 0);
		edgeFontStyle.setItalic((fontData.getStyle() & SWT.ITALIC) != 0);
		org.eclipse.swt.graphics.RGB fontRGB = PreferenceConverter.getColor(prefStore,
				IPreferenceConstants.PREF_FONT_COLOR);
		edgeFontStyle.setFontColor(FigureUtilities.RGBToInteger(fontRGB).intValue());
	}
	Routing routing = Routing.get(prefStore.getInt(IPreferenceConstants.PREF_LINE_STYLE));
	if (routing != null) {
		ViewUtil.setStructuralFeatureValue(edge, NotationPackage.eINSTANCE.getRoutingStyle_Routing(), routing);
	}
	Node label6004 = createLabel(edge,
			TransformationDependencyVisualIDRegistry.getType(SelfRequirementLabelEditPart.VISUAL_ID));
	label6004.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
	Location location6004 = (Location) label6004.getLayoutConstraint();
	location6004.setX(0);
	location6004.setY(40);
	return edge;
}
 
开发者ID:awltech,项目名称:eclipse-optimus,代码行数:43,代码来源:TransformationDependencyViewProvider.java


示例6: createParentRequirement_4005

import org.eclipse.gmf.runtime.notation.Location; //导入依赖的package包/类
/**
 * @generated
 */
public Edge createParentRequirement_4005(EObject domainElement, View containerView, int index, boolean persisted,
		PreferencesHint preferencesHint) {
	Edge edge = NotationFactory.eINSTANCE.createEdge();
	edge.getStyles().add(NotationFactory.eINSTANCE.createRoutingStyle());
	edge.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
	RelativeBendpoints bendpoints = NotationFactory.eINSTANCE.createRelativeBendpoints();
	ArrayList<RelativeBendpoint> points = new ArrayList<RelativeBendpoint>(2);
	points.add(new RelativeBendpoint());
	points.add(new RelativeBendpoint());
	bendpoints.setPoints(points);
	edge.setBendpoints(bendpoints);
	ViewUtil.insertChildView(containerView, edge, index, persisted);
	edge.setType(TransformationDependencyVisualIDRegistry.getType(ParentRequirementEditPart.VISUAL_ID));
	edge.setElement(domainElement);
	// initializePreferences
	final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
	FontStyle edgeFontStyle = (FontStyle) edge.getStyle(NotationPackage.Literals.FONT_STYLE);
	if (edgeFontStyle != null) {
		FontData fontData = PreferenceConverter.getFontData(prefStore, IPreferenceConstants.PREF_DEFAULT_FONT);
		edgeFontStyle.setFontName(fontData.getName());
		edgeFontStyle.setFontHeight(fontData.getHeight());
		edgeFontStyle.setBold((fontData.getStyle() & SWT.BOLD) != 0);
		edgeFontStyle.setItalic((fontData.getStyle() & SWT.ITALIC) != 0);
		org.eclipse.swt.graphics.RGB fontRGB = PreferenceConverter.getColor(prefStore,
				IPreferenceConstants.PREF_FONT_COLOR);
		edgeFontStyle.setFontColor(FigureUtilities.RGBToInteger(fontRGB).intValue());
	}
	Routing routing = Routing.get(prefStore.getInt(IPreferenceConstants.PREF_LINE_STYLE));
	if (routing != null) {
		ViewUtil.setStructuralFeatureValue(edge, NotationPackage.eINSTANCE.getRoutingStyle_Routing(), routing);
	}
	Node label6005 = createLabel(edge,
			TransformationDependencyVisualIDRegistry.getType(ParentRequirementLabelEditPart.VISUAL_ID));
	label6005.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
	Location location6005 = (Location) label6005.getLayoutConstraint();
	location6005.setX(0);
	location6005.setY(40);
	return edge;
}
 
开发者ID:awltech,项目名称:eclipse-optimus,代码行数:43,代码来源:TransformationDependencyViewProvider.java


示例7: createCustomRequirement_4006

import org.eclipse.gmf.runtime.notation.Location; //导入依赖的package包/类
/**
 * @generated
 */
public Edge createCustomRequirement_4006(EObject domainElement, View containerView, int index, boolean persisted,
		PreferencesHint preferencesHint) {
	Edge edge = NotationFactory.eINSTANCE.createEdge();
	edge.getStyles().add(NotationFactory.eINSTANCE.createRoutingStyle());
	edge.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
	RelativeBendpoints bendpoints = NotationFactory.eINSTANCE.createRelativeBendpoints();
	ArrayList<RelativeBendpoint> points = new ArrayList<RelativeBendpoint>(2);
	points.add(new RelativeBendpoint());
	points.add(new RelativeBendpoint());
	bendpoints.setPoints(points);
	edge.setBendpoints(bendpoints);
	ViewUtil.insertChildView(containerView, edge, index, persisted);
	edge.setType(TransformationDependencyVisualIDRegistry.getType(CustomRequirementEditPart.VISUAL_ID));
	edge.setElement(domainElement);
	// initializePreferences
	final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
	FontStyle edgeFontStyle = (FontStyle) edge.getStyle(NotationPackage.Literals.FONT_STYLE);
	if (edgeFontStyle != null) {
		FontData fontData = PreferenceConverter.getFontData(prefStore, IPreferenceConstants.PREF_DEFAULT_FONT);
		edgeFontStyle.setFontName(fontData.getName());
		edgeFontStyle.setFontHeight(fontData.getHeight());
		edgeFontStyle.setBold((fontData.getStyle() & SWT.BOLD) != 0);
		edgeFontStyle.setItalic((fontData.getStyle() & SWT.ITALIC) != 0);
		org.eclipse.swt.graphics.RGB fontRGB = PreferenceConverter.getColor(prefStore,
				IPreferenceConstants.PREF_FONT_COLOR);
		edgeFontStyle.setFontColor(FigureUtilities.RGBToInteger(fontRGB).intValue());
	}
	Routing routing = Routing.get(prefStore.getInt(IPreferenceConstants.PREF_LINE_STYLE));
	if (routing != null) {
		ViewUtil.setStructuralFeatureValue(edge, NotationPackage.eINSTANCE.getRoutingStyle_Routing(), routing);
	}
	Node label6006 = createLabel(edge,
			TransformationDependencyVisualIDRegistry.getType(CustomRequirementLabelEditPart.VISUAL_ID));
	label6006.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
	Location location6006 = (Location) label6006.getLayoutConstraint();
	location6006.setX(0);
	location6006.setY(40);
	return edge;
}
 
开发者ID:awltech,项目名称:eclipse-optimus,代码行数:43,代码来源:TransformationDependencyViewProvider.java


示例8: createSMC_2001

import org.eclipse.gmf.runtime.notation.Location; //导入依赖的package包/类
/**
 * @generated
 */
public Node createSMC_2001(EObject domainElement, View containerView,
		int index, boolean persisted, PreferencesHint preferencesHint) {
	Shape node = NotationFactory.eINSTANCE.createShape();
	node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
	node.setType(SmcVisualIDRegistry.getType(SMCEditPart.VISUAL_ID));
	ViewUtil.insertChildView(containerView, node, index, persisted);
	node.setElement(domainElement);
	stampShortcut(containerView, node);
	// initializeFromPreferences 
	final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint
			.getPreferenceStore();

	org.eclipse.swt.graphics.RGB lineRGB = PreferenceConverter.getColor(
			prefStore, IPreferenceConstants.PREF_LINE_COLOR);
	ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
			.getLineStyle_LineColor(), FigureUtilities
			.RGBToInteger(lineRGB));
	FontStyle nodeFontStyle = (FontStyle) node
			.getStyle(NotationPackage.Literals.FONT_STYLE);
	if (nodeFontStyle != null) {
		FontData fontData = PreferenceConverter.getFontData(prefStore,
				IPreferenceConstants.PREF_DEFAULT_FONT);
		nodeFontStyle.setFontName(fontData.getName());
		nodeFontStyle.setFontHeight(fontData.getHeight());
		nodeFontStyle.setBold((fontData.getStyle() & SWT.BOLD) != 0);
		nodeFontStyle.setItalic((fontData.getStyle() & SWT.ITALIC) != 0);
		org.eclipse.swt.graphics.RGB fontRGB = PreferenceConverter
				.getColor(prefStore, IPreferenceConstants.PREF_FONT_COLOR);
		nodeFontStyle.setFontColor(FigureUtilities.RGBToInteger(fontRGB)
				.intValue());
	}
	org.eclipse.swt.graphics.RGB fillRGB = PreferenceConverter.getColor(
			prefStore, IPreferenceConstants.PREF_FILL_COLOR);
	ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
			.getFillStyle_FillColor(), FigureUtilities
			.RGBToInteger(fillRGB));
	Node label5003 = createLabel(node, SmcVisualIDRegistry
			.getType(SMCNameEditPart.VISUAL_ID));
	label5003.setLayoutConstraint(NotationFactory.eINSTANCE
			.createLocation());
	Location location5003 = (Location) label5003.getLayoutConstraint();
	location5003.setX(0);
	location5003.setY(5);
	createCompartment(node, SmcVisualIDRegistry
			.getType(SMCSMCCompartmentEditPart.VISUAL_ID), false, false,
			false, false);
	return node;
}
 
开发者ID:road-framework,项目名称:ROADDesigner,代码行数:52,代码来源:SmcViewProvider.java


示例9: createPlayer_2002

import org.eclipse.gmf.runtime.notation.Location; //导入依赖的package包/类
/**
 * @generated
 */
public Node createPlayer_2002(EObject domainElement, View containerView,
		int index, boolean persisted, PreferencesHint preferencesHint) {
	Shape node = NotationFactory.eINSTANCE.createShape();
	node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
	node.setType(SmcVisualIDRegistry.getType(PlayerEditPart.VISUAL_ID));
	ViewUtil.insertChildView(containerView, node, index, persisted);
	node.setElement(domainElement);
	stampShortcut(containerView, node);
	// initializeFromPreferences 
	final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint
			.getPreferenceStore();

	org.eclipse.swt.graphics.RGB lineRGB = PreferenceConverter.getColor(
			prefStore, IPreferenceConstants.PREF_LINE_COLOR);
	ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
			.getLineStyle_LineColor(), FigureUtilities
			.RGBToInteger(lineRGB));
	FontStyle nodeFontStyle = (FontStyle) node
			.getStyle(NotationPackage.Literals.FONT_STYLE);
	if (nodeFontStyle != null) {
		FontData fontData = PreferenceConverter.getFontData(prefStore,
				IPreferenceConstants.PREF_DEFAULT_FONT);
		nodeFontStyle.setFontName(fontData.getName());
		nodeFontStyle.setFontHeight(fontData.getHeight());
		nodeFontStyle.setBold((fontData.getStyle() & SWT.BOLD) != 0);
		nodeFontStyle.setItalic((fontData.getStyle() & SWT.ITALIC) != 0);
		org.eclipse.swt.graphics.RGB fontRGB = PreferenceConverter
				.getColor(prefStore, IPreferenceConstants.PREF_FONT_COLOR);
		nodeFontStyle.setFontColor(FigureUtilities.RGBToInteger(fontRGB)
				.intValue());
	}
	org.eclipse.swt.graphics.RGB fillRGB = PreferenceConverter.getColor(
			prefStore, IPreferenceConstants.PREF_FILL_COLOR);
	ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
			.getFillStyle_FillColor(), FigureUtilities
			.RGBToInteger(fillRGB));
	Node label5004 = createLabel(node, SmcVisualIDRegistry
			.getType(WrappingLabelEditPart.VISUAL_ID));
	label5004.setLayoutConstraint(NotationFactory.eINSTANCE
			.createLocation());
	Location location5004 = (Location) label5004.getLayoutConstraint();
	location5004.setX(0);
	location5004.setY(5);
	return node;
}
 
开发者ID:road-framework,项目名称:ROADDesigner,代码行数:49,代码来源:SmcViewProvider.java


示例10: createContract_3002

import org.eclipse.gmf.runtime.notation.Location; //导入依赖的package包/类
/**
 * @generated
 */
public Node createContract_3002(EObject domainElement, View containerView,
		int index, boolean persisted, PreferencesHint preferencesHint) {
	Shape node = NotationFactory.eINSTANCE.createShape();
	node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
	node.setType(SmcVisualIDRegistry.getType(ContractEditPart.VISUAL_ID));
	ViewUtil.insertChildView(containerView, node, index, persisted);
	node.setElement(domainElement);
	// initializeFromPreferences 
	final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint
			.getPreferenceStore();

	org.eclipse.swt.graphics.RGB lineRGB = PreferenceConverter.getColor(
			prefStore, IPreferenceConstants.PREF_LINE_COLOR);
	ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
			.getLineStyle_LineColor(), FigureUtilities
			.RGBToInteger(lineRGB));
	FontStyle nodeFontStyle = (FontStyle) node
			.getStyle(NotationPackage.Literals.FONT_STYLE);
	if (nodeFontStyle != null) {
		FontData fontData = PreferenceConverter.getFontData(prefStore,
				IPreferenceConstants.PREF_DEFAULT_FONT);
		nodeFontStyle.setFontName(fontData.getName());
		nodeFontStyle.setFontHeight(fontData.getHeight());
		nodeFontStyle.setBold((fontData.getStyle() & SWT.BOLD) != 0);
		nodeFontStyle.setItalic((fontData.getStyle() & SWT.ITALIC) != 0);
		org.eclipse.swt.graphics.RGB fontRGB = PreferenceConverter
				.getColor(prefStore, IPreferenceConstants.PREF_FONT_COLOR);
		nodeFontStyle.setFontColor(FigureUtilities.RGBToInteger(fontRGB)
				.intValue());
	}
	org.eclipse.swt.graphics.RGB fillRGB = PreferenceConverter.getColor(
			prefStore, IPreferenceConstants.PREF_FILL_COLOR);
	ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
			.getFillStyle_FillColor(), FigureUtilities
			.RGBToInteger(fillRGB));
	Node label5005 = createLabel(node, SmcVisualIDRegistry
			.getType(ContractNameEditPart.VISUAL_ID));
	label5005.setLayoutConstraint(NotationFactory.eINSTANCE
			.createLocation());
	Location location5005 = (Location) label5005.getLayoutConstraint();
	location5005.setX(0);
	location5005.setY(5);
	return node;
}
 
开发者ID:road-framework,项目名称:ROADDesigner,代码行数:48,代码来源:SmcViewProvider.java


示例11: createFact_3003

import org.eclipse.gmf.runtime.notation.Location; //导入依赖的package包/类
/**
 * @generated
 */
public Node createFact_3003(EObject domainElement, View containerView,
		int index, boolean persisted, PreferencesHint preferencesHint) {
	Shape node = NotationFactory.eINSTANCE.createShape();
	node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
	node.setType(SmcVisualIDRegistry.getType(FactEditPart.VISUAL_ID));
	ViewUtil.insertChildView(containerView, node, index, persisted);
	node.setElement(domainElement);
	// initializeFromPreferences 
	final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint
			.getPreferenceStore();

	org.eclipse.swt.graphics.RGB lineRGB = PreferenceConverter.getColor(
			prefStore, IPreferenceConstants.PREF_LINE_COLOR);
	ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
			.getLineStyle_LineColor(), FigureUtilities
			.RGBToInteger(lineRGB));
	FontStyle nodeFontStyle = (FontStyle) node
			.getStyle(NotationPackage.Literals.FONT_STYLE);
	if (nodeFontStyle != null) {
		FontData fontData = PreferenceConverter.getFontData(prefStore,
				IPreferenceConstants.PREF_DEFAULT_FONT);
		nodeFontStyle.setFontName(fontData.getName());
		nodeFontStyle.setFontHeight(fontData.getHeight());
		nodeFontStyle.setBold((fontData.getStyle() & SWT.BOLD) != 0);
		nodeFontStyle.setItalic((fontData.getStyle() & SWT.ITALIC) != 0);
		org.eclipse.swt.graphics.RGB fontRGB = PreferenceConverter
				.getColor(prefStore, IPreferenceConstants.PREF_FONT_COLOR);
		nodeFontStyle.setFontColor(FigureUtilities.RGBToInteger(fontRGB)
				.intValue());
	}
	org.eclipse.swt.graphics.RGB fillRGB = PreferenceConverter.getColor(
			prefStore, IPreferenceConstants.PREF_FILL_COLOR);
	ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
			.getFillStyle_FillColor(), FigureUtilities
			.RGBToInteger(fillRGB));
	Node label5002 = createLabel(node, SmcVisualIDRegistry
			.getType(WrappingLabel3EditPart.VISUAL_ID));
	label5002.setLayoutConstraint(NotationFactory.eINSTANCE
			.createLocation());
	Location location5002 = (Location) label5002.getLayoutConstraint();
	location5002.setX(0);
	location5002.setY(5);
	return node;
}
 
开发者ID:road-framework,项目名称:ROADDesigner,代码行数:48,代码来源:SmcViewProvider.java


示例12: createXOR_2001

import org.eclipse.gmf.runtime.notation.Location; //导入依赖的package包/类
/**
 * @generated
 */
public Node createXOR_2001(EObject domainElement, View containerView,
		int index, boolean persisted, PreferencesHint preferencesHint) {
	Shape node = NotationFactory.eINSTANCE.createShape();
	node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
	node.setType(SimpleBPMN.diagram.part.SimpleBPMNVisualIDRegistry
			.getType(SimpleBPMN.diagram.edit.parts.XOREditPart.VISUAL_ID));
	ViewUtil.insertChildView(containerView, node, index, persisted);
	node.setElement(domainElement);
	stampShortcut(containerView, node);
	// initializeFromPreferences 
	final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint
			.getPreferenceStore();

	org.eclipse.swt.graphics.RGB lineRGB = PreferenceConverter.getColor(
			prefStore, IPreferenceConstants.PREF_LINE_COLOR);
	ViewUtil.setStructuralFeatureValue(node,
			NotationPackage.eINSTANCE.getLineStyle_LineColor(),
			FigureUtilities.RGBToInteger(lineRGB));
	FontStyle nodeFontStyle = (FontStyle) node
			.getStyle(NotationPackage.Literals.FONT_STYLE);
	if (nodeFontStyle != null) {
		FontData fontData = PreferenceConverter.getFontData(prefStore,
				IPreferenceConstants.PREF_DEFAULT_FONT);
		nodeFontStyle.setFontName(fontData.getName());
		nodeFontStyle.setFontHeight(fontData.getHeight());
		nodeFontStyle.setBold((fontData.getStyle() & SWT.BOLD) != 0);
		nodeFontStyle.setItalic((fontData.getStyle() & SWT.ITALIC) != 0);
		org.eclipse.swt.graphics.RGB fontRGB = PreferenceConverter
				.getColor(prefStore, IPreferenceConstants.PREF_FONT_COLOR);
		nodeFontStyle.setFontColor(FigureUtilities.RGBToInteger(fontRGB)
				.intValue());
	}
	org.eclipse.swt.graphics.RGB fillRGB = PreferenceConverter.getColor(
			prefStore, IPreferenceConstants.PREF_FILL_COLOR);
	ViewUtil.setStructuralFeatureValue(node,
			NotationPackage.eINSTANCE.getFillStyle_FillColor(),
			FigureUtilities.RGBToInteger(fillRGB));
	Node label5001 = createLabel(
			node,
			SimpleBPMN.diagram.part.SimpleBPMNVisualIDRegistry
					.getType(SimpleBPMN.diagram.edit.parts.XORNameEditPart.VISUAL_ID));
	label5001.setLayoutConstraint(NotationFactory.eINSTANCE
			.createLocation());
	Location location5001 = (Location) label5001.getLayoutConstraint();
	location5001.setX(0);
	location5001.setY(5);
	return node;
}
 
开发者ID:bluezio,项目名称:simplified-bpmn-example,代码行数:52,代码来源:SimpleBPMNViewProvider.java


示例13: createOR_2002

import org.eclipse.gmf.runtime.notation.Location; //导入依赖的package包/类
/**
 * @generated
 */
public Node createOR_2002(EObject domainElement, View containerView,
		int index, boolean persisted, PreferencesHint preferencesHint) {
	Shape node = NotationFactory.eINSTANCE.createShape();
	node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
	node.setType(SimpleBPMN.diagram.part.SimpleBPMNVisualIDRegistry
			.getType(SimpleBPMN.diagram.edit.parts.OREditPart.VISUAL_ID));
	ViewUtil.insertChildView(containerView, node, index, persisted);
	node.setElement(domainElement);
	stampShortcut(containerView, node);
	// initializeFromPreferences 
	final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint
			.getPreferenceStore();

	org.eclipse.swt.graphics.RGB lineRGB = PreferenceConverter.getColor(
			prefStore, IPreferenceConstants.PREF_LINE_COLOR);
	ViewUtil.setStructuralFeatureValue(node,
			NotationPackage.eINSTANCE.getLineStyle_LineColor(),
			FigureUtilities.RGBToInteger(lineRGB));
	FontStyle nodeFontStyle = (FontStyle) node
			.getStyle(NotationPackage.Literals.FONT_STYLE);
	if (nodeFontStyle != null) {
		FontData fontData = PreferenceConverter.getFontData(prefStore,
				IPreferenceConstants.PREF_DEFAULT_FONT);
		nodeFontStyle.setFontName(fontData.getName());
		nodeFontStyle.setFontHeight(fontData.getHeight());
		nodeFontStyle.setBold((fontData.getStyle() & SWT.BOLD) != 0);
		nodeFontStyle.setItalic((fontData.getStyle() & SWT.ITALIC) != 0);
		org.eclipse.swt.graphics.RGB fontRGB = PreferenceConverter
				.getColor(prefStore, IPreferenceConstants.PREF_FONT_COLOR);
		nodeFontStyle.setFontColor(FigureUtilities.RGBToInteger(fontRGB)
				.intValue());
	}
	org.eclipse.swt.graphics.RGB fillRGB = PreferenceConverter.getColor(
			prefStore, IPreferenceConstants.PREF_FILL_COLOR);
	ViewUtil.setStructuralFeatureValue(node,
			NotationPackage.eINSTANCE.getFillStyle_FillColor(),
			FigureUtilities.RGBToInteger(fillRGB));
	Node label5002 = createLabel(
			node,
			SimpleBPMN.diagram.part.SimpleBPMNVisualIDRegistry
					.getType(SimpleBPMN.diagram.edit.parts.ORNameEditPart.VISUAL_ID));
	label5002.setLayoutConstraint(NotationFactory.eINSTANCE
			.createLocation());
	Location location5002 = (Location) label5002.getLayoutConstraint();
	location5002.setX(0);
	location5002.setY(5);
	return node;
}
 
开发者ID:bluezio,项目名称:simplified-bpmn-example,代码行数:52,代码来源:SimpleBPMNViewProvider.java


示例14: createAND_2003

import org.eclipse.gmf.runtime.notation.Location; //导入依赖的package包/类
/**
 * @generated
 */
public Node createAND_2003(EObject domainElement, View containerView,
		int index, boolean persisted, PreferencesHint preferencesHint) {
	Shape node = NotationFactory.eINSTANCE.createShape();
	node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
	node.setType(SimpleBPMN.diagram.part.SimpleBPMNVisualIDRegistry
			.getType(SimpleBPMN.diagram.edit.parts.ANDEditPart.VISUAL_ID));
	ViewUtil.insertChildView(containerView, node, index, persisted);
	node.setElement(domainElement);
	stampShortcut(containerView, node);
	// initializeFromPreferences 
	final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint
			.getPreferenceStore();

	org.eclipse.swt.graphics.RGB lineRGB = PreferenceConverter.getColor(
			prefStore, IPreferenceConstants.PREF_LINE_COLOR);
	ViewUtil.setStructuralFeatureValue(node,
			NotationPackage.eINSTANCE.getLineStyle_LineColor(),
			FigureUtilities.RGBToInteger(lineRGB));
	FontStyle nodeFontStyle = (FontStyle) node
			.getStyle(NotationPackage.Literals.FONT_STYLE);
	if (nodeFontStyle != null) {
		FontData fontData = PreferenceConverter.getFontData(prefStore,
				IPreferenceConstants.PREF_DEFAULT_FONT);
		nodeFontStyle.setFontName(fontData.getName());
		nodeFontStyle.setFontHeight(fontData.getHeight());
		nodeFontStyle.setBold((fontData.getStyle() & SWT.BOLD) != 0);
		nodeFontStyle.setItalic((fontData.getStyle() & SWT.ITALIC) != 0);
		org.eclipse.swt.graphics.RGB fontRGB = PreferenceConverter
				.getColor(prefStore, IPreferenceConstants.PREF_FONT_COLOR);
		nodeFontStyle.setFontColor(FigureUtilities.RGBToInteger(fontRGB)
				.intValue());
	}
	org.eclipse.swt.graphics.RGB fillRGB = PreferenceConverter.getColor(
			prefStore, IPreferenceConstants.PREF_FILL_COLOR);
	ViewUtil.setStructuralFeatureValue(node,
			NotationPackage.eINSTANCE.getFillStyle_FillColor(),
			FigureUtilities.RGBToInteger(fillRGB));
	Node label5003 = createLabel(
			node,
			SimpleBPMN.diagram.part.SimpleBPMNVisualIDRegistry
					.getType(SimpleBPMN.diagram.edit.parts.ANDNameEditPart.VISUAL_ID));
	label5003.setLayoutConstraint(NotationFactory.eINSTANCE
			.createLocation());
	Location location5003 = (Location) label5003.getLayoutConstraint();
	location5003.setX(0);
	location5003.setY(5);
	return node;
}
 
开发者ID:bluezio,项目名称:simplified-bpmn-example,代码行数:52,代码来源:SimpleBPMNViewProvider.java


示例15: createStartEvent_2010

import org.eclipse.gmf.runtime.notation.Location; //导入依赖的package包/类
/**
 * @generated
 */
public Node createStartEvent_2010(EObject domainElement,
		View containerView, int index, boolean persisted,
		PreferencesHint preferencesHint) {
	Shape node = NotationFactory.eINSTANCE.createShape();
	node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
	node.setType(SimpleBPMN.diagram.part.SimpleBPMNVisualIDRegistry
			.getType(SimpleBPMN.diagram.edit.parts.StartEventEditPart.VISUAL_ID));
	ViewUtil.insertChildView(containerView, node, index, persisted);
	node.setElement(domainElement);
	stampShortcut(containerView, node);
	// initializeFromPreferences 
	final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint
			.getPreferenceStore();

	org.eclipse.swt.graphics.RGB lineRGB = PreferenceConverter.getColor(
			prefStore, IPreferenceConstants.PREF_LINE_COLOR);
	ViewUtil.setStructuralFeatureValue(node,
			NotationPackage.eINSTANCE.getLineStyle_LineColor(),
			FigureUtilities.RGBToInteger(lineRGB));
	FontStyle nodeFontStyle = (FontStyle) node
			.getStyle(NotationPackage.Literals.FONT_STYLE);
	if (nodeFontStyle != null) {
		FontData fontData = PreferenceConverter.getFontData(prefStore,
				IPreferenceConstants.PREF_DEFAULT_FONT);
		nodeFontStyle.setFontName(fontData.getName());
		nodeFontStyle.setFontHeight(fontData.getHeight());
		nodeFontStyle.setBold((fontData.getStyle() & SWT.BOLD) != 0);
		nodeFontStyle.setItalic((fontData.getStyle() & SWT.ITALIC) != 0);
		org.eclipse.swt.graphics.RGB fontRGB = PreferenceConverter
				.getColor(prefStore, IPreferenceConstants.PREF_FONT_COLOR);
		nodeFontStyle.setFontColor(FigureUtilities.RGBToInteger(fontRGB)
				.intValue());
	}
	org.eclipse.swt.graphics.RGB fillRGB = PreferenceConverter.getColor(
			prefStore, IPreferenceConstants.PREF_FILL_COLOR);
	ViewUtil.setStructuralFeatureValue(node,
			NotationPackage.eINSTANCE.getFillStyle_FillColor(),
			FigureUtilities.RGBToInteger(fillRGB));
	Node label5011 = createLabel(
			node,
			SimpleBPMN.diagram.part.SimpleBPMNVisualIDRegistry
					.getType(SimpleBPMN.diagram.edit.parts.StartEventNameEditPart.VISUAL_ID));
	label5011.setLayoutConstraint(NotationFactory.eINSTANCE
			.createLocation());
	Location location5011 = (Location) label5011.getLayoutConstraint();
	location5011.setX(0);
	location5011.setY(5);
	return node;
}
 
开发者ID:bluezio,项目名称:simplified-bpmn-example,代码行数:53,代码来源:SimpleBPMNViewProvider.java


示例16: createIntermediateEvent_2011

import org.eclipse.gmf.runtime.notation.Location; //导入依赖的package包/类
/**
 * @generated
 */
public Node createIntermediateEvent_2011(EObject domainElement,
		View containerView, int index, boolean persisted,
		PreferencesHint preferencesHint) {
	Shape node = NotationFactory.eINSTANCE.createShape();
	node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
	node.setType(SimpleBPMN.diagram.part.SimpleBPMNVisualIDRegistry
			.getType(SimpleBPMN.diagram.edit.parts.IntermediateEventEditPart.VISUAL_ID));
	ViewUtil.insertChildView(containerView, node, index, persisted);
	node.setElement(domainElement);
	stampShortcut(containerView, node);
	// initializeFromPreferences 
	final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint
			.getPreferenceStore();

	org.eclipse.swt.graphics.RGB lineRGB = PreferenceConverter.getColor(
			prefStore, IPreferenceConstants.PREF_LINE_COLOR);
	ViewUtil.setStructuralFeatureValue(node,
			NotationPackage.eINSTANCE.getLineStyle_LineColor(),
			FigureUtilities.RGBToInteger(lineRGB));
	FontStyle nodeFontStyle = (FontStyle) node
			.getStyle(NotationPackage.Literals.FONT_STYLE);
	if (nodeFontStyle != null) {
		FontData fontData = PreferenceConverter.getFontData(prefStore,
				IPreferenceConstants.PREF_DEFAULT_FONT);
		nodeFontStyle.setFontName(fontData.getName());
		nodeFontStyle.setFontHeight(fontData.getHeight());
		nodeFontStyle.setBold((fontData.getStyle() & SWT.BOLD) != 0);
		nodeFontStyle.setItalic((fontData.getStyle() & SWT.ITALIC) != 0);
		org.eclipse.swt.graphics.RGB fontRGB = PreferenceConverter
				.getColor(prefStore, IPreferenceConstants.PREF_FONT_COLOR);
		nodeFontStyle.setFontColor(FigureUtilities.RGBToInteger(fontRGB)
				.intValue());
	}
	org.eclipse.swt.graphics.RGB fillRGB = PreferenceConverter.getColor(
			prefStore, IPreferenceConstants.PREF_FILL_COLOR);
	ViewUtil.setStructuralFeatureValue(node,
			NotationPackage.eINSTANCE.getFillStyle_FillColor(),
			FigureUtilities.RGBToInteger(fillRGB));
	Node label5012 = createLabel(
			node,
			SimpleBPMN.diagram.part.SimpleBPMNVisualIDRegistry
					.getType(SimpleBPMN.diagram.edit.parts.IntermediateEventNameEditPart.VISUAL_ID));
	label5012.setLayoutConstraint(NotationFactory.eINSTANCE
			.createLocation());
	Location location5012 = (Location) label5012.getLayoutConstraint();
	location5012.setX(0);
	location5012.setY(5);
	return node;
}
 
开发者ID:bluezio,项目名称:simplified-bpmn-example,代码行数:53,代码来源:SimpleBPMNViewProvider.java


示例17: createEndEvent_2012

import org.eclipse.gmf.runtime.notation.Location; //导入依赖的package包/类
/**
 * @generated
 */
public Node createEndEvent_2012(EObject domainElement, View containerView,
		int index, boolean persisted, PreferencesHint preferencesHint) {
	Shape node = NotationFactory.eINSTANCE.createShape();
	node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
	node.setType(SimpleBPMN.diagram.part.SimpleBPMNVisualIDRegistry
			.getType(SimpleBPMN.diagram.edit.parts.EndEventEditPart.VISUAL_ID));
	ViewUtil.insertChildView(containerView, node, index, persisted);
	node.setElement(domainElement);
	stampShortcut(containerView, node);
	// initializeFromPreferences 
	final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint
			.getPreferenceStore();

	org.eclipse.swt.graphics.RGB lineRGB = PreferenceConverter.getColor(
			prefStore, IPreferenceConstants.PREF_LINE_COLOR);
	ViewUtil.setStructuralFeatureValue(node,
			NotationPackage.eINSTANCE.getLineStyle_LineColor(),
			FigureUtilities.RGBToInteger(lineRGB));
	FontStyle nodeFontStyle = (FontStyle) node
			.getStyle(NotationPackage.Literals.FONT_STYLE);
	if (nodeFontStyle != null) {
		FontData fontData = PreferenceConverter.getFontData(prefStore,
				IPreferenceConstants.PREF_DEFAULT_FONT);
		nodeFontStyle.setFontName(fontData.getName());
		nodeFontStyle.setFontHeight(fontData.getHeight());
		nodeFontStyle.setBold((fontData.getStyle() & SWT.BOLD) != 0);
		nodeFontStyle.setItalic((fontData.getStyle() & SWT.ITALIC) != 0);
		org.eclipse.swt.graphics.RGB fontRGB = PreferenceConverter
				.getColor(prefStore, IPreferenceConstants.PREF_FONT_COLOR);
		nodeFontStyle.setFontColor(FigureUtilities.RGBToInteger(fontRGB)
				.intValue());
	}
	org.eclipse.swt.graphics.RGB fillRGB = PreferenceConverter.getColor(
			prefStore, IPreferenceConstants.PREF_FILL_COLOR);
	ViewUtil.setStructuralFeatureValue(node,
			NotationPackage.eINSTANCE.getFillStyle_FillColor(),
			FigureUtilities.RGBToInteger(fillRGB));
	Node label5013 = createLabel(
			node,
			SimpleBPMN.diagram.part.SimpleBPMNVisualIDRegistry
					.getType(SimpleBPMN.diagram.edit.parts.EndEventNameEditPart.VISUAL_ID));
	label5013.setLayoutConstraint(NotationFactory.eINSTANCE
			.createLocation());
	Location location5013 = (Location) label5013.getLayoutConstraint();
	location5013.setX(0);
	location5013.setY(5);
	return node;
}
 
开发者ID:bluezio,项目名称:simplified-bpmn-example,代码行数:52,代码来源:SimpleBPMNViewProvider.java


示例18: createDataObject_2008

import org.eclipse.gmf.runtime.notation.Location; //导入依赖的package包/类
/**
 * @generated
 */
public Node createDataObject_2008(EObject domainElement,
		View containerView, int index, boolean persisted,
		PreferencesHint preferencesHint) {
	Shape node = NotationFactory.eINSTANCE.createShape();
	node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
	node.setType(SimpleBPMN.diagram.part.SimpleBPMNVisualIDRegistry
			.getType(SimpleBPMN.diagram.edit.parts.DataObjectEditPart.VISUAL_ID));
	ViewUtil.insertChildView(containerView, node, index, persisted);
	node.setElement(domainElement);
	stampShortcut(containerView, node);
	// initializeFromPreferences 
	final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint
			.getPreferenceStore();

	org.eclipse.swt.graphics.RGB lineRGB = PreferenceConverter.getColor(
			prefStore, IPreferenceConstants.PREF_LINE_COLOR);
	ViewUtil.setStructuralFeatureValue(node,
			NotationPackage.eINSTANCE.getLineStyle_LineColor(),
			FigureUtilities.RGBToInteger(lineRGB));
	FontStyle nodeFontStyle = (FontStyle) node
			.getStyle(NotationPackage.Literals.FONT_STYLE);
	if (nodeFontStyle != null) {
		FontData fontData = PreferenceConverter.getFontData(prefStore,
				IPreferenceConstants.PREF_DEFAULT_FONT);
		nodeFontStyle.setFontName(fontData.getName());
		nodeFontStyle.setFontHeight(fontData.getHeight());
		nodeFontStyle.setBold((fontData.getStyle() & SWT.BOLD) != 0);
		nodeFontStyle.setItalic((fontData.getStyle() & SWT.ITALIC) != 0);
		org.eclipse.swt.graphics.RGB fontRGB = PreferenceConverter
				.getColor(prefStore, IPreferenceConstants.PREF_FONT_COLOR);
		nodeFontStyle.setFontColor(FigureUtilities.RGBToInteger(fontRGB)
				.intValue());
	}
	org.eclipse.swt.graphics.RGB fillRGB = PreferenceConverter.getColor(
			prefStore, IPreferenceConstants.PREF_FILL_COLOR);
	ViewUtil.setStructuralFeatureValue(node,
			NotationPackage.eINSTANCE.getFillStyle_FillColor(),
			FigureUtilities.R 

鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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