*/
public void replay(final WmfFile file)
{
final Graphics2D graph = file.getGraphics2D();
final MfDcState state = file.getCurrentState();
final GeneralPath genPath = new GeneralPath();
for (int i = 0; i < polycount; i++)
{
final int[] pointsX = getScaledPointsX(i);
final int[] pointsY = getScaledPointsY(i);
final Polygon polygon = new Polygon(pointsX, pointsY, pointsX.length);
genPath.append(polygon, false);
}
if (state.getLogBrush().isVisible())
{
state.preparePaint();
graph.fill(genPath);
state.postPaint();
}
if (state.getLogPen().isVisible())
{
state.prepareDraw();
graph.draw(genPath);
state.postDraw();
}
}