JHotDraw 6.0b1

Interface Painter

All Superinterfaces:
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:

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

Method Detail


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

JHotDraw 6.0b1