Browse by category:
|| | ||
How to enable mouse-wheel interaction in JViews graphs?
In JViews, the classes
IlvScrollManagerView are panels containing
IlvManagerView objects and two scroll bars. The scroll bars help translate the view of the manager. However,
IlvScrollManagerView do not implement the mouse-wheel scrolling feature by default.
Although JViews 6.0 and earlier does not handle the mouse wheel events, you can leverage the Java API for mouse wheel events, available since JDK 1.4 and handle mouse wheel events yourself.
In JViews 6.5 or newer, there are methods for translating the mouse wheel motion into scrolling: method
setWheelScrollingEnabled in the classes
IlvScrollManagerView. Similarly, there is a method for zooming as a response to mouse wheel events: method
setWheelZoomingEnabled in class
|Non-editable table columns in Gantt Chart||Selecting and resizing nodes in an IlvSDMEngine object|