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


Java IGaService.setRenderingStyle方法代码示例

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


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

示例1: getStyleForService

import org.eclipse.graphiti.services.IGaService; //导入方法依赖的package包/类
public static Style getStyleForService(Diagram diagram) {
	
	final String styleId = "SERVICE";
	IGaService gaService = Graphiti.getGaService();

	// this is a child style of the common-values-style
	Style parentStyle = getStyleForCommonValues(diagram);
	Style style = gaService.findStyle(parentStyle, styleId);

	if (style == null) { // style not found - create new style
		style = gaService.createPlainStyle(parentStyle, styleId);
		style.setFilled(true);
		style.setForeground(gaService.manageColor(diagram, SERVICE_FOREGROUND));
		gaService.setRenderingStyle(style, ServiceColoredAreas.getServiceAdaptions());
	}
	return style;
}
 
开发者ID:CloudScale-Project,项目名称:Environment,代码行数:18,代码来源:StyleUtil.java

示例2: getStyleForNode

import org.eclipse.graphiti.services.IGaService; //导入方法依赖的package包/类
public static Style getStyleForNode(Diagram diagram) {
	
	final String styleId = "NODE";
	IGaService gaService = Graphiti.getGaService();

	// this is a child style of the common-values-style
	Style parentStyle = getStyleForCommonValues(diagram);
	Style style = gaService.findStyle(parentStyle, styleId);

	if (style == null) { // style not found - create new style
		style = gaService.createPlainStyle(parentStyle, styleId);
		style.setFilled(true);
		style.setForeground(gaService.manageColor(diagram, NODE_FOREGROUND));
		gaService.setRenderingStyle(style, NodeColoredAreas.getNodeAdaptions());
	}
	return style;
}
 
开发者ID:CloudScale-Project,项目名称:Environment,代码行数:18,代码来源:StyleUtil.java

示例3: getStyleForCloudProvider

import org.eclipse.graphiti.services.IGaService; //导入方法依赖的package包/类
public static Style getStyleForCloudProvider(Diagram diagram) {
	final String styleId = "CLOUDPROVIDER"; //$NON-NLS-1$
	IGaService gaService = Graphiti.getGaService();

	// this is a child style of the common-values-style
	Style parentStyle = getStyleForCommonValues(diagram);
	Style style = gaService.findStyle(parentStyle, styleId);

	if (style == null) { // style not found - create new style
		style = gaService.createPlainStyle(parentStyle, styleId);
		style.setFilled(true);
		style.setForeground(gaService.manageColor(diagram, CLOUDPROVIDER_FOREGROUND));

		gaService.setRenderingStyle(style, CloudProviderColoredAreas.getCloudProviderAdaptions());
	}
	return style;
}
 
开发者ID:CloudScale-Project,项目名称:Environment,代码行数:18,代码来源:StyleUtil.java

示例4: getStyleForConnector

import org.eclipse.graphiti.services.IGaService; //导入方法依赖的package包/类
public static Style getStyleForConnector (Diagram diagram) {
	final String styleId = "CONNECTOR"; //$NON-NLS-1$
	IGaService gaService = Graphiti.getGaService();

	// this is a child style of the common-values-style
	Style parentStyle = getStyleForCommonValues(diagram);
	Style style = gaService.findStyle(parentStyle, styleId);

	if (style == null) { // style not found - create new style
		style = gaService.createPlainStyle(parentStyle, styleId);
		style.setFilled(true);
		style.setForeground(gaService.manageColor(diagram, CLOUDPROVIDER_FOREGROUND));

		gaService.setRenderingStyle(style, CloudProviderColoredAreas.getLightYellowAdaptions());
	}
	return style;
}
 
开发者ID:CloudScale-Project,项目名称:Environment,代码行数:18,代码来源:StyleUtil.java

示例5: getStyleForTask

import org.eclipse.graphiti.services.IGaService; //导入方法依赖的package包/类
public static Style getStyleForTask(Diagram diagram) {
  final String styleId = "TASK"; //$NON-NLS-1$

  Style style = findStyle(diagram, styleId);
  if (style == null) { // style not found - create new style
    IGaService gaService = Graphiti.getGaService();
    style = gaService.createStyle(diagram, styleId);
    style.setForeground(gaService.manageColor(diagram, BPMN_CLASS_FOREGROUND));
    gaService.setRenderingStyle(style, getDefaultTaskColor());
    style.setLineWidth(20);
  }
  return style;
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:14,代码来源:StyleUtil.java

示例6: getStyleForSecurityNode

import org.eclipse.graphiti.services.IGaService; //导入方法依赖的package包/类
public static Style getStyleForSecurityNode(Diagram diagram) {
  final String styleId = "SECURITYNODE"; //$NON-NLS-1$

  Style style = findStyle(diagram, styleId);
  if (style == null) { // style not found - create new style
    IGaService gaService = Graphiti.getGaService();
    style = gaService.createStyle(diagram, styleId);
    style.setForeground(gaService.manageColor(diagram,IColorConstant.LIGHT_BLUE));
    gaService.setRenderingStyle(style, getDefaultSecurityNodeColor());
    style.setLineWidth(20);
  }
  return style;
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:14,代码来源:StyleUtil.java

示例7: getStyleForEvent

import org.eclipse.graphiti.services.IGaService; //导入方法依赖的package包/类
public static Style getStyleForEvent(Diagram diagram) {
  final String styleId = "EVENT"; //$NON-NLS-1$

  Style style = findStyle(diagram, styleId);
  if (style == null) { // style not found - create new style
    IGaService gaService = Graphiti.getGaService();
    style = gaService.createStyle(diagram, styleId);
    style.setForeground(gaService.manageColor(diagram, BPMN_CLASS_FOREGROUND));
    gaService.setRenderingStyle(style, getDefaultEventColor());
    style.setLineWidth(20);
  }
  return style;
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:14,代码来源:StyleUtil.java


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