📄 surfacesquare.java
字号:
/* Copyright (C) 2001, 2009 United States Government as represented bythe Administrator of the National Aeronautics and Space Administration.All Rights Reserved.*/package gov.nasa.worldwind.render;import gov.nasa.worldwind.util.Logging;import gov.nasa.worldwind.geom.*;/** * @author dcollins * @version $Id: SurfaceSquare.java 9992 2009-04-08 04:38:54Z dcollins $ */public class SurfaceSquare extends SurfaceQuad{ public SurfaceSquare(ShapeAttributes attributes, LatLon center, double size, Angle heading) { super(attributes, center, size, size, heading); } public SurfaceSquare(ShapeAttributes attributes) { this(attributes, LatLon.ZERO, 0, Angle.ZERO); } public SurfaceSquare(LatLon center, double size, Angle heading) { this(new BasicShapeAttributes(), center, size, heading); } public SurfaceSquare(LatLon center, double size) { this(center, size, Angle.ZERO); } public SurfaceSquare() { this(new BasicShapeAttributes()); } public double getSize() { return this.getWidth(); } public void setSize(double size) { if (size < 0) { String message = Logging.getMessage("generic.ArgumentOutOfRange", "size < 0"); Logging.logger().severe(message); throw new IllegalArgumentException(message); } this.setSize(size, size); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -