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

📄 horizonlookupsearcher.java

📁 esri的ArcGIS Server超级学习模板程序(for java)
💻 JAVA
字号:
/**
 * 
 */
package com.esri.solutions.jitk.web.projection.horizon;

import java.util.Iterator;
import java.util.List;

import com.esri.adf.web.data.geometry.WebExtent;

/**
 * @author vlad2928
 *
 */
public class HorizonLookupSearcher implements IHorizonLookup {

	protected List<IHorizonLookup> horizonLookupSequence = null;
	
	/* (non-Javadoc)
	 * @see com.esri.solutions.jitk.web.projection.horizon.IHorizonLookup#lookup(int)
	 */
	public WebExtent lookup(int spatialReferenceId) {
		
		WebExtent horizon = null;
		
		if(horizonLookupSequence != null) {
			for(Iterator<IHorizonLookup> i = horizonLookupSequence.iterator(); i.hasNext();) {
				horizon = i.next().lookup(spatialReferenceId); 
				if(horizon != null) break;
			}
		}
		
		System.out.println(horizon);
		
		return horizon;
	}

	public void setHorizonLookupSequence(List<IHorizonLookup> horizonLookupSequence) {
		this.horizonLookupSequence = horizonLookupSequence;
	}
}

⌨️ 快捷键说明

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