📄 abstractsurfaceobject.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.Sector;/** * @author dcollins * @version $Id: AbstractSurfaceObject.java 10106 2009-04-11 00:36:50Z dcollins $ */public abstract class AbstractSurfaceObject implements SurfaceObject{ protected boolean visible; protected long lastModifiedTime; public AbstractSurfaceObject() { this.visible = true; this.updateModifiedTime(); } public boolean isVisible() { return this.visible; } public void setVisible(boolean visible) { this.visible = visible; this.updateModifiedTime(); } public long getLastModifiedTime() { return this.lastModifiedTime; } public void renderToRegion(DrawContext dc, Sector sector, int x, int y, int width, int height) { if (dc == null) { String message = Logging.getMessage("nullValue.DrawContextIsNull"); Logging.logger().severe(message); throw new IllegalArgumentException(message); } if (sector == null) { String message = Logging.getMessage("nullValue.SectorIsNull"); Logging.logger().severe(message); throw new IllegalArgumentException(message); } if (!this.isVisible()) return; this.doRenderToRegion(dc, sector, x, y, width, height); } //**************************************************************// //******************** Protected Interface *******************// //**************************************************************// protected abstract void doRenderToRegion(DrawContext dc, Sector sector, int x, int y, int width, int height); protected void updateModifiedTime() { this.lastModifiedTime = System.currentTimeMillis(); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -