package staticstub; public class GraphicalObject{ public String type; public int originx = 5432, originy, width, height; public boolean isFilled; public GraphicalObject(){ type="Unknown"; originx = 0; originy = 0; width = 100; height = 100; isFilled = true; } public GraphicalObject(String aType, int ox, int oy, int w, int h, boolean anIsFilled) { type = aType; originx = ox; originy = oy; width = w; height = h; isFilled = anIsFilled; } public void print(){ System.out.print(type); System.out.print("Origin = ( " + originx + " , " + originy + " ) width = " + width + " height = " + height); System.out.println("filled" + isFilled); } public int getOriginx(){ return originx; } public int getOriginy(){ return originy; } public int getWidth(){ return width; } public int getHeight(){ return height; } public void setOriginx(int x){ originx = x; } public void setOriginy(int y){ originy = y; } public void setWidth(int w){ width = w; } public void setHeight(int h){ height = h; } public String getIsFilled(){ if(isFilled) return "true"; else return "false"; } public boolean isIsFilled(){ if(isFilled) return true; else return false; } public String getType(){ return type; } public void setIsFilled(boolean b){ //if(s.equals("true")) isFilled = true; else isFilled = false; isFilled = b; } public void setType(String s){ type = s; } }