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

项目:neoscada    文件:RoundDetailsPart.java   
private void createRoundArrow ( final Figure figure )
{
    final PolylineConnection c = new PolylineConnection ();
    c.setSourceAnchor ( new ChopboxAnchor ( this.sourceRect ) );
    c.setTargetAnchor ( new ChopboxAnchor ( this.targetRect ) );

    final PolygonDecoration dec = new PolygonDecoration ();
    dec.setTemplate ( PolygonDecoration.TRIANGLE_TIP );
    c.setTargetDecoration ( dec );

    final MidpointLocator typeLocator = new MidpointLocator ( c, 0 );
    typeLocator.setRelativePosition ( PositionConstants.NORTH );
    this.typeLabel = new Label ( "" ); //$NON-NLS-1$
    c.add ( this.typeLabel, typeLocator );

    figure.add ( c );
    this.roundConnection = c;
}
项目:Open_Source_ECOA_Toolset_AS5    文件:LinkEditPart.java   
@Override
protected IFigure createFigure() {
    Link lnk = (Link) getModel();
    String dis = "";
    if (lnk.getSource() instanceof TriggerInstanceTerminalNode || lnk.getTarget() instanceof TriggerInstanceTerminalNode)
        dis = "Period : " + lnk.getPeriod();
    LabeledConnection conn = new LabeledConnection(dis);
    PolygonDecoration decoration = new PolygonDecoration();
    PointList decorationPointList = new PointList();
    decorationPointList.addPoint(0, 0);
    decorationPointList.addPoint(-2, 2);
    decorationPointList.addPoint(-2, -2);
    decoration.setTemplate(decorationPointList);
    conn.setTargetDecoration(decoration);
    conn.setConnectionRouter(new BendpointConnectionRouter());
    return conn;
}
项目:subclipse    文件:GraphEditPart.java   
private PolylineConnection makeConnection(IFigure contents, IFigure source, NodeFigure target, Color color) {
    PolylineConnection c = new PolylineConnection();
    ConnectionAnchor targetAnchor = new ChopboxAnchor(target);
    c.setTargetAnchor(targetAnchor);
    c.setSourceAnchor(new ChopboxAnchor(source));
    PolygonDecoration decoration = new PolygonDecoration();
    decoration.setTemplate(PolygonDecoration.TRIANGLE_TIP);
    c.setTargetDecoration(decoration);
    c.setForegroundColor(color);
    ConnectionMouseListener listener = new ConnectionMouseListener(c);
    c.addMouseMotionListener(listener);
    c.addMouseListener(listener);
    c.setCursor(Cursors.HAND);
    contents.add(c);
    connections.add(c);
    return c;
}
项目:NEXCORE-UML-Modeler    文件:GeneralizationEditPart.java   
/**
 * @see nexcore.tool.uml.ui.core.diagram.edit.part.AbstractDiagramConnectionEditPart#createFigure()
 */
@Override
protected IFigure createFigure() {
    PolylineConnection connection = new PolylineConnection() {
        @Override
        public void paintFigure(Graphics graphics) {
            graphics.setAntialias(SWT.ON);
            super.paintFigure(graphics);
        }
    };
    connection.setForegroundColor(Display.getCurrent().getSystemColor(SWT.COLOR_BLACK));
    PolygonDecoration polygonDecoreation = new PolygonDecoration();
    polygonDecoreation.setBackgroundColor(Display.getCurrent().getSystemColor(SWT.COLOR_WHITE));
    polygonDecoreation.setScale(10, 5);
    connection.setTargetDecoration(polygonDecoreation);
    connection.addRoutingListener(RoutingAnimator.getDefault());
    connection.setConnectionRouter(new BendpointConnectionRouter());

    return connection;
}
项目:FRaMED    文件:ORMConnectionFigureFactory.java   
/**
 * {@link Relation}s from type roleequivalence have as figure a dashed line with a white arrow
 * tips at both connection ends.
 * 
 * @return conn org.eclipse.draw2d.PolylineConnection
 */
private static Figure createRoleEquivalenceFigure() {
  // create white arrow tip 1
  PolygonDecoration poly1 = new PolygonDecoration();
  poly1.setAntialias(SWT.ON);
  poly1.setBackgroundColor(ColorConstants.white);
  poly1.setScale(5, 5);

  // create white arrow tip 2
  PolygonDecoration poly2 = new PolygonDecoration();
  poly2.setAntialias(SWT.ON);
  poly2.setBackgroundColor(ColorConstants.white);
  poly2.setScale(5, 5);

  PolylineConnection conn = new PolylineConnection();
  conn.setAntialias(SWT.ON);
  conn.setLineDash(new float[] {5.0f, 5.0f});
  conn.setLineStyle(SWT.LINE_CUSTOM);
  // add white arrow tip 1
  conn.setTargetDecoration(poly1);
  // add white arrow tip 2
  conn.setSourceDecoration(poly2);
  conn.setConnectionRouter(new BendpointConnectionRouter());
  return conn;
}
项目:FRaMED    文件:ORMConnectionFigureFactory.java   
/**
 * {@link Relations}s from type roleimplication and relationshipimplication have as figure a
 * dashed line with a white arrow tip at target end of this connection.
 * 
 * @return conn org.eclipse.draw2d.PolylineConnection
 */
