Resizing an IlvJComponentGraphic only rescales the JComponent

Article ID: 2271
Last updated: 29 May, 2018
Article ID: 2271
Last updated: 29 May, 2018
Revision: 3
Views: 492
Posted: 01 Mar, 2011
by Dean J.
Updated: 29 May, 2018
by Gargani A.

Question

How to resize an IlvJComponentGraphic contained in a JComponent?

Answer

By default, resizing an IlvJComponentGraphic only rescales the JComponent using a transformer. This is so that the JComponent stays the same size for other IlvJComponentGraphic objects that use it.

However, if there is only one IlvJComponentGraphic per JComponent and you want that resizing the IlvJComponentGraphic in an IlvManager also resizes the JComponent, you can do as follows:

In JViews 8.1 or newer, invoke

graphic.setResizeComponentMode(IlvJComponentGraphic.RESIZE_COMPONENT_ON_RESHAPE);

or

graphic.setResizeComponentMode(IlvJComponentGraphic.RESIZE_COMPONENT_ON_ZOOM);

This article was:   Helpful | Not helpful
Report an issue
Article ID: 2271
Last updated: 29 May, 2018
Revision: 3
Views: 492
Posted: 01 Mar, 2011 by Dean J.
Updated: 29 May, 2018 by Gargani A.

Others in this category