/*
 * @(#)Painter.java 5.2
 *
 */

package CH.ifa.draw.framework;

import java.awt.*;
import java.io.Serializable;

/**
 * Painter defines the interface for drawing a layer
 * into a DrawingView.

* *


* Design Patterns

*  o * Strategy
* Painter encapsulates an algorithm to render something in * the DrawingView. The DrawingView plays the role of the StrategyContext. *


* @see DrawingView */ public interface Painter extends Serializable { /** * Draws into the given DrawingView. */ public void draw(Graphics g, DrawingView view); }

Ads help maintain this website.