本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}