Setting Angle
Code: Select all
furniture = new HomePieceOfFurniture(catalog.getCategory(7).getPieceOfFurniture(18));
home.addPieceOfFurniture(furniture);
furniture.setAngle(90); //This wont be 90 when i run the code, it will be different!
furniture.setElevation(80);
furniture.setX(bathroomLength- furniture.getDepth()/2 + 4);
furniture.setY(new Float(bathroomLength - bathroomLength/1.19));