The XSvgMagnifyingWindow class provides a means of zooming an SVG image in conjunction with the XSvgImageMap class. The class provides a component for displaying the zoomed SVG image.
In the above example, a new instance of XSvgMagnifyingWindow is created and passed an SVGDiagram instance from the XSvgImageMap class. The TestSvgMagnifier class implements the MouseMotionListener interface. The mouseMoved method of the interface calls the setZoomPoint method of the XSvgMagnifier class, passing the current mouse location to it. The current mouse location is used to determine the part of the SVG image that is zoomed.
Used to set which part of the SVG image will be zoomed. This can be added to a mouseMotionListener, there-by utilising the mouse to select the part of the image that is zoomed.
There are no comments on this page. [Add comment]