[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [gmf-dev] Re: Need to relocate my figures
|
Please try addressing this question on the newsgroup.
If your shape is a Node, you can modify its ViewFactory to create a Location or a Bounds object that you can use as a layout constraint.
Please post your question to the newsgroup and I'll comment further there if needed.
Regards,
Antoine
On 1 Aug 2007 12:11:26 -0000, Aditya Sengupta <aditya_cal@xxxxxxxxxxxxxx
> wrote:
I need to show a diagram based on soem xml inputs , ie, when I right click on a particular xml file a "Generate Diagram" will come in the menu which when clicked will create and open a diagram based on the xml inputs.
I am almost able to show the figure but the problem is with alignment.
private static EObject createInitialRoot(ShapesDiagram model) {
Event event = ModelFactory.eINSTANCE.createEvent();
model.getShapes().add(event);
return model;
}
The figure is coming on the top left corner of the editor vertically. But I want it to set the co ordinates of the figure at run time so that I can get the figure anywhere within the editor. Please help.
If anyone can help send a reply to aditya_cal@xxxxxxxxxxxxxx as well.
_______________________________________________
gmf-dev mailing list
gmf-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/gmf-dev
--
Intalio, the Open Source BPMS Company
<a href="" href="http://www.intalio.com">http://www.intalio.com">
http://www.intalio.com
</a>
<a href="" href="http://bpms.intalio.com">http://bpms.intalio.com">Community website:
http://bpms.intalio.com</a>