private static Figure createRoleRelationshipImplicationFigure() {
  // create white arrow tip
  PolygonDecoration poly = new PolygonDecoration();
  poly.setAntialias(SWT.ON);
  poly.setBackgroundColor(ColorConstants.white);
  poly.setScale(5, 5);

  PolylineConnection conn = new PolylineConnection();
  conn.setAntialias(SWT.ON);
  conn.setLineDash(new float[] {5.0f, 5.0f});
  conn.setLineStyle(SWT.LINE_CUSTOM);
  conn.setTargetDecoration(poly);
  conn.setConnectionRouter(new BendpointConnectionRouter());
  return conn;
}
项目: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;
}
项目:neoscada    文件:ManualOverride.java   
/**
 * Set graphics attribute according to the connection state
 * 
 * @param connection
 *            the connection to change
 * @param state
 *            the state
 */
protected void setConnectionState ( final PolylineConnection connection, final boolean state )
{
    final PolygonDecoration dec = new PolygonDecoration ();
    dec.setTemplate ( PolygonDecoration.TRIANGLE_TIP );

    connection.setLineStyle ( state ? Graphics.LINE_SOLID : Graphics.LINE_DOT );
    connection.setLineWidth ( state ? 2 : 1 );
    connection.setTargetDecoration ( state ? dec : null );
}
项目:neoscada    文件:InputScaleDetails.java   
private void connect ( final IFigure figure, final IFigure source, final IFigure target )
{
    final PolylineConnection c = new PolylineConnection ();
    c.setSourceAnchor ( new ChopboxAnchor ( source ) );
    c.setTargetAnchor ( new ChopboxAnchor ( target ) );

    final PolygonDecoration dec = new PolygonDecoration ();
    dec.setTemplate ( PolygonDecoration.TRIANGLE_TIP );
    dec.setBackgroundColor ( ColorConstants.black );
    c.setTargetDecoration ( dec );

    figure.add ( c );
}
项目:Open_Source_ECOA_Toolset_AS5    文件:LinkEditPart.java   
@Override
protected IFigure createFigure() {
    LabeledConnection conn = new LabeledConnection("rank : " + ((Link) getModel()).getRank());
    conn.setConnectionRouter(new BendpointConnectionRouter());
    PolygonDecoration decoration = new PolygonDecoration();
    PointList decorationPointList = new PointList();
    decorationPointList.addPoint(0, 0);
    decorationPointList.addPoint(-2, 2);
    decorationPointList.addPoint(-2, -2);
    decoration.setTemplate(decorationPointList);
    conn.setTargetDecoration(decoration);
    return conn;
}
项目:Open_Source_ECOA_Toolset_AS5    文件:LinkEditPart.java   
@Override
protected IFigure createFigure() {
    LabeledConnection conn = new LabeledConnection("rank : " + ((Link) getModel()).getRank());
    conn.setConnectionRouter(new BendpointConnectionRouter());
    PolygonDecoration decoration = new PolygonDecoration();
    PointList decorationPointList = new PointList();
    decorationPointList.addPoint(0, 0);
    decorationPointList.addPoint(-2, 2);
    decorationPointList.addPoint(-2, -2);
    decoration.setTemplate(decorationPointList);
    conn.setTargetDecoration(decoration);
    return conn;
}
项目:Hydrograph    文件:LinkEditPart.java   
@Override
protected IFigure createFigure() {

    PolylineConnection connection = (PolylineConnection) super
            .createFigure();
    connection.addRoutingListener(RoutingAnimator.getDefault());
    connection.setTargetDecoration(new PolygonDecoration());
    connection.setLineStyle(getCastedModel().getLineStyle());
    return connection;
}
项目:bdf2    文件:TransitionEditPart.java   
@Override
protected IFigure createFigure() {
    final PolylineConnection connection = new PolylineConnection();
    connection.setConnectionRouter(new BendpointConnectionRouter());
    PolygonDecoration decoration = new PolygonDecoration();
    decoration.setTemplate(new PointList(new int[]{0, 0, -2, 2, -2, 0, -2, -2, 0, 0}));
    RGB rgb=Activator.getPreference().getTransitionColor();
    decoration.setBackgroundColor(new Color(null,rgb));
    connection.setTargetDecoration(decoration);
    connection.setAntialias(SWT.ON);
    connection.setForegroundColor(new Color(null,rgb));
    return connection;
}
项目:pandionj    文件:FrameViewer.java   
private void addNullDecoration(PolylineConnection pointer) {
    PolygonDecoration decoration = new PolygonDecoration();
    PointList points = new PointList();
    points.addPoint(0,-1); // 1
    points.addPoint(0, 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);    
}
项目:NEXCORE-UML-Modeler    文件:AbstractDiagramConnectionEditPart.java   
/**
 * 
 * @see org.eclipse.gef.editparts.AbstractConnectionEditPart#createFigure()
 */
