ScaleDrawer.java added.

This commit is contained in:
ericnerdo 2016-05-07 16:47:57 +02:00
parent 96c3adba83
commit 6edcffc586

View File

@ -0,0 +1,30 @@
package cicaprojekt;
import java.io.IOException;
public class ScaleDrawer extends ImagePanel implements Drawer {
Scale scale;
public ScaleDrawer(Scale s) throws IOException {
super("Scale.png");
scale = s;
setVisible(false);
}
@Override
public void draw() throws IOException {
setVisible(true);
}
@Override
public int getX() {
return scale.getX();
}
@Override
public int getY() {
return scale.getY();
}
}