- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中com.ait.lienzo.client.core.shape.wires.WiresShape.getPath()
方法的一些代码示例,展示了WiresShape.getPath()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WiresShape.getPath()
方法的具体详情如下:
包路径:com.ait.lienzo.client.core.shape.wires.WiresShape
类名称:WiresShape
方法名:getPath
暂无
代码示例来源:origin: com.ahome-it/lienzo-core
public static Point2DArray getWiresIntersectionPoints(final WiresShape wiresShape, final Direction[] requestedCardinals)
{
return Geometry.getCardinalIntersects(wiresShape.getPath(), requestedCardinals);
}
代码示例来源:origin: com.ahome-it/lienzo-core
private void batch()
{
if (null != m_wiresShape.getPath().getLayer())
{
m_wiresShape.getPath().getLayer().batch();
}
}
}
代码示例来源:origin: ahome-it/lienzo-core
private void batch()
{
if (null != m_wiresShape.getPath().getLayer())
{
m_wiresShape.getPath().getLayer().batch();
}
}
}
代码示例来源:origin: ahome-it/lienzo-core
private void batch()
{
if (null != m_wiresShape.getPath().getLayer())
{
m_wiresShape.getPath().getLayer().batch();
}
}
}
代码示例来源:origin: ahome-it/lienzo-core
public static void drawShapeToBacking(final Context2D ctx, final WiresShape shape, final String color)
{
final MultiPath multiPath = shape.getPath();
drawShapeToBacking(ctx, shape, color, multiPath.getStrokeWidth(), true);
}
代码示例来源:origin: com.ahome-it/lienzo-core
public static void drawShapeToBacking(final Context2D ctx, final WiresShape shape, final String color)
{
final MultiPath multiPath = shape.getPath();
drawShapeToBacking(ctx, shape, color, multiPath.getStrokeWidth(), true);
}
代码示例来源:origin: com.ahome-it/lienzo-core
private void restoreBody()
{
if (isBodyHighlight())
{
m_parent.getPath().setStrokeColor(m_priorColor);
m_parent.getPath().setStrokeAlpha(getPriorAlpha());
m_parent.getPath().setStrokeWidth(m_priorSize);
m_priorColor = null;
m_priorSize = null;
m_priorAlpha = null;
drawLayer();
}
}
代码示例来源:origin: ahome-it/lienzo-core
public static void drawShapeToBacking(final Context2D ctx, final WiresShape shape, final String color)
{
final MultiPath multiPath = shape.getPath();
drawShapeToBacking(ctx, shape, color, multiPath.getStrokeWidth(), true);
}
代码示例来源:origin: com.ahome-it/lienzo-core
@Override
protected void beforeMoveStart(final double x, final double y)
{
super.beforeMoveStart(x, y);
m_initialPathLocation = getShape().getPath().getComputedLocation();
}
代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-lienzo
private static BoundingBox getBoundingBox(final ShapeView<?> view) {
if (view instanceof WiresShape) {
return ((WiresShape) view).getPath().getBoundingBox();
} else if (view instanceof WiresConnector) {
final WiresConnector wiresConnector = (WiresConnector) view;
return wiresConnector.getGroup().getBoundingBox();
}
return null;
}
代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-lienzo-extensions
public WiresShapeToolbox(final WiresShape shape) {
this(shape,
new ToolboxImpl(() -> shape.getPath().getBoundingBox()),
new HandlerRegistrationManager());
}
代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-case-mgmt-client
private double getTotalHeight(WiresShape ws) {
double height = ws.getPath().getBoundingBox().getHeight();
for (WiresShape child : ws.getChildShapes()) {
height += (getTotalHeight(child) + PADDING_Y);
}
return height;
}
}
代码示例来源:origin: com.ahome-it/lienzo-core
public void destroy()
{
m_list.destroy();
m_registrationManager.removeHandler();
m_magnetManager.m_magnetRegistry.remove(m_wiresShape.getPath().uuid());
}
代码示例来源:origin: ahome-it/lienzo-core
public void destroy()
{
m_list.destroy();
m_registrationManager.removeHandler();
m_magnetManager.m_magnetRegistry.remove(m_wiresShape.getPath().uuid());
}
代码示例来源: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: com.ahome-it/lienzo-core
private Point2D calculateAbsCandidateLocation(final WiresShape shape, final WiresMagnet shapeMagnet)
{
final Point2D trgLocation = new Point2D(shapeMagnet.getX(), shapeMagnet.getY());
final BoundingBox shapeBB = shape.getPath().getBoundingBox();
final BoundingBox box = shape.getPath().getBoundingBox();
final double newX = trgLocation.getX() - shapeBB.getMinX() - (box.getWidth() / 2);
final double newY = trgLocation.getY() - shapeBB.getMinY() - (box.getHeight() / 2);
return new Point2D(newX, newY);
}
代码示例来源:origin: ahome-it/lienzo-core
private Point2D calculateAbsCandidateLocation(final WiresShape shape, final WiresMagnet shapeMagnet)
{
final Point2D trgLocation = new Point2D(shapeMagnet.getX(), shapeMagnet.getY());
final BoundingBox shapeBB = shape.getPath().getBoundingBox();
final BoundingBox box = shape.getPath().getBoundingBox();
final double newX = trgLocation.getX() - shapeBB.getMinX() - (box.getWidth() / 2);
final double newY = trgLocation.getY() - shapeBB.getMinY() - (box.getHeight() / 2);
return new Point2D(newX, newY);
}
代码示例来源:origin: ahome-it/lienzo-core
private Point2D calculateAbsCandidateLocation(final WiresShape shape, final WiresMagnet shapeMagnet)
{
final Point2D trgLocation = new Point2D(shapeMagnet.getX(), shapeMagnet.getY());
final BoundingBox shapeBB = shape.getPath().getBoundingBox();
final BoundingBox box = shape.getPath().getBoundingBox();
final double newX = trgLocation.getX() - shapeBB.getMinX() - (box.getWidth() / 2);
final double newY = trgLocation.getY() - shapeBB.getMinY() - (box.getHeight() / 2);
return new Point2D(newX, newY);
}
代码示例来源:origin: com.ahome-it/lienzo-core
@Override
protected boolean afterMove(final double dx, final double dy)
{
super.afterMove(dx, dy);
m_intersection = null;
if (isAllow())
{
final Point2D location = getParentPickerControl().getCurrentLocation();
final Point2D absLoc = getParent().getComputedLocation(); // convert to local xy of the path
this.m_intersection = Geometry.findIntersection((int) (location.getX() - absLoc.getX()), (int) (location.getY() - absLoc.getY()), ((WiresShape) getParent()).getPath());
}
return null != this.m_intersection;
}
本文整理了Java中com.ait.lienzo.client.core.shape.wires.WiresShape.setDockedTo()方法的一些代码示例,展示了WiresShape.set
本文整理了Java中com.ait.lienzo.client.core.shape.wires.WiresShape.uuid()方法的一些代码示例,展示了WiresShape.uuid()的具体用
本文整理了Java中com.ait.lienzo.client.core.shape.wires.WiresShape.removeFromParent()方法的一些代码示例,展示了WiresShap
本文整理了Java中com.ait.lienzo.client.core.shape.wires.WiresShape.setWiresManager()方法的一些代码示例,展示了WiresShape
本文整理了Java中com.ait.lienzo.client.core.shape.wires.WiresShape.getLayoutContainer()方法的一些代码示例,展示了WiresSh
本文整理了Java中com.ait.lienzo.client.core.shape.wires.WiresShape.()方法的一些代码示例,展示了WiresShape.()的具体用法。这些代码示例
本文整理了Java中com.ait.lienzo.client.core.shape.wires.WiresShape.getY()方法的一些代码示例,展示了WiresShape.getY()的具体用
本文整理了Java中com.ait.lienzo.client.core.shape.wires.WiresShape._loadControls()方法的一些代码示例,展示了WiresShape._
本文整理了Java中com.ait.lienzo.client.core.shape.wires.WiresShape.setWiresShapeControl()方法的一些代码示例,展示了Wires
本文整理了Java中com.ait.lienzo.client.core.shape.wires.WiresShape.refresh()方法的一些代码示例,展示了WiresShape.refresh
本文整理了Java中com.ait.lienzo.client.core.shape.wires.WiresShape.getComputedLocation()方法的一些代码示例,展示了WiresS
本文整理了Java中com.ait.lienzo.client.core.shape.wires.WiresShape.getControls()方法的一些代码示例,展示了WiresShape.get
本文整理了Java中com.ait.lienzo.client.core.shape.wires.WiresShape.getParent()方法的一些代码示例,展示了WiresShape.getPa
本文整理了Java中com.ait.lienzo.client.core.shape.wires.WiresShape.getHandlerManager()方法的一些代码示例,展示了WiresSha
本文整理了Java中com.ait.lienzo.client.core.shape.wires.WiresShape.setParent()方法的一些代码示例,展示了WiresShape.setPa
本文整理了Java中com.ait.lienzo.client.core.shape.wires.WiresShape.equals()方法的一些代码示例,展示了WiresShape.equals()
本文整理了Java中com.ait.lienzo.client.core.shape.wires.WiresShape.setWiresShapeControlHandleList()方法的一些代码示
本文整理了Java中com.ait.lienzo.client.core.shape.wires.WiresShape.getDockedTo()方法的一些代码示例,展示了WiresShape.get
本文整理了Java中com.ait.lienzo.client.core.shape.wires.WiresShape.isResizable()方法的一些代码示例,展示了WiresShape.isR
本文整理了Java中com.ait.lienzo.client.core.shape.wires.WiresShape.getLocation()方法的一些代码示例,展示了WiresShape.get
我是一名优秀的程序员,十分优秀!