IlvRectangle objects are not rotated or appear malformed when applying a rotation transformer

Article ID: 2207
Last updated: 29 May, 2018
Article ID: 2207
Last updated: 29 May, 2018
Revision: 3
Views: 784
Posted: 03 Mar, 2011
by Dean J.
Updated: 29 May, 2018
by Gargani A.

Question

My IlvRectangle objects are not rotated or appear malformed when I apply a rotation transformer. Why?

Answer

You cannot rotate an IlvRectangle, because it is defined by an IlvRect object. It can only be rotated by 90, 180 or 270 degrees, and that's why a rotation transformer may lead to unexpected results.

If you apply a transformation to an IlvRect, you will still have an IlvRect and the corresponding IlvRectangle will still look like a rectangle with vertical and horizontal edges.

In a general manner, you should use an IlvGeneralPath object or one of the IlvPolyPoints subclasses if you need to handle rotations on your objects.

Since JViews 8.0, you can wrap an IlvRectangle (or any other object that cannot be rotated or zoomed) inside an IlvFullZoomingGraphic to make it rotatable.

This article was:   Helpful | Not helpful
Report an issue
Article ID: 2207
Last updated: 29 May, 2018
Revision: 3
Views: 784
Posted: 03 Mar, 2011 by Dean J.
Updated: 29 May, 2018 by Gargani A.
Also listed in


Others in this category