package it.cavallium.warppi.gui.graphicengine.impl.swing;

import java.io.IOException;

import it.cavallium.warppi.device.display.DisplayOutputDevice;
import it.cavallium.warppi.gui.graphicengine.impl.common.PngSkin;

public class SwingSkin extends PngSkin {

	public SwingSkin(final String file) throws IOException {
		super(file);
	}

	@Override
	public void use(final DisplayOutputDevice d) {
		if (d.getGraphicEngine().getRenderer() instanceof SwingRenderer)
			((SwingRenderer) d.getGraphicEngine().getRenderer()).currentSkin = this;
	}
}
