org.jhotdraw.contrib.zoom
Class ZoomUpdateStrategy

java.lang.Object
  extended by org.jhotdraw.contrib.zoom.ZoomUpdateStrategy
All Implemented Interfaces:
java.io.Serializable, Painter

public class ZoomUpdateStrategy
extends java.lang.Object
implements Painter

A variant of the BufferedUpdateStrategy that handles clipping rectangles correctly in the presence of zooming.

Version:
<$CURRENT_VERSION$>
Author:
Andre Spiegel
See Also:
BufferedUpdateStrategy, Serialized Form

Field Summary
private  int fImageheight
           
private  int fImagewidth
           
private  java.awt.Image fOffscreen
          The offscreen image
 
Constructor Summary
ZoomUpdateStrategy()
           
 
Method Summary
 void draw(java.awt.Graphics g, DrawingView view)
          Draws the view contents.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fOffscreen

private transient java.awt.Image fOffscreen
The offscreen image


fImagewidth

private int fImagewidth

fImageheight

private int fImageheight
Constructor Detail

ZoomUpdateStrategy

public ZoomUpdateStrategy()
Method Detail

draw

public void draw(java.awt.Graphics g,
                 DrawingView view)
Draws the view contents.

Specified by:
draw in interface Painter