horizonlookupsearcher.java

来自「esri的ArcGIS Server超级学习模板程序(for java)」· Java 代码 · 共 41 行

JAVA
41
字号
/**
 * 
 */
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 + =
减小字号Ctrl + -
显示快捷键?