|
| Re: GEF4 geometry axis [message #1712333 is a reply to message #1712265] |
Fri, 23 October 2015 03:02  |
Eclipse User |
|
|
|
Hi,
the ViewportModel manages a "contentsTransform" additional to the "translateX" and "translateY" values that you already found.
The contentsTransform is a transformation matrix that is applied to all visuals. Therefore, you can set the contentsTransform to a scale that inverts the Y axis and zooms in: viewportModel.setContentsTransform(new AffineTransform().scale(2, -2));
The translateX and translateY values are applied to the transformed contents, therefore, you could compute them based on the viewer's bounds if you want to keep the origin in the center.
Best regards,
Matthias
|
|
|
Powered by
FUDForum. Page generated in 0.03548 seconds