Java 类org.eclipse.draw2d.RotatableDecoration 实例源码

项目:d-case_editor    文件:DcaseLink003EditPart.java   
/**
 * @generated NOT
 */
private RotatableDecoration createDecoration() {
    PolygonDecoration df = new PolygonDecoration();
    df.setLineWidth(1);
    PointList list = new PointList();
    list.addPoint(0, 0);
    list.addPoint(-1, 1);
    list.addPoint(0, 0);
    list.addPoint(-1, -1);
    list.addPoint(0, 0);
    list.addPoint(-1, 0);
    list.addPoint(-2, 1);
    list.addPoint(-1, 0);
    list.addPoint(-2, -1);
    list.addPoint(-1, 0);
    df.setTemplate(list);

    return df;
}
项目:statecharts    文件:TransitionFigure.java   
private RotatableDecoration createTargetDecoration() {
    PolygonDecoration df = new PolygonDecoration();
    df.setFill(true);
    df.setLineWidth(getMapMode().DPtoLP(1));
    df.setTemplate(PolygonDecoration.TRIANGLE_TIP);
    return df;
}
项目:simplified-bpmn-example    文件:SequenceFlow2EditPart.java   
/**
 * @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;
}
项目:simplified-bpmn-example    文件:MessageFlow2EditPart.java   
/**
 * @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;
}
项目:simplified-bpmn-example    文件:MessageFlowEditPart.java   
/**
 * @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;
}
项目:simplified-bpmn-example    文件:SequenceFlowEditPart.java   
/**
 * @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;
}
项目:seg.jUCMNav    文件:KPIModelLinkRefConnection.java   
/**
 * Sets the decoration to be used at the middle of the {@link Connection}.
 * 
 * @param dec
 *            the new decoration
 */
public void setMiddleDecoration(RotatableDecoration dec) {
    if (middleDec == dec)
        return;
    if (middleDec != null)
        remove(middleDec);
    middleDec = dec;
    if (middleDec != null) {
        add(middleDec, new NodeConnectionLocator(this, ConnectionLocator.MIDDLE));
    }
}
项目:seg.jUCMNav    文件:LinkRefConnection.java   
/**
 * Sets the decoration to be used at the middle of the {@link Connection}.
 * 
 * @param dec
 *            the new decoration
 */
public void setMiddleDecoration(RotatableDecoration dec) {
    if (middleDec == dec)
        return;
    if (middleDec != null)
        remove(middleDec);
    middleDec = dec;
    if (middleDec != null) {
        add(middleDec, new NodeConnectionLocator(this, ConnectionLocator.MIDDLE));
    }
}
项目:MMINT    文件:ClassParentEditPart.java   
/**
 * @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;
}
项目:MMINT    文件:ExtendibleElementSupertypeEditPart.java   
/**
 * @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;
}
项目:MMINT    文件:ModelElementEndpointReference2EditPart.java   
/**
 * @generated
 */
private RotatableDecoration createTargetDecoration() {
    PolylineDecoration df = new PolylineDecoration();
    df.setLineWidth(3);
    df.setLineStyle(Graphics.LINE_DASH);
    return df;
}
项目:MMINT    文件:ExtendibleElementReferenceSupertypeRefEditPart.java   
/**
 * @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;
}
项目:MMINT    文件:BinaryMappingReference2EditPart.java   
/**
 * @generated
 */
private RotatableDecoration createTargetDecoration() {
    PolylineDecoration df = new PolylineDecoration();
    df.setLineWidth(3);
    df.setLineStyle(Graphics.LINE_DASH);
    return df;
}
项目:MMINT    文件:MeansEndEditPart.java   
/**
 * @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;
}
项目:MMINT    文件:DecompositionEditPart.java   
/**
 * @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;
}
项目:MMINT    文件:MeansEndEditPart.java   
/**
 * @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;
}
项目:MMINT    文件:DecompositionEditPart.java   
/**
 * @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;
}
项目:MMINT    文件:ClassSuperclassEditPart.java   
/**
 * @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;
}
项目:MMINT    文件:ClassNestedInEditPart.java   
/**
 * @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;
}
项目:MMINT    文件:SuperclassReferenceEditPart.java   
/**
 * @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;
}
项目:MMINT    文件:NestedInReferenceEditPart.java   
/**
 * @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;
}
项目:d-case_editor    文件:DcaseLink002EditPart.java   
/**
 * @generated
 */
