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


Java IGaService.createStyle方法代码示例

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


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

示例1: 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

示例2: 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

示例3: 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

示例4: getStyleForPolygon

import org.eclipse.graphiti.services.IGaService; //导入方法依赖的package包/类
public static Style getStyleForPolygon(Diagram diagram) {
	final String styleId = "BPMN-POLYGON-ARROW"; //$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.BLACK));
		style.setBackground(gaService.manageColor(diagram, IColorConstant.BLACK));
		style.setLineWidth(1);
	}
	return style;
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:15,代码来源:StyleUtil.java


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