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

Method Summary
 ShapeIterator iterator()
           
 
Methods inherited from interface fi.utu.cs.appearance.Shapable
color, isDrawn, isFilled, paint, shape, stroke
 

Method Detail

iterator

public ShapeIterator iterator()