コード例 #1
0
 /**
  * Creates figure for this edit part.
  *
  * <p>Body of this method does not depend on settings in generation model so you may safely remove
  * <i>generated</i> tag and modify it.
  *
  * @generated
  */
 protected NodeFigure createNodeFigure() {
   NodeFigure figure = createNodePlate();
   figure.setLayoutManager(new StackLayout());
   IFigure shape = createNodeShape();
   figure.add(shape);
   contentPane = setupContentPane(shape);
   return figure;
 }
コード例 #2
0
ファイル: EntryEditPart.java プロジェクト: huybuidac/yakindu
 @Override
 protected NodeFigure createMainFigure() {
   final NodeFigure figure =
       new EllipseAnchorDefaultSizeNodeFigure(MapModeUtils.DEFAULT_SMALL_NODE_DIMENSION);
   figure.setLayoutManager(new StackLayout());
   figure.add(getPrimaryShape());
   return figure;
 }
コード例 #3
0
ファイル: NodeEditPart.java プロジェクト: ppourali/MMINT
 /**
  * Creates figure for this edit part.
  *
  * <p>Body of this method does not depend on settings in generation model so you may safely remove
  * <i>generated</i> tag and modify it.
  *
  * @generated
  */
 protected org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure createNodeFigure() {
   org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure figure = createNodePlate();
   figure.setLayoutManager(new StackLayout());
   IFigure shape = createNodeShape();
   figure.add(shape);
   contentPane = setupContentPane(shape);
   return figure;
 }
コード例 #4
0
  /**
   * Creates figure for this edit part.
   *
   * <p>Body of this method does not depend on settings in generation model so you may safely remove
   * <i>generated</i> tag and modify it.
   *
   * @generated
   */
  protected NodeFigure createNodeFigure() {
    NodeFigure figure = createNodePlate();
    figure.setLayoutManager(new XYLayout());
    IFigure shape = createNodeShape();
    WrappingLabel label =
        ((org.neuro4j.studio.core.diagram.edit.shapes.EndNodeFigure) primaryShape)
            .getFigureEndNodeNameLabel();

    org.eclipse.draw2d.Panel panel = new org.eclipse.draw2d.Panel();
    panel.setLayoutManager(new FlowLayout(true));
    // panel.setSize(40, 50);
    // panel.setBackgroundColor(ColorConstants.red);
    panel.setVisible(true);

    addDebugFigure(panel);
    registerStopFigure((BaseImageFigure) primaryShape);

    figure.add(panel, new Rectangle(5, 5, 5, 5));
    figure.add(shape, new Rectangle(0, 13, 50, 50));
    figure.add(label, new Rectangle(0, 69, 150, 20));
    contentPane = setupContentPane(shape);
    return figure;
  }
コード例 #5
0
 /** @generated */
 protected void setLineType(int style) {
   if (primaryShape instanceof NodeFigure) {
     ((NodeFigure) primaryShape).setLineStyle(style);
   }
 }