📄 painter.java
字号:
/* * @(#)Painter.java 5.1 * */package CH.ifa.draw.framework;import java.awt.*;import java.io.Serializable;/** * Painter defines the interface for drawing a layer * into a DrawingView.<p> * * <hr> * <b>Design Patterns</b><P> * <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> * <b><a href=../pattlets/sld034.htm>Strategy</a></b><br> * Painter encapsulates an algorithm to render something in * the DrawingView. The DrawingView plays the role of the StrategyContext. * <hr> * @see DrawingView */public interface Painter extends Serializable { /** * Draws into the given DrawingView. */ public void draw(Graphics g, DrawingView view);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -