Instead of the
IlvDefaultManagerFrame
, you can use the IlvConstantModeManagerFrame, a manager frame
supplied with Rogue Wave JViews that handles the resize event
automatically when a user reshapes a submanager.
IlvConstantModeManagerFrame
keeps the zoom level of the submanager unchanged by adjusting the
frame margins to match the required size.
A submanager with the
IlvConstantModeManagerFrame
frame set has the following behavior:
- Margins are never negative.
- A minimum margin size can be set.
- The default margin size is 0.
- The submanager can only be translated.
- The frame reacts to the
IlvManager.moveResize()
method but notIlvManager.applyTransform()
. CallIlvManager.applyTransform()
to apply a specific transformation only. - While reshaping the submanager by dragging a handle, the margin next to the handle is adjusted first. If this margin is reduced to zero, the margin on the other side of the frame is adjusted.
- When both left and right margins of a
IlvConstantModeManagerFrame
object become zero, the submanager stops the reshape operation. IlvConstantModeManagerFrame
objects listens for submanager or grapher content changes. When the bounding box of the submanager grows, in order to keep the global bounding box constant the frame first tries to reduce margins.
For an example of how to use a manager frame, see <installdir> /jviews-framework89/codefragments/subgraphs/index.html.