eventsources.java
来自「Java 3D Desktop Environment旨在使用Java 3D来创」· Java 代码 · 共 33 行
JAVA
33 行
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.length; 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();
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?