1 package org.simantics.scenegraph.swing;
3 import java.awt.AWTEvent;
6 import javax.swing.JComponent;
7 import javax.swing.JList;
9 import org.simantics.scenegraph.INode;
11 public class JListSG extends JList implements JComponentSG {
13 private static final long serialVersionUID = 3883052650752301256L;
15 final private INode node;
22 public boolean contains(int eventX, int eventY) {
23 return JComponentUtils.contains(eventX, eventY, this, node);
27 public boolean containsTransformed(Point p) {
28 return super.contains(p.x, p.y);
32 public JComponent getComponent() {
37 protected void processEvent(AWTEvent e) {
38 super.processEvent(JComponentUtils.relocate(e, this, node));