⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 surfacecirclegeometry.java

📁 world wind java sdk 源码
💻 JAVA
字号:
/*Copyright (C) 2001, 2008 United States Governmentas represented by the Administrator of theNational Aeronautics and Space Administration.All Rights Reserved.*/package gov.nasa.worldwind.render;import gov.nasa.worldwind.globes.Globe;import gov.nasa.worldwind.geom.*;import gov.nasa.worldwind.util.Logging;import java.awt.*;/** * @author tag * @version $Id: SurfaceCircleGeometry.java 7434 2008-11-08 21:27:45Z tgaskins $ */public class SurfaceCircleGeometry extends SurfaceEllipseGeometry{    public SurfaceCircleGeometry(Globe globe, LatLon center, double radius, int intervals)    {        super(globe, center, radius, radius, null, intervals, null, null);    }    public SurfaceCircleGeometry(Globe globe, LatLon center, double radius, int intervals, Color interiorColor,        Color borderColor)    {        super(globe, center, radius, radius, null, intervals, interiorColor, borderColor);    }    public double getRadius()    {        return super.getMajorAxisLength();    }    public void setRadius(double radius)    {        if (radius <= 0)        {            String message = Logging.getMessage("Geom.RadiusInvalid", radius);            Logging.logger().severe(message);            throw new IllegalArgumentException(message);        }        super.setAxisLengths(radius, radius);    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -