📄 horizonlookupsearcher.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 + -