org.eclipse.draw2d.RotatableDecoration Java Examples

The following examples show how to use org.eclipse.draw2d.RotatableDecoration. 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: CustomSequenceFlowEditPart.java    From bonita-studio with GNU General Public License v2.0 6 votes vote down vote up
/**
 * @generated
 */
private RotatableDecoration createTargetDecoration() {
    final PolygonDecoration df = new PolygonDecoration();
    df.setFill(true);
    df.setBackgroundColor(ColorConstants.black);
    final PointList pl = new PointList();
    pl.addPoint(getMapMode().DPtoLP(0)
            , getMapMode().DPtoLP(0)
            );
    pl.addPoint(getMapMode().DPtoLP(-1)
            , getMapMode().DPtoLP(1)
            );
    pl.addPoint(getMapMode().DPtoLP(-1)
            , getMapMode().DPtoLP(-1)
            );
    pl.addPoint(getMapMode().DPtoLP(0)
            , getMapMode().DPtoLP(0)
            );
    df.setTemplate(pl);
    df.setScale(getMapMode().DPtoLP(7)
            , getMapMode().DPtoLP(3)
            );
    return df;
}
 
Example #2
Source File: CustomSequenceFlowEditPart.java    From bonita-studio with GNU General Public License v2.0 6 votes vote down vote up
private RotatableDecoration createDefaultSourceDecoration() {

            final PolylineDecoration df = new PolylineDecoration();
            final Point startPoint = new Point(-2, -1);
            final Point endPoint = new Point(-1, 1);
            df.setFill(true);
            df.setLineWidth(1);
            df.setOutline(true);
            df.addPoint(startPoint);
            df.addPoint(endPoint);
            final PointList pl = new PointList();
            pl.addPoint(startPoint);
            pl.addPoint(endPoint);
            df.setTemplate(pl);
            df.setStart(startPoint);
            df.setEnd(endPoint);
            df.setScale(getMapMode().DPtoLP(5), getMapMode().DPtoLP(5));

            return df;
        }
 
Example #3
Source File: StreamInputOfEditPart.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* @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;
}
 
Example #4
Source File: TaskOutputEditPart.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * @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;
}
 
Example #5
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 #6
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;
}
 
Example #7
Source File: MessageFlowEditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @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(-1), getMapMode().DPtoLP(1));
	pl.addPoint(getMapMode().DPtoLP(-1), getMapMode().DPtoLP(-1));
	pl.addPoint(getMapMode().DPtoLP(0), getMapMode().DPtoLP(0));
	df.setTemplate(pl);
	df.setScale(getMapMode().DPtoLP(7), getMapMode().DPtoLP(3));
	return df;
}
 
Example #8
Source File: SequenceFlowEditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @generated
 */
private RotatableDecoration createTargetDecoration() {
	PolygonDecoration df = new PolygonDecoration();
	df.setFill(true);
	df.setBackgroundColor(ColorConstants.black);
	PointList pl = new PointList();
	pl.addPoint(getMapMode().DPtoLP(0), getMapMode().DPtoLP(0));
	pl.addPoint(getMapMode().DPtoLP(-1), getMapMode().DPtoLP(1));
	pl.addPoint(getMapMode().DPtoLP(-1), getMapMode().DPtoLP(-1));
	pl.addPoint(getMapMode().DPtoLP(0), getMapMode().DPtoLP(0));
	df.setTemplate(pl);
	df.setScale(getMapMode().DPtoLP(7), getMapMode().DPtoLP(3));
	return df;
}
 
Example #9
Source File: DecorationFactory.java    From ermasterr with Apache License 2.0 4 votes vote down vote up
public RotatableDecoration getSourceDecoration() {
    return sourceDecoration;
}
 
Example #10
Source File: DecorationFactory.java    From ermasterr with Apache License 2.0 4 votes vote down vote up
public RotatableDecoration getTargetDecoration() {
    return targetDecoration;
}
 
Example #11
Source File: DecorationFactory.java    From erflute with Apache License 2.0 4 votes vote down vote up
public RotatableDecoration getSourceDecoration() {
    return sourceDecoration;
}
 
Example #12
Source File: DecorationFactory.java    From erflute with Apache License 2.0 4 votes vote down vote up
public RotatableDecoration getTargetDecoration() {
    return targetDecoration;
}
 
Example #13
Source File: DecorationFactory.java    From ermaster-b with Apache License 2.0 4 votes vote down vote up
public RotatableDecoration getSourceDecoration() {
	return sourceDecoration;
}
 
Example #14
Source File: DecorationFactory.java    From ermaster-b with Apache License 2.0 4 votes vote down vote up
public RotatableDecoration getTargetDecoration() {
	return targetDecoration;
}