Besides these, the graphicsclass exposes a lot of other convenient methods that can be used to draw other basic shapes like rectangles, curves, rounded rectangles, lines, triangles, and so on.
The next step is to create the RolloverIcon class that is able to wrap an original icon and paint it with the desired graphics effect shown in Figure 1.
下一步是创建能够将初始图标包装起来并用图1所示的图形效果给图标着色的rollovericon类。
3
Let's start with a graphics environment object and an interface called GraphicsObject implemented by a line class that draws lines.