Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Changing the size of the drawing canvas
Changing the size of the drawing canvas [message #1745761] Mon, 17 October 2016 09:32 Go to next message
Martin Jedlicka is currently offline Martin JedlickaFriend
Messages: 122
Registered: January 2016
Senior Member
Hi,

Is it possible to adjust the size of the canvas for drawing? The default size is set 1000x1000px, but I would like to be able to change this default size.

Thanks.

Martin
Re: Changing the size of the drawing canvas [message #1745762 is a reply to message #1745761] Mon, 17 October 2016 09:57 Go to previous messageGo to next message
Laurent Fasani is currently offline Laurent FasaniFriend
Messages: 174
Registered: October 2014
Senior Member
hello

The size of the Sirius diagram depends on the position of the element on the bottom-right corner of the diagram.
I don't know what in sirius would depend on a canvas default size.

Feel free to provide additional information.

Regards
Laurent



Laurent Fasani - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Changing the size of the drawing canvas [message #1769531 is a reply to message #1745762] Tue, 01 August 2017 11:14 Go to previous messageGo to next message
Martin Jedlicka is currently offline Martin JedlickaFriend
Messages: 122
Registered: January 2016
Senior Member
Hi,

I understand the size of the Sirius diagram depends on the position of the element on the bottom-right corner of the diagram.

Is there an option to set the diagram size programmatically? I would like to set a size such as 1200x1200px (according to the set ruler units - Pixels) when creating a new diagram.

Thanks.

Martin
Re: Changing the size of the drawing canvas [message #1769558 is a reply to message #1769531] Tue, 01 August 2017 15:08 Go to previous messageGo to next message
Laurent Redor is currently offline Laurent RedorFriend
Messages: 267
Registered: July 2009
Senior Member
Hi,
I don't think there is a "diagram size". Where do you see the default size of Quote:
1000x1000px
in your initial post?

As explained here [1], when a diagram is exported as image, the size is computed.

Regards,

Laurent

[1] https://wiki.eclipse.org/Graphical_Modeling_Framework/Archived_Newsgroup_Q_and_A#How_can_I_get_the_dimensions_of_a_diagram.3F


Laurent Redor - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Changing the size of the drawing canvas [message #1769592 is a reply to message #1769558] Wed, 02 August 2017 05:33 Go to previous messageGo to next message
Martin Jedlicka is currently offline Martin JedlickaFriend
Messages: 122
Registered: January 2016
Senior Member
Hi,

I'm sorry, those 1000x1000px were a mistake (I thought so).

I understand how the diagram size is calculated when exporting an image. But I need to set the size of the diagram (or at least the size of the bottom / right margin) when diagram is created.

I need the size not to be calculated according to the position of the element on the bottom-right corner of the diagram but to be set by the user. If the size is smaller (eg 100x100px) than the size of the diagram (for example, the node on the bottom-right corner of the diagram will be at 800x500px), the scrollbar will active, and if larger (eg 1000x1000px), the whole diagram will be visible.

Thanks.

Martin
Re: Changing the size of the drawing canvas [message #1771642 is a reply to message #1769592] Tue, 29 August 2017 06:27 Go to previous message
Martin Jedlicka is currently offline Martin JedlickaFriend
Messages: 122
Registered: January 2016
Senior Member
Hi Laurent,

any idea how set the size of the diagram?

Thanks.

Martin
Previous Topic:Vision of OBEO on MDD for DSM with Sirius
Next Topic:Open DialectEditor programmatically outside of main editor area
Goto Forum:
  


Current Time: Tue Jan 19 06:52:19 GMT 2021

Powered by FUDForum. Page generated in 0.01986 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top