multivalent.node

Class IZoom

public class IZoom extends INode

Broken Insert node into tree and set zoom factor to implement zooming on subtree. Formatting and repaint kept in non-zoomed coordinates. Events and painting zoomed.

Version: $Revision: 1.2 $ $Date: 2002/02/02 13:41:39 $

Field Summary
intZoom
Zoom factor, in percent.
Constructor Summary
IZoom(String name, Map<String,Object> attrs, INode parent)
Method Summary
booleaneventNode(AWTEvent e, Point rel)
Scale down from zoomed visual to non-zoomed coordinates.
booleanformatNode(int width, int height, Context cx)
Scale up formatted dimensions by zoom factor.
voidpaintNode(Rectangle docclip, Context cx)
Scale up from non-zoomed coordinates to zoomed visual.

Field Detail

Zoom

public int Zoom
Zoom factor, in percent.

Constructor Detail

IZoom

public IZoom(String name, Map<String,Object> attrs, INode parent)

Method Detail

eventNode

public boolean eventNode(AWTEvent e, Point rel)
Scale down from zoomed visual to non-zoomed coordinates.

formatNode

public boolean formatNode(int width, int height, Context cx)
Scale up formatted dimensions by zoom factor.

paintNode

public void paintNode(Rectangle docclip, Context cx)
Scale up from non-zoomed coordinates to zoomed visual.