本文整理汇总了Java中org.eclipse.draw2d.PolylineDecoration.setLineWidth方法的典型用法代码示例。如果您正苦于以下问题:Java PolylineDecoration.setLineWidth方法的具体用法?Java PolylineDecoration.setLineWidth怎么用?Java PolylineDecoration.setLineWidth使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.draw2d.PolylineDecoration
的用法示例。
在下文中一共展示了PolylineDecoration.setLineWidth方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: addArrowDecoration
import org.eclipse.draw2d.PolylineDecoration; //导入方法依赖的package包/类
static void addArrowDecoration(PolylineConnection pointer) {
PolylineDecoration decoration = new PolylineDecoration();
PointList points = new PointList();
points.addPoint(-1, -1);
points.addPoint(0, 0);
points.addPoint(-1, 1);
decoration.setTemplate(points);
decoration.setScale(PandionJConstants.ARROW_EDGE, PandionJConstants.ARROW_EDGE);
decoration.setLineWidth(PandionJConstants.ARROW_LINE_WIDTH);
decoration.setOpaque(true);
pointer.setTargetDecoration(decoration);
}
示例2: addArrowDecoration
import org.eclipse.draw2d.PolylineDecoration; //导入方法依赖的package包/类
private void addArrowDecoration(PolylineConnection pointer) {
PolylineDecoration decoration = new PolylineDecoration();
PointList points = new PointList();
points.addPoint(-1, -1);
points.addPoint(0, 0);
points.addPoint(-1, 1);
decoration.setTemplate(points);
decoration.setScale(Constants.ARROW_EDGE, Constants.ARROW_EDGE);
decoration.setLineWidth(Constants.ARROW_LINE_WIDTH);
decoration.setOpaque(true);
pointer.setTargetDecoration(decoration);
}
示例3: KPIModelLinkRefConnection
import org.eclipse.draw2d.PolylineDecoration; //导入方法依赖的package包/类
/**
* Constructor. Set the default type to kpiModelLink
*/
public KPIModelLinkRefConnection() {
super();
setLineWidth(3);
kpiModelLink = new PolylineDecoration();
kpiModelLink.setTemplate(PolylineDecoration.TRIANGLE_TIP);
kpiModelLink.setLineWidth(3);
kpiModelLink.setLineStyle(SWT.LINE_SOLID);
kpiModelLink.setScale(17, 7);
this.type = TYPE_KPIMODEL_LINK;
setConnectionVisual();
}
示例4: LinkRefConnection
import org.eclipse.draw2d.PolylineDecoration; //导入方法依赖的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();
}
示例5: createTargetDecoration
import org.eclipse.draw2d.PolylineDecoration; //导入方法依赖的package包/类
/**
* @generated
*/
private RotatableDecoration createTargetDecoration() {
PolylineDecoration df = new PolylineDecoration();
df.setLineWidth(3);
df.setLineStyle(Graphics.LINE_DASH);
return df;
}
示例6: createSourceDecoration
import org.eclipse.draw2d.PolylineDecoration; //导入方法依赖的package包/类
/**
* @generated
*/
private RotatableDecoration createSourceDecoration() {
PolylineDecoration df = new PolylineDecoration();
df.setLineWidth(1);
return df;
}
示例7: createTargetDecoration
import org.eclipse.draw2d.PolylineDecoration; //导入方法依赖的package包/类
/**
* @generated
*/
private RotatableDecoration createTargetDecoration() {
PolylineDecoration df = new PolylineDecoration();
df.setLineWidth(2);
return df;
}
示例8: createTargetDecoration
import org.eclipse.draw2d.PolylineDecoration; //导入方法依赖的package包/类
/**
* @generated
*/
private RotatableDecoration createTargetDecoration() {
PolylineDecoration df = new PolylineDecoration();
df.setLineWidth(3);
return df;
}