| | | | Browse by category |
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.