fi.utu.cs.appearance
Interface MultiShapable
- All Superinterfaces:
- Shapable
- All Known Implementing Classes:
- Player, Puck
- public interface MultiShapable
- extends Shapable
Provides definitions for objects comprising multiple shapable
objects that can be displayed in the Graphics2D
context.
The shapable objects given by the iterator are rendered first, and
the shapable object defined by the interface itself is rendered last.
In other words, the methods are used followingly:
MultiShapable ms;
...
ShapeIterator si = ms.iterator();
while (si.hasNext())
render(si.next());
render(ms);
- Since:
- 1.1
- See Also:
Graphics2D
iterator
public ShapeIterator iterator()