package lectures.graphics;
import util.annotations.WebDocuments;
import bus.uigen.ObjectEditor;
//@StructurePattern(StructurePatternNames.LABEL_PATTERN)
@WebDocuments({"Lectures/Graphics.pptx", "Lectures/Graphics.pdf", "Videos/Graphics.avi"})
public class AShapeImage implements ImageShape {
     String imageFileName;
     int x, y;
     public AShapeImage (String initImageFileName, int initX, int initY) {  
        imageFileName = initImageFileName;
        x = initX;
        y = initY;      
     }          
    public int getX() {return x;}
    public void setX(int newX) {x = newX;}
    public int getY() { return y; }
    public void setY(int newY) {y = newY;}
    public String getImageFileName() {return imageFileName;}  
    public void setImageFileName(String newVal) {imageFileName = newVal ;}     

     public static void main (String args[]) {
         ImageShape shuttle = new AShapeImage("shuttle2.jpg", 0, 0);
         ObjectEditor.edit(shuttle);
         shuttle.setX(100);
         shuttle.setY(100);
     }
}