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