JHotDraw 6.0b1

org.jhotdraw.framework
Interface Painter

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
BufferedUpdateStrategy, ClippingUpdateStrategy, FastBufferedUpdateStrategy, GridPainter, NullPainter, PatternPainter, SimpleUpdateStrategy, ZoomUpdateStrategy

public interface Painter
extends 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 Also:
DrawingView

Method Summary
 void draw(java.awt.Graphics g, DrawingView view)
          Draws into the given DrawingView.
 

Method Detail

draw

void draw(java.awt.Graphics g,
          DrawingView view)
Draws into the given DrawingView.


JHotDraw 6.0b1