@Override
protected IFigure createFigure() {
    PolylineConnection connection = new PolylineConnection();
    connection.setForegroundColor(Display.getCurrent().getSystemColor(SWT.COLOR_BLACK));
    PolygonDecoration polygonDecoreation = new PolygonDecoration();
    polygonDecoreation.setScale(10, 5);
    connection.setTargetDecoration(polygonDecoreation);
    return connection;
}
项目: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;
}
项目:FRaMED    文件:ORMConnectionFigureFactory.java   
/**
 * {@link Relation}s from type inheritance have as figure a drawn through line with a white arrow
 * tip at target end of this connection.
 * 
 * @return conn org.eclipse.draw2d.PolylineConnection
 */
private static Figure createInheritanceFigure() {
  PolylineConnection conn = new PolylineConnection();
  conn.setAntialias(SWT.ON);
  // create white arrow tip
  PolygonDecoration poly = new PolygonDecoration();
  poly.setAntialias(SWT.ON);
  poly.setBackgroundColor(ColorConstants.white);
  poly.setScale(5, 5);

  // add white arrow tip
  conn.setTargetDecoration(poly);
  conn.setConnectionRouter(new BendpointConnectionRouter());
  return conn;
}
项目:jive    文件:MessageFigure.java   
InitiatorMessageFigure(final boolean isTransparent)
{
  super();
  setOpaque(!isTransparent);
  setLineStyle(SWT.LINE_SOLID);
  setForegroundColor(isTransparent ? ColorConstants.white : ColorConstants.gray);
  setLineWidthFloat(1.15f);
  // omit decoration for transparent figures
  if (!isTransparent)
  {
    final PolygonDecoration decoration = new PolygonDecoration();
    decoration.setScale(8, 3);
    setTargetDecoration(decoration);
  }
}
项目:birt    文件:ColumnConnection.java   
public ColumnConnection( )
{
    this.setOutline( true );
    joinTypeIcon = new Label( "" ); //$NON-NLS-1$
    joinTypeIcon.setLabelAlignment( 1 );
    joinTypeIcon.setTextPlacement( 20 );
    joinTypeIcon.setIcon( UIHelper.getImage( BuilderConstants.IMAGE_JOINS ) );
    this.add( joinTypeIcon );
    this.setConnectionRouter( null );

    // Decoration to Indicate the Join Directrion
    joinDirection  = new PolygonDecoration();
    joinDirection.setForegroundColor(ColorConstants.darkBlue);
    this.setTargetDecoration(joinDirection);
}
项目: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;
}
项目:wt-studio    文件:NodeConnectionEditPart.java   
protected IFigure createFigure() {
    PolylineConnection conn = new PolylineConnection();
    conn.setTargetDecoration(new PolygonDecoration());
    conn.setConnectionRouter(new BendpointConnectionRouter());
    final Label label = new Label("Conn");
    label.setOpaque(true);
    conn.add(label, new MidpointLocator(conn, 0));
    return conn;
}
项目:wt-studio    文件:ColumnConnectionEditPart.java   
protected IFigure createFigure() {
    PolylineConnection conn = new PolylineConnection();
    conn.setTargetDecoration(new PolygonDecoration());
    conn.setConnectionRouter(new BendpointConnectionRouter());
    final Label label = new Label("Conn");
    label.setOpaque(true);
    conn.add(label, new MidpointLocator(conn, 0));
    return conn;
}
项目:xeda    文件:MessageRoutePart.java   
protected IFigure createFigure() {
    nodeConn = (MessageRoute)getModel();

    PolylineConnection conn = new PolylineConnection();
    conn.setTargetDecoration(new PolygonDecoration());
    router = new CommonStyleRouter(nodeConn.getStyle());
    conn.setConnectionRouter(router);
    conn.setForegroundColor(ColorConstants.black);

    label = new Label();
    label.setText(nodeConn.getRouteId());
    label.setOpaque(true);
    conn.add(label, new MidpointLocator(conn, 0));
    return conn;
}
项目:seg.jUCMNav    文件:LinkRefConnection.java   
/**
 * 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();
}
项目:lunifera-sharky-m2m    文件:ConnectionEditPart.java   
protected IFigure createFigure() {
    PolylineConnection connection = (PolylineConnection) super
            .createFigure();
    connection.setTargetDecoration(new PolygonDecoration()); // arrow at
                                                                // target
                                                                // endpoint
    connection.setLineStyle(getCastedModel().getLineStyle()); // line
                                                                // drawing
                                                                // style
    return connection;
}
项目:lunifera-sharky-m2m    文件:ConnectionEditPart.java   
protected IFigure createFigure() {
    PolylineConnection connection = (PolylineConnection) super
            .createFigure();
    connection.setTargetDecoration(new PolygonDecoration()); // arrow at
                                                                // target
                                                                // endpoint
    connection.setLineStyle(getCastedModel().getLineStyle()); // line
                                                                // drawing
                                                                // style
    return connection;
}
项目: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    文件: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    文件: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;
}