@Override public Rectangle bounds() { return this.reference.bounds(); }
@Override public Rectangle bounds() { return this.entity.bounds(); }
@Override public Rectangle bounds() { return getSource().bounds(); }
private Predicate<AtlasEntity> isNotExcluded() { return entity -> this.filterType == Type.EXCLUDE && this.geometricSurfaces .get(entity.bounds()).stream().noneMatch(geometricSurface -> this.intersectionPolicy .geometricSurfaceEntityIntersecting(geometricSurface, entity)); }
private Predicate<AtlasEntity> isIncluded() { return entity -> this.filterType == Type.INCLUDE && (this.geometricSurfaces .get(entity.bounds()).stream().anyMatch(geometricSurface -> this.intersectionPolicy .geometricSurfaceEntityIntersecting(geometricSurface, entity))); }
@Override public Rectangle bounds() { if (this.bounds == null) { final Iterable<AtlasEntity> boundedEntities = Iterables.filter(this, entity -> entity.bounds() != null); this.bounds = Rectangle.forLocated(boundedEntities); } return this.bounds; }
private void output(final AtlasEntity item) { Rectangle rectangle = item.bounds(); if (this.distanceInMeters.isPresent()) { rectangle = rectangle.expand(Distance.meters(this.distanceInMeters.get())); } item.getAtlas().subAtlas(rectangle, AtlasCutType.SOFT_CUT).ifPresent(this.subAtlases::add); } }
public CompleteRelation withExtraMember(final AtlasEntity newMember, final String role) { this.members.addItem( new RelationBeanItem(newMember.getIdentifier(), role, newMember.getType())); this.updateBounds(newMember.bounds()); return this; }
@Override public GeometryPrintable convert(final AtlasEntity source) { GeometryPrintable result = null; if (source instanceof Area) { result = ((Area) source).asPolygon(); } else if (source instanceof LineItem) { result = ((LineItem) source).asPolyLine(); } else if (source instanceof LocationItem) { result = ((LocationItem) source).getLocation(); } else { // Relation result = ((Relation) source).bounds(); } if (result == null) { result = source.bounds(); } return result; } }
final Rectangle bounds = member.bounds(); if (bounds != null)