org.eclipse.draw2d.Graphics
Graphics类用来绘制线、图形、图像以及文本。
Graphics类是一个抽象类。在Draw2d中,它有三个子类。
org.eclipse.draw2d.Graphics
|__org.eclipse.draw2d.SWTGraphics
|__org.eclipse.draw2d.ScaledGraphics
|__org.eclipse.draw2d.PrinterGraphics
其中最重要的是SWTGraphics。它拥有一个SWT的GC类的实例,并将绘制工作委托给GC类的实例去处理。
ScaledGraphics类提供了缩放的功能,而PrinterGraphics类提供了打印的功能。查看两者的构造函数发现它们
本文介绍了 org.eclipse.draw2d.Graphics 类及其子类,详细解释了 SWTGraphics 的作用及其实现方式,同时涵盖了 ScaledGraphics 和 PrinterGraphics 的功能。
42

被折叠的 条评论
为什么被折叠?



