2 Copyright (C) 2001, 2006 United States Government
3 as represented by the Administrator of the
4 National Aeronautics and Space Administration.
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
;
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
,
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
)
47 String message
= Logging
.getMessage("Geom.RadiusInvalid", radius
);
48 Logging
.logger().severe(message
);
49 throw new IllegalArgumentException(message
);
52 super.setAxisLengths(radius
, radius
);