Ptidej-v5.2-master/PADL Serialiser DB4O Tests/rsc/JHotDraw v5.1/src/CH/ifa/draw/standard/SimpleUpdateStrategy.java
/*
 * @(#)SimpleUpdateStrategy.java 5.1
 *
 */

package CH.ifa.draw.standard;

import java.awt.Graphics;

import CH.ifa.draw.framework.DrawingView;
import CH.ifa.draw.framework.Painter;

/**
 * The SimpleUpdateStrategy implements an update
 * strategy that directly redraws a DrawingView.
 * @see DrawingView
 */
public  class SimpleUpdateStrategy implements Painter {

	/*
	 * Serialization support. In JavaDraw only the Drawing is serialized.
	 * However, for beans support SimpleUpdateStrategy supports
	 * serialization
	 */
	private static final long serialVersionUID = -7539925820692134566L;

	/**
	* Draws the view contents.
	*/
	public void draw(Graphics g, DrawingView view) {
		view.drawAll(g);
	}
}