private RotatableDecoration createTargetDecoration() {
    PolygonDecoration df = new PolygonDecoration();
    df.setLineWidth(1);

    // sets a triangular background color in white
    df.setBackgroundColor(Display.getDefault().getSystemColor(SWT.COLOR_WHITE));

    return df;
}
项目:ermasterr    文件:DecorationFactory.java   
public RotatableDecoration getSourceDecoration() {
    return sourceDecoration;
}
项目:ermasterr    文件:DecorationFactory.java   
public RotatableDecoration getTargetDecoration() {
    return targetDecoration;
}
项目:ermaster-k    文件:DecorationFactory.java   
public RotatableDecoration getSourceDecoration() {
    return sourceDecoration;
}
项目:ermaster-k    文件:DecorationFactory.java   
public RotatableDecoration getTargetDecoration() {
    return targetDecoration;
}
项目:PDFReporter-Studio    文件:RelationshipPart.java   
private RotatableDecoration getInnerDecoration() {
    PolygonDecoration srcpd = new PolygonDecoration();
    srcpd.setTemplate(JOINDECORATOR);
    srcpd.setBackgroundColor(ColorConstants.black);
    return srcpd;
}
项目:PDFReporter-Studio    文件:RelationshipPart.java   
private RotatableDecoration getOuterDecoration() {
    PolygonDecoration srcpd = new PolygonDecoration();
    srcpd.setTemplate(JOINDECORATOR);
    srcpd.setBackgroundColor(ColorConstants.white);
    return srcpd;
}
项目:PDFReporter-Studio    文件:RelationshipPart.java   
private RotatableDecoration getCrossDecoration() {
    PolygonDecoration srcpd = new PolygonDecoration();
    srcpd.setTemplate(JOINDECORATOR);
    srcpd.setBackgroundColor(ColorConstants.lightGray);
    return srcpd;
}
项目:erflute    文件:DecorationFactory.java   
public RotatableDecoration getSourceDecoration() {
    return sourceDecoration;
}
项目:erflute    文件:DecorationFactory.java   
public RotatableDecoration getTargetDecoration() {
    return targetDecoration;
}
项目:ermaster-nhit    文件:DecorationFactory.java   
public RotatableDecoration getSourceDecoration() {
    return sourceDecoration;
}
项目:ermaster-nhit    文件:DecorationFactory.java   
public RotatableDecoration getTargetDecoration() {
    return targetDecoration;
}
项目:ROADDesigner    文件:FactLinkEditPart.java   
/**
 * @generated
 */
private RotatableDecoration createSourceDecoration() {
    PolylineDecoration df = new PolylineDecoration();
    df.setLineWidth(1);
    return df;
}
项目:ROADDesigner    文件:FactLink2EditPart.java   
/**
 * @generated
 */
private RotatableDecoration createTargetDecoration() {
    PolylineDecoration df = new PolylineDecoration();
    df.setLineWidth(2);
    return df;
}
项目:HelloBrazil    文件:MatchHomeEditPart.java   
/**
 * @generated
 */
private RotatableDecoration createTargetDecoration() {
    PolylineDecoration df = new PolylineDecoration();
    return df;
}
项目:HelloBrazil    文件:TeamAtGroupEditPart.java   
/**
 * @generated
 */
private RotatableDecoration createTargetDecoration() {
    PolylineDecoration df = new PolylineDecoration();
    return df;
}
项目:HelloBrazil    文件:MatchAwayEditPart.java   
/**
 * @generated
 */
private RotatableDecoration createTargetDecoration() {
    PolylineDecoration df = new PolylineDecoration();
    return df;
}
项目:HelloBrazil    文件:GroupFirstTeamEditPart.java   
/**
 * @generated
 */
private RotatableDecoration createTargetDecoration() {
    PolylineDecoration df = new PolylineDecoration();
    return df;
}
项目:HelloBrazil    文件:EliminationMatchWinnerEditPart.java   
/**
 * @generated
 */
private RotatableDecoration createTargetDecoration() {
    PolylineDecoration df = new PolylineDecoration();
    return df;
}