gpt4 book ai didi

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

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

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

WiresShape.setLocation介绍

暂无

代码示例

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

@Override
public void setShapeLocation(final Point2D location)
{
  getShape().setLocation(location);
}

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

@Override
public void add(final WiresShape shape, final WiresContainer container, final Point2D mouseRelativeLoc)
{
  //Add the shape to the container at the specified position. No layout.
  shape.setLocation(mouseRelativeLoc);
  container.add(shape);
}

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

@Override
public void setShapeLocation(final Point2D location)
{
  getShape().setLocation(location);
}

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

@Override
public void add(final WiresShape shape, final WiresContainer container, final Point2D mouseRelativeLoc)
{
  //Add the shape to the container at the specified position. No layout.
  shape.setLocation(mouseRelativeLoc);
  container.add(shape);
}

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

@Override
public void setShapeLocation(final Point2D location)
{
  getShape().setLocation(location);
}

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

@Override
public void add(final WiresShape shape, final WiresContainer container, final Point2D mouseRelativeLoc)
{
  //Add the shape to the container at the specified position. No layout.
  shape.setLocation(mouseRelativeLoc);
  container.add(shape);
}

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

@Override
protected void setLocation(WiresShape shape,
              int x,
              int y) {
  shape.setLocation(new Point2D(x,
                 y));
}

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

public WiresLayer dock(final WiresContainer parent,
            final WiresShape child) {
  final WiresDockingControl dockingControl = child.getControl().getDockingControl();
  dockingControl.dock(parent);
  final Point2D candidateLocation = dockingControl.getCandidateLocation();
  if (null != candidateLocation) {
    child.setLocation(candidateLocation);
  }
  return this;
}

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

@Override
  public void onShapeResizeStep(final WiresResizeStepEvent event)
  {
    final WiresMagnet currentMagnet = parentWireShape.getMagnets().getMagnet(magnet.getIndex());
    shape.setLocation(calculateAbsCandidateLocation(shape, currentMagnet));
    shape.shapeMoved();
  }
}));

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

@Override
  public void onShapeResizeStep(final WiresResizeStepEvent event)
  {
    final WiresMagnet currentMagnet = parentWireShape.getMagnets().getMagnet(magnet.getIndex());
    shape.setLocation(calculateAbsCandidateLocation(shape, currentMagnet));
    shape.shapeMoved();
  }
}));

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

@Override
  public void onShapeResizeStep(final WiresResizeStepEvent event)
  {
    final WiresMagnet currentMagnet = parentWireShape.getMagnets().getMagnet(magnet.getIndex());
    shape.setLocation(calculateAbsCandidateLocation(shape, currentMagnet));
    shape.shapeMoved();
  }
}));

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

@Override
  public void layout(final WiresContainer container) {
    double x = LEFT_MARGIN_PADDING;
    for (WiresShape ws : container.getChildShapes()) {
      ws.setLocation(new Point2D(x,
                    PADDING_Y));
      x = x + ws.getPath().getBoundingBox().getWidth() + PADDING_X;
    }
  }
}

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

@Override
public void layout(final WiresContainer container) {
  double y = PADDING_Y;
  if (container instanceof WiresShape) {
    y = y + ((WiresShape) container).getPath().getBoundingBox().getHeight();
  }
  for (WiresShape ws : container.getChildShapes()) {
    ws.setLocation(new Point2D(PADDING_X,
                  y));
    y = y + getTotalHeight(ws) + PADDING_Y;
  }
}

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

shape.setLocation(relLocation);
shape.shapeMoved();
shape.removeFromParent();
  shape.setLocation(newAbsLocation.sub(parent.getComputedLocation()));

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

shape.setLocation(relLocation);
shape.shapeMoved();
shape.removeFromParent();
  shape.setLocation(newAbsLocation.sub(parent.getComputedLocation()));

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

shape.setLocation(relLocation);
shape.shapeMoved();
shape.removeFromParent();
  shape.setLocation(newAbsLocation.sub(parent.getComputedLocation()));

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

@Before
public void init() {
  layer = new Layer();
  wiresLayer = new WiresLayer(layer);
  shape1 = new WiresShape(new MultiPath().circle(50))
      .setLocation(new Point2D(100, 33));
  shape2 = new WiresShape(new MultiPath().circle(230))
      .setLocation(new Point2D(15, 120));
  wiresLayer.add(shape1);
  wiresLayer.add(shape2);
}

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