Update to Worldwind release 0.4.1
[worldwind-tracker.git] / gov / nasa / worldwind / render / SurfaceCircle.java
blob2497ac1934a5487052cbc7794bf60fa375551e5d
1 /*
2 Copyright (C) 2001, 2006 United States Government
3 as represented by the Administrator of the
4 National Aeronautics and Space Administration.
5 All Rights Reserved.
6 */
7 package gov.nasa.worldwind.render;
9 import gov.nasa.worldwind.globes.Globe;
10 import gov.nasa.worldwind.geom.*;
11 import gov.nasa.worldwind.util.Logging;
13 import java.awt.*;
15 /**
16 * @author tag
17 * @version $Id: SurfaceCircle.java 2570 2007-08-16 22:31:33Z tgaskins $
19 public class SurfaceCircle extends SurfaceEllipse
21 public SurfaceCircle(Globe globe, LatLon center, double radius, int intervals)
23 super(globe, center, radius, radius, null, intervals, null, null);
26 public SurfaceCircle(Globe globe, LatLon center, double radius, int intervals, Color interiorColor,
27 Color borderColor)
29 super(globe, center, radius, radius, null, intervals, interiorColor, borderColor);
32 public SurfaceCircle(Globe globe, LatLon center, double radius, int intervals, Color interiorColor,
33 Color borderColor, Dimension textureSize)
35 super(globe, center, radius, radius, null, intervals, interiorColor, borderColor, textureSize);
38 public double getRadius()
40 return super.getMajorAxisLength();
43 public void setRadius(double radius)
45 if (radius <= 0)
47 String message = Logging.getMessage("Geom.RadiusInvalid", radius);
48 Logging.logger().severe(message);
49 throw new IllegalArgumentException(message);
52 super.setAxisLengths(radius, radius);