X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.scenegraph.swing%2Fsrc%2Forg%2Fsimantics%2Fscenegraph%2Fswing%2FJListSG.java;h=ce6700aded158120a0c33562861a126a21fd4712;hp=7fd4bc4ead24d576618d293d9d5e12f5c7c4e777;hb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;hpb=24e2b34260f219f0d1644ca7a138894980e25b14 diff --git a/bundles/org.simantics.scenegraph.swing/src/org/simantics/scenegraph/swing/JListSG.java b/bundles/org.simantics.scenegraph.swing/src/org/simantics/scenegraph/swing/JListSG.java index 7fd4bc4ea..ce6700ade 100644 --- a/bundles/org.simantics.scenegraph.swing/src/org/simantics/scenegraph/swing/JListSG.java +++ b/bundles/org.simantics.scenegraph.swing/src/org/simantics/scenegraph/swing/JListSG.java @@ -1,41 +1,41 @@ -package org.simantics.scenegraph.swing; - -import java.awt.AWTEvent; -import java.awt.Point; - -import javax.swing.JComponent; -import javax.swing.JList; - -import org.simantics.scenegraph.INode; - -public class JListSG extends JList implements JComponentSG { - - private static final long serialVersionUID = 3883052650752301256L; - - final private INode node; - - JListSG(INode node) { - this.node = node; - } - - @Override - public boolean contains(int eventX, int eventY) { - return JComponentUtils.contains(eventX, eventY, this, node); - } - - @Override - public boolean containsTransformed(Point p) { - return super.contains(p.x, p.y); - } - - @Override - public JComponent getComponent() { - return this; - } - - @Override - protected void processEvent(AWTEvent e) { - super.processEvent(JComponentUtils.relocate(e, this, node)); - } - -} +package org.simantics.scenegraph.swing; + +import java.awt.AWTEvent; +import java.awt.Point; + +import javax.swing.JComponent; +import javax.swing.JList; + +import org.simantics.scenegraph.INode; + +public class JListSG extends JList implements JComponentSG { + + private static final long serialVersionUID = 3883052650752301256L; + + final private INode node; + + JListSG(INode node) { + this.node = node; + } + + @Override + public boolean contains(int eventX, int eventY) { + return JComponentUtils.contains(eventX, eventY, this, node); + } + + @Override + public boolean containsTransformed(Point p) { + return super.contains(p.x, p.y); + } + + @Override + public JComponent getComponent() { + return this; + } + + @Override + protected void processEvent(AWTEvent e) { + super.processEvent(JComponentUtils.relocate(e, this, node)); + } + +}