]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.district.network.ui/src/org/simantics/district/network/ui/nodes/DistrictSelectionNode.java
80154dc2474760bab6e744db6866a98066e5270a
[simantics/district.git] / org.simantics.district.network.ui / src / org / simantics / district / network / ui / nodes / DistrictSelectionNode.java
1 package org.simantics.district.network.ui.nodes;
2
3 import java.awt.geom.Rectangle2D;
4
5 import org.simantics.scenegraph.g2d.G2DParentNode;
6 import org.simantics.scenegraph.utils.GeometryUtils;
7
8 /**
9  * Customized selection parent node that returns undefined bounds instead of
10  * <code>null</code> bounds to allow parent G2DNode to ignore these selection
11  * nodes that since they do not have any children in the District scene graph
12  * case.
13  * 
14  * @author Tuukka Lehtonen
15  */
16 public class DistrictSelectionNode extends G2DParentNode {
17
18     private static final long serialVersionUID = -6030674263538134789L;
19
20     @Override
21     public Rectangle2D getBoundsInLocal() {
22         return GeometryUtils.undefinedRectangle();
23     }
24
25 }