本文整理汇总了Java中org.activiti.engine.impl.pvm.process.HasDIBounds类的典型用法代码示例。如果您正苦于以下问题:Java HasDIBounds类的具体用法?Java HasDIBounds怎么用?Java HasDIBounds使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
HasDIBounds类属于org.activiti.engine.impl.pvm.process包,在下文中一共展示了HasDIBounds类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: parseDIBounds
import org.activiti.engine.impl.pvm.process.HasDIBounds; //导入依赖的package包/类
protected void parseDIBounds(Element bpmnShapeElement, HasDIBounds target) {
Element bounds = bpmnShapeElement.elementNS(BpmnParser.BPMN_DC_NS, "Bounds");
if (bounds != null) {
target.setX(parseDoubleAttribute(bpmnShapeElement, "x", bounds.attribute("x"), true).intValue());
target.setY(parseDoubleAttribute(bpmnShapeElement, "y", bounds.attribute("y"), true).intValue());
target.setWidth(parseDoubleAttribute(bpmnShapeElement, "width", bounds.attribute("width"), true).intValue());
target.setHeight(parseDoubleAttribute(bpmnShapeElement, "height", bounds.attribute("height"), true).intValue());
} else {
addError("'Bounds' element is required", bpmnShapeElement);
}
}
示例2: createDIBounds
import org.activiti.engine.impl.pvm.process.HasDIBounds; //导入依赖的package包/类
protected void createDIBounds(GraphicInfo graphicInfo, HasDIBounds target) {
target.setX((int) graphicInfo.getX());
target.setY((int) graphicInfo.getY());
target.setWidth((int) graphicInfo.getWidth());
target.setHeight((int) graphicInfo.getHeight());
}
示例3: createDIBounds
import org.activiti.engine.impl.pvm.process.HasDIBounds; //导入依赖的package包/类
protected void createDIBounds(GraphicInfo graphicInfo, HasDIBounds target) {
target.setX((int) graphicInfo.getX());
target.setY((int) graphicInfo.getY());
target.setWidth((int) graphicInfo.getWidth());
target.setHeight((int) graphicInfo.getHeight());
}