Diagram size seems ignored [message #719374] |
Fri, 26 August 2011 20:52 |
Hernan Gonzalez Messages: 188 Registered: October 2010 Location: Buenos Aires, Argentina |
Senior Member |
|
|
The Diagram size, which is harcoded in the PeServiceImpl.createDiagram() method at 1000x1000, can be change afterwards, say diagram.getGraphicsAlgorithm().setWidth(400);
This value is correctly assigned and saved, but seems ignored by the editor, both regarding the painted background color/grid and the objects placement: actually, the available diagram size seems infinite (though, judging by the scroll bars behaviour, the editor seems to have some "active diagram" concept, the rectangle that covers all visible objects)
Should I fill a bug?
|
|
|
Re: Diagram size seems ignored [message #719851 is a reply to message #719374] |
Mon, 29 August 2011 08:20 |
Michael Wenz Messages: 1931 Registered: July 2009 Location: Walldorf, Germany |
Senior Member |
|
|
Hm, the diagram is by default unrestricted in size, that's a general
assumtion throughout Graphiti. The bug would rather be that the attributes
exist at Diagram, but it was quite convenient to define Diagram as a
subclass of ContainerShape. So, maybe the dimensions of the diagram should
not be set at all and there should be some docu describing that.
What do you think?
Michael
"Hernan" schrieb im Newsbeitrag news:j390d9$d31$1@news.eclipse.org...
The Diagram size, which is harcoded in the PeServiceImpl.createDiagram()
method at 1000x1000, can be change afterwards, say
diagram.getGraphicsAlgorithm().setWidth(400);
This value is correctly assigned and saved, but seems ignored by the editor,
both regarding the painted background color/grid and the objects placement:
actually, the available diagram size seems infinite (though, judging by the
scroll bars behaviour, the editor seems to have some "active diagram"
concept, the rectangle that covers all visible objects)
Should I fill a bug?
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03371 seconds