gpt4 book ai didi

com.ait.lienzo.client.core.shape.wires.WiresShape.getGroup()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-21 11:49:05 26 4
gpt4 key购买 nike

本文整理了Java中com.ait.lienzo.client.core.shape.wires.WiresShape.getGroup()方法的一些代码示例,展示了WiresShape.getGroup()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WiresShape.getGroup()方法的具体详情如下:
包路径:com.ait.lienzo.client.core.shape.wires.WiresShape
类名称:WiresShape
方法名:getGroup

WiresShape.getGroup介绍

暂无

代码示例

代码示例来源:origin: ahome-it/lienzo-core

private Group getGroup()
  {
    return m_wires_shape.getGroup();
  }
}

代码示例来源:origin: com.ahome-it/lienzo-core

private Group getGroup()
  {
    return m_wires_shape.getGroup();
  }
}

代码示例来源:origin: com.ahome-it/lienzo-core

public Group getGroup()
{
  return m_wiresShape.getGroup();
}

代码示例来源:origin: ahome-it/lienzo-core

@Override
  public int hashCode()
  {
    return getGroup().uuid().hashCode();
  }
}

代码示例来源:origin: com.ahome-it/lienzo-core

@Override
  public int hashCode()
  {
    return getGroup().uuid().hashCode();
  }
}

代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-lienzo

private static Group getGroup(final ShapeView<?> view) {
    if (view instanceof WiresShape) {
      return ((WiresShape) view).getGroup();
    } else if (view instanceof WiresConnector) {
      final WiresConnector wiresConnector = (WiresConnector) view;
      return wiresConnector.getGroup();
    }
    return null;
  }
}

代码示例来源:origin: ahome-it/lienzo-core

@Override
  public int hashCode()
  {
    return getGroup().uuid().hashCode();
  }
}

代码示例来源:origin: com.ahome-it/lienzo-core

public String uuid()
{
  return getGroup().uuid();
}

代码示例来源:origin: ahome-it/lienzo-core

private void drawOverLayer()
  {
    if (null != m_parent)
    {
      m_parent.getGroup().getOverLayer().batch();
    }
  }
}

代码示例来源:origin: com.ahome-it/lienzo-core

private void drawLayer()
{
  if (null != m_parent)
  {
    m_parent.getGroup().getLayer().batch();
  }
}

代码示例来源:origin: com.ahome-it/lienzo-core

private void drawOverLayer()
  {
    if (null != m_parent)
    {
      m_parent.getGroup().getOverLayer().batch();
    }
  }
}

代码示例来源:origin: ahome-it/lienzo-core

private void drawLayer()
{
  if (null != m_parent)
  {
    m_parent.getGroup().getLayer().batch();
  }
}

代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-lienzo

public LienzoLayer add(final WiresShape wiresShape) {
  wiresManager.register(wiresShape);
  wiresManager.getMagnetManager().createMagnets(wiresShape,
                         MAGNET_CARDINALS);
  WiresUtils.assertShapeGroup(wiresShape.getGroup(),
                WiresCanvas.WIRES_CANVAS_GROUP_ID);
  return this;
}

代码示例来源:origin: com.ahome-it/lienzo-core

public void remove(final WiresShape shape)
{
  if (m_childShapes != null)
  {
    m_childShapes.remove(shape);
    m_container.remove(shape.getGroup());
    shape.setParent(null);
  }
  getLayoutHandler().requestLayout(this);
}

代码示例来源:origin: ahome-it/lienzo-core

public void remove(final WiresShape shape)
{
  if (m_childShapes != null)
  {
    m_childShapes.remove(shape);
    m_container.remove(shape.getGroup());
    shape.setParent(null);
  }
  getLayoutHandler().requestLayout(this);
}

代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-lienzo

public LienzoCanvasView deleteRoot(final ShapeView<?> shape) {
  if (WiresUtils.isWiresShape(shape)) {
    layer.delete(((WiresShape) shape).getGroup());
  } else if (WiresUtils.isWiresConnector(shape)) {
    layer.delete(((WiresConnector) shape).getGroup());
  } else {
    return super.delete(shape);
  }
  return this;
}

代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-lienzo

public LienzoCanvasView addRoot(final ShapeView<?> shape) {
  if (WiresUtils.isWiresShape(shape)) {
    layer.add(((WiresShape) shape).getGroup());
  } else if (WiresUtils.isWiresConnector(shape)) {
    layer.add(((WiresConnector) shape).getGroup());
  } else {
    return super.add(shape);
  }
  return this;
}

代码示例来源:origin: com.ahome-it/lienzo-core

public Magnets(final MagnetManager magnetManager, final IControlHandleList list, final WiresShape wiresShape)
{
  m_list = list;
  m_magnetManager = magnetManager;
  m_wiresShape = wiresShape;
  final Group shapeGroup = wiresShape.getGroup();
  m_registrationManager.register(shapeGroup.addAttributesChangedHandler(Attribute.X, this));
  m_registrationManager.register(shapeGroup.addAttributesChangedHandler(Attribute.Y, this));
  m_registrationManager.register(shapeGroup.addNodeDragStartHandler(this));
  m_registrationManager.register(shapeGroup.addNodeDragMoveHandler(this));
  m_registrationManager.register(shapeGroup.addNodeDragEndHandler(this));
}

代码示例来源:origin: com.ahome-it/lienzo-core

public static void setWiresShapeHandler(final WiresShape shape, final HandlerRegistrationManager registrationManager, final WiresShapeHandler handler)
{
  final Group group = shape.getGroup();
  registrationManager.register(group.addNodeMouseClickHandler(handler));
  registrationManager.register(group.addNodeMouseDownHandler(handler));
  registrationManager.register(group.addNodeMouseUpHandler(handler));
  registrationManager.register(group.addNodeDragEndHandler(handler));
  group.setDragConstraints(handler);
  shape.setWiresShapeControl(handler.getControl());
}

代码示例来源:origin: com.ahome-it/lienzo-core

@Override
public void onMouseClick(final MouseEvent event)
{
  parentPickerControl.onMouseClick(event);
  if (getWiresManager().getSelectionManager() != null)
  {
    getWiresManager().getSelectionManager().selected(getShape(), event.isShiftKeyDown());
  }
  getShape().getGroup().getLayer().draw();
}

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com