Search:
|
Browse by category:
|
| | | |
|
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);
Prev | Next | |
Selecting and resizing nodes in an IlvSDMEngine object | IlvTextPath Sample |