Java Code Examples for org.eclipse.draw2d.PolygonDecoration#setLineWidth()

The following examples show how to use org.eclipse.draw2d.PolygonDecoration#setLineWidth() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TransitionFigure.java    From statecharts with Eclipse Public License 1.0 5 votes vote down vote up
private RotatableDecoration createTargetDecoration() {
	PolygonDecoration df = new PolygonDecoration();
	df.setFill(true);
	df.setLineWidth(getMapMode().DPtoLP(1));
	df.setTemplate(PolygonDecoration.TRIANGLE_TIP);
	return df;
}
 
Example 2
Source File: CustomSequenceFlowEditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
private RotatableDecoration createConditionalSourceDecoration() {
    final PolygonDecoration df = new PolygonDecoration();
    df.setFill(true);
    df.setLineWidth(1);
    df.setBackgroundColor(ColorConstants.white);
    final PointList pl = new PointList();
    pl.addPoint(0, 0);
    pl.addPoint(-1, 1);
    pl.addPoint(-2, 0);
    pl.addPoint(-1, -1);
    df.setTemplate(pl);
    df.setScale(getMapMode().DPtoLP(7), getMapMode().DPtoLP(5));
    return df;
}