rastercontrolpointlist.java
来自「world wind java sdk 源码」· Java 代码 · 共 141 行
JAVA
141 行
/* Copyright (C) 2001, 2008 United States Government as represented bythe Administrator of the National Aeronautics and Space Administration.All Rights Reserved.*/package gov.nasa.worldwind.util;import gov.nasa.worldwind.avlist.*;import gov.nasa.worldwind.geom.LatLon;import java.util.*;import java.beans.*;/** * @author dcollins * @version $Id: RasterControlPointList.java 9428 2009-03-17 07:05:09Z tgaskins $ */public class RasterControlPointList extends java.util.ArrayList<RasterControlPointList.ControlPoint> implements AVList{ public static class ControlPoint extends AVListImpl { private final double wx; private final double wy; private final double rx; private final double ry; public ControlPoint(double worldX, double worldY, double rasterX, double rasterY) { this.wx = worldX; this.wy = worldY; this.rx = rasterX; this.ry = rasterY; } public java.awt.geom.Point2D getWorldPoint() { return new java.awt.geom.Point2D.Double(this.wx, this.wy); } public LatLon getWorldPointAsLatLon() { return LatLon.fromDegrees(this.wy, this.wx); } public java.awt.geom.Point2D getRasterPoint() { return new java.awt.geom.Point2D.Double(this.rx, this.ry); } } private AVList avList = new AVListImpl(); public RasterControlPointList(java.util.Collection<? extends ControlPoint> c) { super(c); } public RasterControlPointList() { } public Object setValue(String key, Object value) { return this.avList.setValue(key, value); } public AVList setValues(AVList avList) { return this.avList.setValues(avList); } public Object getValue(String key) { return this.avList.getValue(key); } public Collection<Object> getValues() { return this.avList.getValues(); } public String getStringValue(String key) { return this.avList.getStringValue(key); } public Set<Map.Entry<String, Object>> getEntries() { return this.avList.getEntries(); } public boolean hasKey(String key) { return this.avList.hasKey(key); } public Object removeKey(String key) { return this.avList.removeKey(key); } public void addPropertyChangeListener(String propertyName, PropertyChangeListener listener) { this.avList.addPropertyChangeListener(propertyName, listener); } public void removePropertyChangeListener(String propertyName, PropertyChangeListener listener) { this.avList.removePropertyChangeListener(propertyName, listener); } public void addPropertyChangeListener(PropertyChangeListener listener) { this.avList.addPropertyChangeListener(listener); } public void removePropertyChangeListener(PropertyChangeListener listener) { this.avList.removePropertyChangeListener(listener); } public void firePropertyChange(String propertyName, Object oldValue, Object newValue) { this.avList.firePropertyChange(propertyName, oldValue, newValue); } public void firePropertyChange(PropertyChangeEvent propertyChangeEvent) { this.avList.firePropertyChange(propertyChangeEvent); } public AVList copy() { return this.avList.copy(); } public AVList clearList() { return this.avList.clearList(); }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?