Java 3D Desktop Environment旨在使用Java 3D来创建一个3D桌面环境。功能包括:分布式的应用程序

源代码在线查看: eventsources.java

软件大小: 1221 K
上传用户: lilacky
关键词: Java Environment Desktop 3D
下载地址: 免注册下载 普通下载 VIP

相关代码

				package org.j3de.events;
				
				import java.util.List;
				
				import org.j3de.input.ActivationManager;
				
				public class EventSources {        
				  private VirtualEventSource[] vEventSources;
				  private List assignedFocusAware;
				  
				  public EventSources(List              sources, 
				                      List              assignedFocusAware,
				                      ActivationManager activationManager) {  
				
				    this.vEventSources = new VirtualEventSource[sources.size()];    
				    this.assignedFocusAware = assignedFocusAware;
				    for (int i=0; i				      vEventSources[i] = new VirtualEventSource((EventSource)sources.get(i), activationManager);
				  }   
				  
				  public int getSourceCount() {
				    return vEventSources.length;
				  }                   
				  
				  public EventSource getEventSource(int i) {
				    return vEventSources[i];
				  }    
				  
				  public int getAssignedFocusAware(int i) {      
				    return ((Integer)assignedFocusAware.get(i)).intValue();
				  }     
				
				}			

相关资源