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


Java PolygonDecoration.setFill方法代码示例

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


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

示例1: createTargetDecoration

import org.eclipse.draw2d.PolygonDecoration; //导入方法依赖的package包/类
private RotatableDecoration createTargetDecoration() {
	PolygonDecoration df = new PolygonDecoration();
	df.setFill(true);
	df.setLineWidth(getMapMode().DPtoLP(1));
	df.setTemplate(PolygonDecoration.TRIANGLE_TIP);
	return df;
}
 
开发者ID:Yakindu,项目名称:statecharts,代码行数:8,代码来源:TransitionFigure.java

示例2: createTargetDecoration

import org.eclipse.draw2d.PolygonDecoration; //导入方法依赖的package包/类
/**
 * @generated
 */
private RotatableDecoration createTargetDecoration() {
	PolygonDecoration df = new PolygonDecoration();
	df.setFill(true);
	PointList pl = new PointList();
	pl.addPoint(getMapMode().DPtoLP(0), getMapMode().DPtoLP(0));
	pl.addPoint(getMapMode().DPtoLP(-2), getMapMode().DPtoLP(2));
	pl.addPoint(getMapMode().DPtoLP(-2), getMapMode().DPtoLP(-2));
	pl.addPoint(getMapMode().DPtoLP(0), getMapMode().DPtoLP(0));
	df.setTemplate(pl);
	df.setScale(getMapMode().DPtoLP(7), getMapMode().DPtoLP(3));
	return df;
}
 
开发者ID:bluezio,项目名称:simplified-bpmn-example,代码行数:16,代码来源:SequenceFlow2EditPart.java

示例3: createTargetDecoration

import org.eclipse.draw2d.PolygonDecoration; //导入方法依赖的package包/类
/**
 * @generated
 */
private RotatableDecoration createTargetDecoration() {
	PolygonDecoration df = new PolygonDecoration();
	df.setFill(true);
	df.setBackgroundColor(ColorConstants.white);
	PointList pl = new PointList();
	pl.addPoint(getMapMode().DPtoLP(0), getMapMode().DPtoLP(0));
	pl.addPoint(getMapMode().DPtoLP(-2), getMapMode().DPtoLP(2));
	pl.addPoint(getMapMode().DPtoLP(-2), getMapMode().DPtoLP(-2));
	pl.addPoint(getMapMode().DPtoLP(0), getMapMode().DPtoLP(0));
	df.setTemplate(pl);
	df.setScale(getMapMode().DPtoLP(7), getMapMode().DPtoLP(3));
	return df;
}
 
开发者ID:bluezio,项目名称:simplified-bpmn-example,代码行数:17,代码来源:MessageFlow2EditPart.java

示例4: LinkRefConnection

import org.eclipse.draw2d.PolygonDecoration; //导入方法依赖的package包/类
/**
 * Constructor. Set the default type to Contribution
 */
public LinkRefConnection() {
    super();
    setLineWidth(3);
    setAntialias(GeneralPreferencePage.getAntialiasingPref());

    contribution = new PolylineDecoration();
    contribution.setTemplate(PolylineDecoration.TRIANGLE_TIP);
    contribution.setLineWidth(3);
    contribution.setScale(17, 7);
    contribution.setAntialias(GeneralPreferencePage.getAntialiasingPref());

    line = new PolylineDecoration();
    line.setTemplate(LINE);
    line.setLineWidth(3);
    line.setScale(10, 10);
    line.setAntialias(GeneralPreferencePage.getAntialiasingPref());

    depend = new PolygonDecoration();
    depend.setTemplate(DEPENDENCY_FIG);
    depend.setLineWidth(3);
    depend.setFill(true);
    depend.setForegroundColor(ColorManager.LINE);
    depend.setScale(2, 2);
    depend.setAntialias(GeneralPreferencePage.getAntialiasingPref());

    this.type = TYPE_CONTRIBUTION;
    setConnectionVisual();
}
 
开发者ID:McGill-DP-Group,项目名称:seg.jUCMNav,代码行数:32,代码来源:LinkRefConnection.java

示例5: createTargetDecoration

import org.eclipse.draw2d.PolygonDecoration; //导入方法依赖的package包/类
/**
 * @generated
 */
private RotatableDecoration createTargetDecoration() {
	PolygonDecoration df = new PolygonDecoration();
	df.setFill(true);
	df.setLineWidth(2);
	df.setBackgroundColor(ColorConstants.white);
	PointList pl = new PointList();
	pl.addPoint(getMapMode().DPtoLP(0), getMapMode().DPtoLP(0));
	pl.addPoint(getMapMode().DPtoLP(-2), getMapMode().DPtoLP(2));
	pl.addPoint(getMapMode().DPtoLP(-2), getMapMode().DPtoLP(-2));
	df.setTemplate(pl);
	df.setScale(getMapMode().DPtoLP(7), getMapMode().DPtoLP(3));
	return df;
}
 
开发者ID:adisandro,项目名称:MMINT,代码行数:17,代码来源:ExtendibleElementSupertypeEditPart.java

示例6: createTargetDecoration

import org.eclipse.draw2d.PolygonDecoration; //导入方法依赖的package包/类
/**
 * @generated
 */
private RotatableDecoration createTargetDecoration() {
	PolygonDecoration df = new PolygonDecoration();
	df.setFill(true);
	PointList pl = new PointList();
	pl.addPoint(getMapMode().DPtoLP(-1), getMapMode().DPtoLP(1));
	pl.addPoint(getMapMode().DPtoLP(0), getMapMode().DPtoLP(0));
	pl.addPoint(getMapMode().DPtoLP(-1), getMapMode().DPtoLP(-1));
	pl.addPoint(getMapMode().DPtoLP(-2), getMapMode().DPtoLP(0));
	pl.addPoint(getMapMode().DPtoLP(-1), getMapMode().DPtoLP(1));
	df.setTemplate(pl);
	df.setScale(getMapMode().DPtoLP(7), getMapMode().DPtoLP(3));
	return df;
}
 
开发者ID:adisandro,项目名称:MMINT,代码行数:17,代码来源:DecompositionEditPart.java

示例7: createTargetDecoration

import org.eclipse.draw2d.PolygonDecoration; //导入方法依赖的package包/类
/**
 * @generated
 */
private RotatableDecoration createTargetDecoration() {
	PolygonDecoration df = new PolygonDecoration();
	df.setFill(true);
	df.setBackgroundColor(ColorConstants.white);
	PointList pl = new PointList();
	pl.addPoint(getMapMode().DPtoLP(0), getMapMode().DPtoLP(1));
	pl.addPoint(getMapMode().DPtoLP(-1), getMapMode().DPtoLP(1));
	pl.addPoint(getMapMode().DPtoLP(-1), getMapMode().DPtoLP(-1));
	pl.addPoint(getMapMode().DPtoLP(0), getMapMode().DPtoLP(-1));
	pl.addPoint(getMapMode().DPtoLP(0), getMapMode().DPtoLP(1));
	df.setTemplate(pl);
	df.setScale(getMapMode().DPtoLP(7), getMapMode().DPtoLP(3));
	return df;
}
 
开发者ID:adisandro,项目名称:MMINT,代码行数:18,代码来源:ClassNestedInEditPart.java


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