/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * AndroidWorld Library, Copyright 2011 Bryan Chadwick * * * * FILE: ./android/image/Circle.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 . * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ package android.image; /** * * * A Class representing an Circle Image. When a Circle image is placed in * a Scene its center point is taken as its location. * *
 *    new Circle(30, "outline", "red")
* *
*
 *    new Circle(20, "solid", "blue")
* *
*/ public class Circle extends Ellipse{ /** Construct a circle Image of the given (double) radius, mode, and color */ public Circle(double radius, String mode, String color){ super(2*radius, 2*radius, mode, color); } /** Construct a circle Image of the given (int) radius, mode, and color */ public Circle(int radius, String mode, String color){ super(2*radius, 2*radius, mode, color); } }