comparison flys-artifacts/src/main/java/de/intevation/flys/jfree/JFreeUtil.java @ 3076:5642a83420f2

FLYS artifacts: Removed trailing whitespace. flys-artifacts/trunk@4670 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Fri, 15 Jun 2012 09:30:07 +0000
parents e19ff9086035
children 4bd3d8bbb60c
comparison
equal deleted inserted replaced
3075:db9e2bb34707 3076:5642a83420f2
7 7
8 import org.jfree.chart.entity.ChartEntity; 8 import org.jfree.chart.entity.ChartEntity;
9 import org.jfree.chart.entity.EntityCollection; 9 import org.jfree.chart.entity.EntityCollection;
10 10
11 public class JFreeUtil { 11 public class JFreeUtil {
12 12
13 /** Do not instantiate. */ 13 /** Do not instantiate. */
14 private JFreeUtil() { 14 private JFreeUtil() {
15 } 15 }
16 16
17 17
27 public static boolean collides(Shape hotspot, EntityCollection entities, 27 public static boolean collides(Shape hotspot, EntityCollection entities,
28 Class exclusiveEntityClass) { 28 Class exclusiveEntityClass) {
29 if (entities == null) return false; 29 if (entities == null) return false;
30 30
31 Rectangle2D hotspotBox = hotspot.getBounds2D(); 31 Rectangle2D hotspotBox = hotspot.getBounds2D();
32 32
33 for (Iterator i = entities.iterator(); i.hasNext(); ) { 33 for (Iterator i = entities.iterator(); i.hasNext(); ) {
34 Object next = i.next(); 34 Object next = i.next();
35 ChartEntity entity = (ChartEntity) next; 35 ChartEntity entity = (ChartEntity) next;
36 if (exclusiveEntityClass == null 36 if (exclusiveEntityClass == null
37 || exclusiveEntityClass.isInstance(entity)) 37 || exclusiveEntityClass.isInstance(entity))

http://dive4elements.wald.intevation.org