/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* *
* AndroidWorld Library, Copyright 2011 Bryan Chadwick *
* *
* FILE: ./android/image/Scene.java *
* *
* This file is part of AndroidWorld. *
* *
* AndroidWorld is free software: you can redistribute it and/or *
* modify it under the terms of the GNU General Public License *
* as published by the Free Software Foundation, either version *
* 3 of the License, or (at your option) any later version. *
* *
* AndroidWorld is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with AndroidWorld. If not, see Image
). Images
* can be placed on a Scene
at a specific location, resulting in a
* new Scene
.
*
*
* new EmptyScene(48, 48).placeImage(new Triangle(32, "solid", "red"), 24, 24)* *
* new EmptyScene(48, 48).placeImage(new Triangle(64, "solid", "red"), 24, 24)* *
* new EmptyScene(48, 48).addLine(0, 0, 48, 48, "blue")* *
* new EmptyScene(48, 48).addLine(4, 24, 44, 24, "green")* *
* new EmptyScene(50, 50) * .placeImage(new Overlay(new Circle(20, "outline", "black"), * new Circle(20, "solid", "wheat")), 25, 25) * .placeImage(new Circle(5, "solid", "lightblue"), 18, 20) * .placeImage(new Rectangle(10, 3, "solid", "lightblue"), 33, 20) * .placeImage(new Ellipse(20, 8, "solid", "red"), 25, 35)* *