Setting the position of a node
Use the IBM® Integration API to set the position of a node on the canvas in the Application Development view.
Set the position of a node on the canvas by using the
setLocation() method of the node object. The following example
sets the position of a new MQOutput node to
coordinates x=300 pixels, y=100
pixels:
File msgFlow = new File("main.msgflow");
MessageFlow mf1 = FlowRendererMSGFLOW.read(msgFlow);
MQOutputNode mqoutNode = new MQOutputNode();
mqoutNode.setLocation(300, 100);
Pattern authoring
The following example is the same as the previous, but for pattern authoring:
MessageFlow mf1 = patternInstanceManager.getMessageFlow("MyFlowProject", "main.msgflow");
MQOutputNode mqoutNode = new MQOutputNode();
mqoutNode.setLocation(300, 100);