/**
  * 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;
 }
Example #2
0
 @Override
 protected NodeFigure createMainFigure() {
   final NodeFigure figure =
       new EllipseAnchorDefaultSizeNodeFigure(MapModeUtils.DEFAULT_SMALL_NODE_DIMENSION);
   figure.setLayoutManager(new StackLayout());
   figure.add(getPrimaryShape());
   return figure;
 }
Example #3
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 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;
 }
Example #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;
  }
 /** @generated */
 protected void setLineType(int style) {
   if (primaryShape instanceof NodeFigure) {
     ((NodeFigure) primaryShape).setLineStyle(style);
   }
 }